start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/sh | |
# | |
# init.d script with LSB support. | |
# | |
# Copyright (c) 2007 Javier Fernandez-Sanguino <[email protected]> | |
# | |
# This is free software; you may redistribute it and/or modify | |
# it under the terms of the GNU General Public License as | |
# published by the Free Software Foundation; either version 2, | |
# or (at your option) any later version. |
# etag configuration: | |
FileETag MTime Size | |
SetOutputFilter DEFLATE | |
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ \ | |
no-gzip dont-vary | |
SetEnvIfNoCase Request_URI \ | |
\.(?:exe|t?gz|zip|bz2|sit|rar)$ \ | |
no-gzip dont-vary | |
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary |
#!/bin/bash | |
$@ | |
if [ "$?" = "0" ] | |
then | |
growlnotify --image /Users/vince/bin/images/doom_succ.png --message "$1" Command Succeeded! | |
else | |
growlnotify --image /Users/vince/bin/images/doom_fail.png --message "$1" Command Failed! | |
fi |
# Print all the views in the window | |
command regex rd 's/^[[:space:]]*$/po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]/' 's/^(.+)$/po [%1 recursiveDescription]/' | |
# Print all the view controllers in the window | |
command regex rvc 's/^[[:space:]]*$/po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]/' 's/^(.+)$/po [%1 _viewControllerForAncestor]/' | |
# Print an autolayout trace | |
command alias at expr -o -- [[UIWindow keyWindow] _autolayoutTrace] | |
# Load the dynamic code for Reveal |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.