Skip to content

Instantly share code, notes, and snippets.

@hnimminh
Last active March 5, 2020 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hnimminh/a02ad1364294158a6a4848a1b567bcd7 to your computer and use it in GitHub Desktop.
Save hnimminh/a02ad1364294158a6a4848a1b567bcd7 to your computer and use it in GitHub Desktop.

wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make & cp src/redis-cli /usr/bin/

rdb --command protocol dump.rdb |redis-cli -h m -p -a --pipe

curl http://npmjs.org/install.sh | sh npm install redis-dump -g redis-dump -p 6379 -h localhost -d 0 > file.txt #backup cat file.txt | redis-cli #restore

https://getoutline.org/en/home https://visualgo.net/en

https://superuser.com/questions/1118735/how-are-source-ports-determined-and-how-can-i-force-it-to-use-a-specific-port

MAC: sudo nvram StartupMute=%01

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout selfsigned.key -out selfsigned.crt

openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr

  • GEN: KEY + CSR
  • CSR ---> PROVIDER ----> CRT
  • PROVIDER ---> CA-BUNDLE (Intermediate + Cross Signed ])

openssl x509 -text -noout -in github_com.csr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment