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
#!/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
#!/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 | |
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
; .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
server { | |
listen 80; | |
server_name upstream.test.uve.io; | |
default_type 'application/json'; | |
location / { | |
content_by_lua_block { | |
ngx.say('{"data":[{"uid":"123456","name":"James"}],"__tmeta":{"mkey1":"mval1","mkey2":"mval2"}}') | |
} | |
} | |
} |
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
export TANGO_ENV=personal_laptop | |
export PS1="[\033[32m\d \t\033[0m] \h: \033[36m\w\033[0m $\n> " | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
export PATH=/usr/local/bin:$PATH |
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
{ | |
"Ansi 6 Color" : { | |
"Green Component" : "0.5960785", | |
"Blue Component" : "0.6039215999999999", | |
"Red Component" : "0.02352941" | |
}, | |
"Tags" : [ | |
], | |
"Ansi 12 Color" : { |
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
[Unit] | |
Description=The NGINX HTTP and reverse proxy server | |
After=syslog.target network.target remote-fs.target nss-lookup.target | |
[Service] | |
Type=forking | |
PIDFile=/usr/local/nginx/logs/nginx.pid | |
ExecStartPre=/usr/local/nginx/sbin/nginx -t | |
ExecStart=/usr/local/nginx/sbin/nginx | |
ExecReload=/usr/local/nginx/sbin/nginx -s reload |
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 | |
file=$1 | |
if [ "x$file" == "x" ] | |
then | |
echo "Usage: $0 FILE_NAME" | |
exit 1 | |
fi |