快马扬鞭须努力!
sillycat · 共 1759 篇文章
Update Site will come soon
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.
2021-06-02 04:10 · JAVA · Distributed · 评论(0)
Stop Update Here
I will stop update here, and move to my own New website https://www.techsillycat.com
2020-04-28 09:00 · Summary · 评论(0)
NodeJS12 and Zlib
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'); zlib.…
Diskspace Check and Fix
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 what I am doing n…
2020-04-01 00:28 · Ubuntu · 评论(0)
Docker Swarm 2020(2)Docker Swarm and Portainer
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 manage node 2375…
2020-03-31 23:18 · Summary · 评论(0)
Docker Swarm 2020(1)Simply Install and Use Swarm
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 network …
2020-03-31 07:58 · Summary · 评论(0)
Traefik 2020(1)Introduction and Installation
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/con…
Portainer 2020(4)Deploy Nginx and Others
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 —> container: 80 TC…
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
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 NAMES 5676dd2a19e0 registry:2 "/entrypoint.sh /etc…" 12 seconds ago Up 11 second…
Docker Compose 2020(1)Installation and Basic
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/lib/systemd/s…
VPN Server 2020(2)Docker on CentOS in Ubuntu
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 Time Current Dlo…
Buffer in NodeJS 12 and NodeJS 8
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.14.1 Run it …
SNS Producer in Java in Old Project
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.6.…
ElasticSearch(2)Version Upgrade 6.2.4 and Cluster
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/elasticsear…
2020-02-25 05:14 · Summary · 评论(0)
NodeJS ENV Similar to JENV and PyENV
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://github.…