Skip to content

Instantly share code, notes, and snippets.

@gtt116
gtt116 / install_fpm.sh
Last active July 25, 2017 06:55 — forked from boardstretcher/install_fpm.sh
Install FPM on centos 6.5
# install ruby, rubygems and all requirements, then install FPM (effing package manager)
# fpm: https://github.com/jordansissel/fpm
# as root
# update system, install requirements
yum makecache
yum install ruby-devel gcc curl libyaml-devel
# get the ruby version manager and install
curl -L get.rvm.io | bash -s stable
@gtt116
gtt116 / nginx.conf
Created March 11, 2017 15:41 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@gtt116
gtt116 / solarized-dark.xcs
Created May 14, 2016 02:39 — forked from clyfish/solarized-dark.xcs
xshell solarized dark color theme
[Solarized Dark]
text(bold)=839496
magenta(bold)=6c71c4
text=839496
white(bold)=fdf6e3
green=859900
red(bold)=cb4b16
green(bold)=586e75
black(bold)=073642
red=dc322f
@gtt116
gtt116 / cao_ni_ma.py
Last active July 12, 2017 09:05 — forked from edokeh/index.js
神兽保佑,远离bug
#
# The Animal Protects No Bug
# ~~~ ~~~
# __| |______| |__```
# | |
# | | ````
# | ````` | ```````
# | ████--████ | `````
# | | ```
# | _[_ |