start new:
tmux
start new with session name:
tmux new -s myname
| # -*- coding: utf-8 -*- | |
| """ | |
| A real simple app for using webapp2 with auth and session. | |
| It just covers the basics. Creating a user, login, logout and a decorator for protecting certain handlers. | |
| PRE-REQUIREMENTS: | |
| Set at secret_key in webapp2 config: |
Navigate to http://nodejs.org/download/ and on the Linux Binaries (.tar.gz) row click to download the 64-bit version of the current latest release.
Say you've downloaded node-v0.10.7-linux-x64.tar.gz into the Downloads directory. Then, open the terminal and type the following:
$ cd ~/Downloads
$ mkdir -p ~/local/node
$ tar xzf node-v0.10.7-linux-x64.tar.gz -C ~/local/node --strip-components=1
$ echo '# Node Enviroment Setup' >> ~/.bashrc
$ echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.bashrc| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
| #!/bin/bash | |
| # Script for installing tmux on systems where you don't have root access. | |
| # tmux will be installed in $HOME/local/bin. | |
| # It's assumed that wget and a C/C++ compiler are installed. | |
| # exit on error | |
| set -e | |
| TMUX_VERSION=1.8 |
| #!/bin/bash | |
| # | |
| # requirements: | |
| # - ImageMagick: http://www.imagemagick.org/script/binary-releases.php#macosx | |
| # - image_optim: https://github.com/toy/image_optim | |
| # - a scp supported host with ssh key paired | |
| # setting up the enviroment | |
| export PATH=/usr/local/bin:/opt/local/bin:/opt/local/sbin:$PATH |
| ;; Gist-ed from in https://github.com/arnab/emacs-starter-kit | |
| (defun fontify-frame (frame) | |
| (interactive) | |
| (if window-system | |
| (progn | |
| (if (> (x-display-pixel-width) 2000) | |
| (set-frame-parameter frame 'font "Inconsolata 19") ;; Cinema Display | |
| (set-frame-parameter frame 'font "Inconsolata 16"))))) |
sudo apt-get install golang git mercurial git clone https://github.com/hanwen/go-mtpfs.git cd go-mtpfs go build sudo mv go-mtpfs /usr/local/sbin/go-mtpfs sudo chmod a+x /usr/local/sbin/go-mtpfs sudo mkdir /media/mtp sudo chmod 775 /media/mtp sudo /usr/local/sbin/go-mtpfs -allow-other=true /media/mtp