tmux new [-s name] [cmd]
(:new
) - new session
tmux ls
(:ls
) - list sessionstmux switch [-t name]
(:switch
) - switches to an existing session
sudo apt-get update | |
sudo apt-get install -y libevent-dev libncurses-dev make | |
cd /tmp | |
wget https://github.com/tmux/tmux/releases/download/2.7/tmux-2.7.tar.gz | |
tar xvzf tmux-2.7.tar.gz | |
cd tmux-2.7/ | |
./configure && make | |
sudo make install | |
cd .. | |
rm -rf ./tmux-2.7* |
# define prefix | |
set -g prefix C-a | |
# enable 256 colors | |
set -g default-terminal "screen-256color" | |
# bind tmux config reloading | |
bind r source-file ~/.tmux.conf \; display "> tmux config reloaded..." | |
# set window and pane base index |
#Example on how to use adb to start an Activity, | |
#BroadcastReceiver or Service from adb and include intent extras too. | |
#for Activity: | |
adb shell am start -n "com.peirr.test/com.peirr.test.MyActivity" --es name "John" --ei age 30 | |
#for BroadcastReceiver | |
adb shell am broadcast -n "com.peirr.test/com.peirr.test.MyReceiver" --es name "John" --ei age 30 |
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass
## Server configuration for nginx to host Atlassian Jira / Jetbrain TeamCity or any other Tomcat web application | |
# | |
# author cedric.walter, www.waltercedric.com | |
# to be saved for ex in /etc/nginx/sites-available/example | |
server { | |
listen 80; | |
server_name jira.example.com; | |
access_log off; | |
location / { |
## Server configuration for nginx to host Atlassian Jira / Jetbrain TeamCity or any other Tomcat web application | |
# | |
# author cedric.walter, www.waltercedric.com | |
# to be saved for ex in /etc/nginx/sites-available/example | |
server { | |
listen 80; | |
server_name jira.example.com; | |
access_log off; | |
location / { |
# Go installation in Ubuntu 12.04 Server LTS | |
$ sudo apt-get install python-software-properties | |
$ sudo add-apt-repository ppa:gophers/go | |
$ sudo apt-get update | |
$ sudo apt-get install golang-tip # Or golang-weekly, or golang-stable |
# Go installation in Ubuntu 12.04 Server LTS | |
$ sudo apt-get install python-software-properties | |
$ sudo add-apt-repository ppa:gophers/go | |
$ sudo apt-get update | |
$ sudo apt-get install golang-tip # Or golang-weekly, or golang-stable |
$ sudo apt-get install python-software-properties | |
$ sudo add-apt-repository ppa:gophers/go | |
$ sudo apt-get update | |
$ sudo apt-get install golang-tip # Or golang-weekly, or golang-stable |