As configured in my dotfiles, here and here.
$ tmux -> start new
$ tmux new -s myname -> start new w/session name
$ tmux a # (or at, or attach) -> attach
$ tmux a -t myname -> attach to named
#!/bin/bash -e | |
filename=$1 | |
script_root=/usr/bin | |
editor=vi | |
createScriptIfItDoesntExist() { | |
if [ ! -f $1 ]; then | |
touch $1 | |
chmod +x $1 |
#!/bin/bash -e | |
ls -al |
#!/bin/bash -e | |
git status -s | grep -e "^??" | cut -c 4- >> .gitignore |
#!/bin/bash -e | |
osascript -e 'tell application "Terminal" to activate' -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' |
_ | |
_._ _..._ .-', _.._(`)) | |
'-. ` ' /-._.-' ',/ | |
) \ '. | |
/ _ _ | \ | |
| a a / | | |
\ .-. ; | |
'-('' ).-' ,' ; | |
'-; | .' | |
\ \ / |
#!/bin/bash | |
# Let it Rain! | |
# Copyright (C) 2011, 2013 by Yu-Jie Lin | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
crontab -e | |
*/30 * * * * say -v whisper "I am watching you" |
#!/usr/bin/python | |
# Adapted from http://kutuma.blogspot.com/2007/08/sending-emails-via-gmail-with-python.html | |
import getpass | |
import smtplib | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEBase import MIMEBase | |
from email.MIMEText import MIMEText | |
from email import Encoders | |
import os |