`
sillycat
  • 浏览: 2486438 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
I am still keep notes my tech notes in evernote. But I will need to set up a blog system myself or find some where to publish my blogs.

Stop Update Here

I will stop update here, and move to my own New website https://www.techsillycat.com
NodeJS12 and Zlib It works as it should be as follow index.js const zlib = require('zlib'); const input = 'hello carl, how are you?'; zlib.deflate(input, function(err, buffer) {   if (!err) {     console.log(buffer.toString('base64'));   } }); const buffer = Buffer.from('eJzT0yMAAGTvBe8=', 'base64') ...
Diskspace Check and Fix First command to check the diskspace and diskusage > df -lh Search by directories to see what are the usage on machines > du -sh /* > du -sh /var/* In my case, I get a huge file in the maxscale.log, but I already delete that, but the diskspace is not released. So w ...
Docker Swarm 2020(2)Docker Swarm and Portainer Just follow my previous Portainer Installation, I have it running on the manager node > ./portainer --template-file "/opt/portainer/templates.json" -p 0.0.0.0:9000 --data /opt/portainer/data Portainer Swarm Cluster Endpoints Just add the ...
Docker Swarm 2020(1)Simply Install and Use Swarm Check my Docker > docker --version Docker version 19.03.8, build afacb8b Swarm Manager - rancher-home Swarm Worker - rancher-worker1 Swarm Worker - rancher-worker2 Some useful ports: 2377 - cluster management 7946 - node to node 4789 - overlay ne ...
Traefik 2020(1)Introduction and Installation Support ACME(Let’s Encrypt), Support WebSocket and HTTP/2   Providers - Docker, Kubernetes, File Entrypoints - Routers - host, path, headers, SSL Services Middlewares - authentication, rate limiting, headers Different release is here https://github.com ...
Portainer 2020(4)Deploy Nginx and Others My Portainer is running fine, it use remote connect to 2375 ports to other machines. Choose an Endpoint first —> Containers —> Add Container Name: onenginx Registry: DockerHub Image: nginx:latest Manual network port publishing: Host: 8800 —> contain ...
Private Registry 2020(1)No auth in registry Nginx AUTH for UI Deploy basic registry server > docker run -d -p 5000:5000 --name registry registry:2 Have it running > docker ps CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS        ...
Docker Compose 2020(1)Installation and Basic Latest Docker Compose version VS Docker version https://docs.docker.com/compose/compose-file/ On my server, check the docker version > docker --version Docker version 19.03.6, build 369ce74a3c Open my docker 2375 ports if we need > sudo vi /usr/li ...
VPN Server 2020(2)Docker on CentOS in Ubuntu It seems that there is no much benefit to provide that in Docker. Try on more time to see if I can set up in CentOS. It is not supported in CentOS > curl -L https://install.pivpn.io | bash   % Total    % Received % Xferd  Average Speed   Time    Time ...
Buffer in NodeJS 12 and NodeJS 8 My Simple Testing codes > cat index.js const size = 'hello'.length; const AES_BLOCK_SIZE = 8; const padLength = (size % AES_BLOCK_SIZE); let encryptText = Buffer.alloc(size + padLength, '0x06', 'hex'); console.log(encryptText); Version 8 > node --version v8.1 ...
SNS Producer in Java in Old Project In one Old Java Project, I need to send events to SNS in AWS. Here is how I did that> Here is the package I need to put in dependencies. Lib/aws-java-sdk-1.11.515.jar Lib/aws-java-sdk-sns-1.11.515.jar Lib/aws-java-sdk-core-1.11.515.jar Lib/jackson-databind-2.6 ...
ElasticSearch(2)Version Upgrade 6.2.4 and Cluster Try to get Latest Documents here https://github.com/elastic/elasticsearch Beats, Logstash, ElasticSearch, Kibana More documents https://www.elastic.co/guide/index.html First of All, Install Elastic Search https://www.elastic.co/downloads/elasticse ...
NodeJS ENV Similar to JENV and PyENV It seems these 2 are good. https://github.com/nodenv/nodenv https://github.com/nvm-sh/nvm Let me try nodenv, it seems more similar to JENV and PyENV. https://blog.daskepon.com/install-nodejs-with-nodenv-on-macos/ Install the tool nodenv > git clone https://g ...
Global site tag (gtag.js) - Google Analytics