start new:
tmux
start new with session name:
tmux new -s myname
sudo cp nginx /etc/init.d/ | |
sudo update-rc.d nginx defaults | |
sudo chmod +x /etc/init.d/nginx | |
/etc/init.d/nginx start |
/** | |
* State names are described as a enum or string constants if language doesn't support them (as3 for example). | |
*/ | |
private enum State { | |
A, B, C | |
} | |
/** | |
* Current state is always private. If previous state is needed add | |
* private State prevState; |
# Install some system dependencies: | |
apt-get install build-essential openssl libcurl4-openssl-dev \ | |
libreadline6 libreadline6-dev curl mysql-server libmysqlclient-dev git-core \ | |
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev \ | |
libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion \ | |
pkg-config imagemagick joe libmagickwand-dev libmagickwand4 | |
# Install Ruby via RVM (easiest!): | |
cd /root/ |
set nocompatible " Disable vi-compatibility | |
set t_Co=256 | |
colorscheme xoria256 | |
set guifont=menlo\ for\ powerline:h16 | |
set guioptions-=T " Removes top toolbar | |
set guioptions-=r " Removes right hand scroll bar | |
set go-=L " Removes left hand scroll bar | |
set linespace=15 |
#!upstart | |
2 # | |
3 # An example upstart script for running a Node.js process as a service | |
4 # using Forever as the process monitor. For more configuration options | |
5 # associated with Forever, see: https://github.com/nodejitsu/forever | |
6 # | |
7 # You will need to set the environment variables noted below to conform to | |
8 # your use case, and should change the description. | |
9 # | |
10 description "Example upstart script for a Node.js process" |
I heard from GitHub Two-Factor Authentication](https://github.com/blog/1614-two-factor-authentication) nearly a couple of days ago when I was reading my RSS feed. I enabled it and couldn' push to any of my repositories anymore. Learn in this blog post how to fix it.
"Is a process involving two stages to verify the identity of an entity trying to access services in a computer or in a network". Github solves this authentication with sending an SMS to a device which wants to push to their platform.