Skip to content

Instantly share code, notes, and snippets.

@poc7667
poc7667 / Install-nginx-with-http2-support.md
Created September 26, 2016 23:12 — forked from hollodotme/Install-nginx-with-http2-support.md
Install nginx with http2 support on ubuntu 14.04 LTS (Trusty)

How to install nginx (>= 1.9.5) with http2 support on Ubuntu 14.04 LTS (Trusty)

IMPORTANT: Backup your nginx site configs (usually under /etc/nginx/sites-available)!

Remove old nginx

Remove old nginx incl. nginx-common:

apt-get autoremove --purge nginx nginx-common
@poc7667
poc7667 / Mysql_cheatsheet
Last active June 24, 2016 20:30 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
MySQL
===============
Getting started:
- http://www.sqlteaching.com/
- https://www.codecademy.com/courses/learn-sql
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
@poc7667
poc7667 / MB puma + Nginx settings
Last active August 29, 2015 14:25 — forked from Epigene/MB puma + Nginx settings
MB puma + Nginx settings
# /config/puma.rb
app = "manabalss" # App-specific
root = "/home/deployer/apps/#{app}"
workers 5
threads 1, 1 # relying on many workers for thread-unsafe apps
rackup DefaultRackup
port 11592
layout title date comments categories tags author
post
How to setup Rails app with puma and NGINX
2013-03-16 17:51
true
nginx, capistrano, deployment, rails, ruby, puma
Trung Lê

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@poc7667
poc7667 / .vimrc
Last active August 29, 2015 14:22 — forked from napcs/.vimrc
" This is the main file that loads up the other configuration files.
if has('win32') || has ('win64')
let $VIMHOME = $HOME."/vimfiles"
else
let $VIMHOME = $HOME."/.vim"
endif
source $VIMHOME/vundle
source $VIMHOME/vimrc_main