- option 1
- option 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; .vimlocal | |
set tabstop=2 | |
set shiftwidth=2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ppids=$1 | |
if [ "x$ppids" == "x" ] | |
then | |
echo "Usage: $0 PPID" | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOSTNAME=YOUR_HOST_NAME | |
USERNAME=YOUR_USER_NAME | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: $0 PORT [TARGET_PORT]" | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt install git curl wget python2.7-dev lua5.3 liblua5.3 liblua5.3-dev libncurses5 libncurses5-dev ncurses-base ncurses-bin ncurses-term | |
git clone https://github.com/vim/vim.git | |
cd vim | |
./configure --prefix=/usr --with-features=huge --enable-gui=no --without-x --enable-luainterp --enable-pythoninterp --enable-perlinterp | |
make VIMRUNTIMEDIR=/usr/share/vim/vim80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "James Tang", "age": 18, | |
"comment": [ | |
{ | |
"content": "Very young" | |
}, | |
{"content": "Excellent" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
certbot certonly --webroot -w /usr/local/nginx/html -d example.com | |
Saving debug log to /var/log/letsencrypt/letsencrypt.log | |
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org | |
Obtaining a new certificate | |
Performing the following challenges: | |
http-01 challenge for notes.fwso.cn | |
Using the webroot path /usr/local/nginx/html for all unmatched domains. | |
Waiting for verification... | |
Cleaning up challenges | |
Generating key (2048 bits): /etc/letsencrypt/keys/0000_key-certbot.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.0.0543/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --with-compiledby --with-lua-prefix=/usr/local/Cellar/lua/5.2.4_4 --enable-luainterp=yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://play.golang.org/p/d2ILCDInTy | |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// reference: https://tools.ietf.org/html/rfc5321 | |
package main | |
import ( | |
"bufio" | |
"encoding/base64" | |
"fmt" | |
"log" | |
"net" | |
"os" |