best-practice

Some best-practice config/cook-book of using tools

Stars
14

Best Practice

Best-practice config/cook-book/stack for popular tools.

There are lots of efficient tools in daily work. Collect the necessary config here.

Content

Pandoc

From github-style markdown to pdf:

pandoc --toc --from markdown_github -s input.md -o output.pdf 

MongoDB

Nginx

The config file usually is put under /etc/nginx/conf.d/.

See default.

Node.js

Framework

CSS

HTML

Python

Jupyter Notebook

A helpful web based python interface and notebook.

$ pip install jupyter
$ cd your_work_dir; jupyter notebook

REST

REST style API design and ref framework: Swagger.

Useful REST framework:

Security

Default Iptables rules with limit port open and access ratio.

$ iptables-restore < security/iptables.rules

sysctl

Optimized sysctl.conf for high-performance server.

Put sysctl.conf under /etc/sysctl/, and load it by

$ sysctl -p

vnc4server

Config file

The config file is ${HOME}/.vnc/xstartup.

Start some server

Let it listen on 1.

vncserver :1

Kill some server

Kill the server listening on 1.

$ vncserver -kill :1

Set password

$ vncpasswd

Contribution

  • 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]
  • Make some changes, commit and push to your Github repo.
$ #do some change on the content
$ git commit -am "Fix issue #1: change helo to hello"
$ git push
  • Open GitHub and make a pull request.
  • Remember to sync your repo often with my latest version.
$ 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