start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/sh | |
| DOMAIN="onlinebanking.tdbank.com" | |
| COOKIEJAR="cookiejar-tdbank" | |
| USERAGENT='Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2' | |
| USERNAME="username" | |
| read -sp "Password: " PASSWORD; echo | |
| curl \ |
| #!/usr/bin/env python | |
| import os | |
| path = 'data' | |
| os.chdir(path) | |
| files = sorted(os.listdir(os.getcwd()), key=os.path.getmtime) | |
| oldest = files[0] | |
| newest = files[-1] |
| #!/usr/bin/env bash | |
| # | |
| # This is sp, the command-line Spotify controller. It talks to a running | |
| # instance of the Spotify Linux client over dbus, providing an interface not | |
| # unlike mpc. | |
| # | |
| # Put differently, it allows you to control Spotify without leaving the comfort | |
| # of your command line, and without a custom client or Premium subscription. | |
| # |
| #!/bin/bash | |
| version=1.0.1 | |
| versionDate="2014-02-14" | |
| function showHelp() { | |
| echo "watchfile - monitor file(s)/command and perform action when changed | |
| Possible ways of usage | |
| ---------------------------------------- |
| # These instructions assume you are using a Linux or Mac machine as | |
| # the “local” machine and an Amazon Linux as the “remote” machine. | |
| # Here’s one way to get X11 working between the two. | |
| # on the local machine (Linux or Mac with X11 already installed) | |
| $ ssh -X -i <amazon_key.pem> ec2-user@<remote_ec2_box_name> | |
| # then on the remote Amazon Linux EC2 box | |
| $ sudo yum install xauth | |
| $ sudo yum install xterm |
| # Save this file (after modifying ID_VENDOR and ID_MODEL if necessary) as /etc/udev/rules.d/81-thinkpad-dock.rules | |
| # These values seem to work for "ThinkPad Mini Dock Plus Series 3" | |
| SUBSYSTEM=="usb", ACTION=="add|remove", ENV{ID_VENDOR}=="17ef", ENV{ID_MODEL}=="100a", RUN+="/etc/sbin/thinkpad-dock.sh" |
| # general commands | |
| alias t="task" | |
| alias ta="task add" | |
| alias td="task done" | |
| alias t-="task delete" | |
| alias tm="task modify" | |
| alias tu="task undo" | |
| alias tv="vit rc.alias.next=list" | |
| alias tw1="task modify wait:1d" | |
| # alias tw2="task modify wait:2d" |
| ; Beginning of Time - 26 Oct 2016 | |
| 2016/10/26 Opening Balance | |
| Assets:Banking:Checking $2000.00 | |
| Assets:Banking:Savings $100.00 | |
| Equity:Opening | |
| [Assets:Budget:Food] $100.00 | |
| [Assets:Budget:Rent] $1000.00 | |
| [Assets:Budget:Vacation] $200.00 | |
| [Assets:Budget:Gas] $50.00 |
| #!/bin/zsh | |
| # git-fshow - git commit browser | |
| # | |
| # https://gist.github.com/akatrevorjay/9fc061e8371529c4007689a696d33c62 | |
| # https://asciinema.org/a/101366 | |
| # | |
| git-fshow() { | |
| local g=( | |
| git log |