start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env python | |
import random | |
CHARS = { | |
'top': [ | |
u'\u0300', | |
u'\u0301', | |
u'\u0302', | |
u'\u0303', |
class window.IdleTimer | |
constructor: () -> | |
@timer | |
@timeIncrement = 1000 | |
@timeIdle = 0 | |
@timeMax = 10000 | |
@expired = false | |
@interactionMethods = ['click','mousemove'] | |
# these should not be in here. move somewhere else. |
The following rules of programming style are excerpted from the book "The Elements of Programming Style" by Kernighan and Plauger, published by McGraw Hill. Here is quote from the book: "To paraphrase an observation in The Elements of Style by Strunk and White, the rules of programming style, like those of English, are sometimes broken, even by the best writers. When a rule is broken, however, you will usually find in the program some compensating merit, attained at the cost of the violation. Unless you are certain of doing as well, you will probably do best to follow the rules."
#!/bin/bash | |
# | |
# Removes the Bing logo from Satellite Eyes wallpapers | |
# | |
# Delete the Bing logo image | |
rm -f /Applications/Satellite\ Eyes.app/Contents/Resources/bing-logo.png | |
# Clear the map cache | |
rm -f ~/Library/Application\ Support/Satellite\ Eyes/map-*.png |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
# Two escapes clear command line. | |
"\e\e": "\C-a\C-k" | |
# Tab to menu complete | |
"\t": menu-complete | |
# Incremental searching with Up and Down and Left and Right | |
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
"\e\e[C": forward-word |
#!/bin/sh | |
# man - `man` replacement for git bash on windows | |
# Requires: | |
# Git Bash - https://git-scm.com/downloads/ | |
# wget - https://eternallybored.org/misc/wget/ | |
# Notes: | |
# `sed -r` = allows gnu regex extensions (like +) |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev | |
#Optional: so vim can be uninstalled again via `dpkg -r vim` | |
sudo apt-get install checkinstall | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
cd ~ |