`
sillycat
  • 浏览: 2542351 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
Private Registry Harbor 2019(1)Version 1.9.0 and HA Solution Check version > docker --version Docker version 19.03.2, build 6a30dfc Install Docker Compose > sudo yum install epel-release > sudo yum install -y python-pip > sudo pip install docker-compose > sudo pip install --upgrade p ...
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud GraphQL sample codes are in project sales-api.zip. It is running pretty good with command > npm run start To make it working well with Tencent Cloud, I add this app.js 'use strict'; const express = require('express'); const { ApolloServer } = ...
GraphQL 2019(3)Connect to MySQL A nice example here https://github.com/YuLeven/nodejs-graphql-mysql-example Map the JSON https://gist.github.com/microbial/b99af0a7eb11cb680c14 Lodash Documents https://lodash.com/docs/4.17.15#keys This project is really nice and useful https://github.com/cheedbra ...
Prometheus HA 2020(3)AlertManager Cluster Install AlertManager > wget https://github.com/prometheus/alertmanager/releases/download/v0.19.0/alertmanager-0.19.0.linux-amd64.tar.gz > tar zxvf alertmanager-0.19.0.linux-amd64.tar.gz > mv alertmanager-0.19.0.linux-amd64 ~/tool/alertmanager-0.19.0 ...
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings CRON 00 01,13 * * *   every 1am and 1pm The full configuration will be as follow: service: orderinfo provider:   name: tencent   region: ap-shanghai   runtime: Nodejs8.9   credentials: ~/.credentials.ini   stage: prod   memorySize: ...
GraphQL 2019(1)Apollo Basic Client React https://github.com/apollographql/react-apollo https://apollographqlcn.github.io/react-docs-cn/ https://juejin.im/post/5cff441ef265da1b6836b32b Spring Boot Based Server https://blog.csdn.net/taiyangdao/article/details/75303181 https://www.jianshu.com/p/d6aeed ...
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running with Plugins My serverless.yml will be changed as follow: service: orderinfo provider:   name: tencent   region: ap-shanghai   runtime: Nodejs8.9   credentials: ~/.credentials.ini   stage: prod   memorySize: 128   timeout: ...
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree Build Array Tree with Lodash const _ = require('lodash'); const arr = [{   "id": 1,   "parentID": 0,   "name": "carl" },{   "id": 2,   "parentID": 1,   "name& ...
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF More configurations here https://github.com/serverless-components/tencent-scf/blob/master/docs/configure.md Trigger the SCF from Cloud Follow documents here https://github.com/TencentCloud/tencentcloud-sdk-nodejs Here is my final ve ...
Serverless with NodeJS and TencentCloud 2020(1)Running with Component More configuration here https://github.com/serverless-components/tencent-scf/blob/master/docs/configure.md Check this file > vi ~/.tencent.credentials cat ~/.tencent.credentials [default] tencent_secret_id=AKIDNccOxHLLagcxxx ...
Nginx Deal with OPTIONS in HTTP Protocol The idea is to add the OPTIONS in nginx configuration to deal with that. location / {       if ($request_method = OPTIONS ) {           add_header Content-Length 0;           add_header Content-Type text/plain;           add_header OPTIONS, GET, HEAD, POST, ...
NodeJS MySQL Library and npmjs My friend publish a library based on mysql to support DAO, I forked that. It looks pretty good. NodeJS method to convert keys in results function convertResult(res, mappings) {     if (res === undefined || mappings === undefined) {         return res;     }     for (l ...
PDF to HTML 2020(1)pdftohtml Linux tool or PDFBox On Ubuntu > sudo apt-get install pdftohtml Or > sudo apt-get install poppler-utils Try the command > pdftohtml homedepot.pdf homedepot.html -c -noframes > pdftohtml -enc UTF-8 -noframes homedepot.pdf homedepot.html > pdftohtml -en ...
Elasticsearch Cluster 2019(2)Kibana Issue or Upgrade Recently, our Kibana get error messages as follow: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'nonce-6l5WfCDQyGKomWFe'". Either the 'unsafe-inline' keyw ...
Spark Streaming 2020(1)Investigation On my local I have spark cluster with Zeppelin Notebook. Kafka 3 Nodes Cluster on rancher-home, rancher-worker1, rancher-worker2. Start Kafka Cluster Start Zookeeper Cluster on 3 machines > cd /opt/zookeeper > /opt/zookeeper/bin/zkServer.sh start /opt/zook ...
Global site tag (gtag.js) - Google Analytics