As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
# After "Tim Golden's Python Stuff" code | |
# http://timgolden.me.uk/python/win32_how_do_i/catch_system_wide_hotkeys.html | |
# | |
# After a post to c.l.py by Richie Hindle: | |
# http://groups.google.com/groups?th=80e876b88fabf6c9 | |
# | |
import os | |
import sys | |
import threading |
HTTP Archive (powered by HAR files): www.httparchive.org
HAR Viewer: http://code.google.com/p/harviewer/
# download latest libevent2 and tmux sources, and extract them somewhere | |
# (thx bluejedi for tip on latest tmux URL) | |
# | |
# at the time of writing: | |
# https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
# http://sourceforge.net/projects/tmux/files/latest/download?source=files | |
# | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel |
import ctypes | |
import ctypes.wintypes | |
import win32con | |
class GlobalHotKeys(object): | |
""" | |
Register a key using the register() method, or using the @register decorator | |
Use listen() to start the message pump |
#/bin/bash | |
########################################################################## | |
# Uses openconnect to connect to a VPN gateway and ssh into the specified | |
# remote host as per the arguments passed to the script, and route internet | |
# traffic through a default gateway. | |
# Note: The script assumes internet connectivity on the wireless interface | |
# "usage: ./vpn <remote_user> <remote_host>" | |
########################################################################### |
<?xml version="1.0"?> | |
<ruleset name="MyStandard"> | |
<description>PSR2 with tabs instead of spaces.</description> | |
<arg name="tab-width" value="4"/> | |
<rule ref="PSR2"> | |
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/> | |
</rule> | |
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/> | |
<rule ref="Generic.WhiteSpace.ScopeIndent"> | |
<properties> |
#!/usr/bin/python | |
""" | |
A command line calculator with the following features: | |
1) Accepts numbers with any decimal and thousand separators. | |
2) Uses Decimal when possible, which favors "user-friendliness" of results | |
over speed of computation. | |
""" | |
from __future__ import division, print_function |
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages