Some best-practice config/cook-book of using tools
Best-practice config/cook-book/stack for popular tools.
There are lots of efficient tools in daily work. Collect the necessary config here.
From github-style markdown to pdf:
pandoc --toc --from markdown_github -s input.md -o output.pdf
The config file usually is put under /etc/nginx/conf.d/
.
See default.
npm run build
to install all deps.npm run dev
, and access http://localhost:8080/index.html
A helpful web based python interface and notebook.
$ pip install jupyter
$ cd your_work_dir; jupyter notebook
REST style API design and ref framework: Swagger.
Useful REST framework:
Default Iptables rules with limit port open and access ratio.
$ iptables-restore < security/iptables.rules
Optimized sysctl.conf for high-performance server.
Put sysctl.conf under /etc/sysctl/, and load it by
$ sysctl -p
The config file is ${HOME}/.vnc/xstartup.
Let it listen on 1.
vncserver :1
Kill the server listening on 1.
$ vncserver -kill :1
$ vncpasswd
fork
this project to your repo, like user/best-practice
, then clone to local.$ git clone [email protected]:user/best-practice.git
$ cd best-practice
$ git config user.name "User"
$ git config user.email [email protected]
$ #do some change on the content
$ git commit -am "Fix issue #1: change helo to hello"
$ git push
$ git remote add upstream https://github.com/yeasy/best-practice
$ git fetch upstream
$ git checkout master
$ git rebase upstream/master
$ git push -f origin master