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* |
#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 / { |
#!/bin/bash | |
# installing erlang on ubuntu's | |
sudo apt-get install build-essential libncurses5-dev openssl libssl-dev | |
sudo mkdir -p /opt/erlang/ | |
curl -O https://raw.github.com/spawngrid/kerl/master/kerl && chmod a+x kerl | |
sudo mv kerl /opt/erlang/ | |
sudo ln -s /opt/erlang/kerl /usr/local/bin/kerl |
#!/usr/bin/env python | |
# encoding: utf-8 | |
#Constants.R | |
#Created by Kenneth J. Shackleton on 14 June 2011. | |
#Copyright (c) 2011 Ringo Limited. | |
#All rights reserved. | |
#R Port by Zach Mayer on 4 December 2011 |