(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
#!/usr/bin/env python | |
import os | |
import datetime | |
my_dir = os.path.expanduser('~/commit-captures') | |
if not os.path.exists(my_dir): | |
os.makedirs(my_dir) | |
filename = '%s/%s.jpeg' % (my_dir, datetime.datetime.now()) |
#!/usr/bin/env python2 | |
# encoding: utf-8 | |
# freeleech_dl.py by tobbez | |
import json | |
import requests | |
import HTMLParser | |
import os | |
import re | |
from getpass import getpass |
alphabet = [[chr(x), chr(x)] for x in range(65, 91)] |
>>> bool_to_word = ['nope', 'yep'] | |
>>> bool_to_word[True] | |
'yep' | |
>>> bool_to_word[False] | |
'nope' | |
>>> 5 * True | |
5 | |
>>> 5 * False | |
0 |
sudo python -m smtpd -n -c DebuggingServer localhost:25 |
#!/bin/bash | |
DOTFILES_DIR="$HOME/src/dotfiles" | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew doctor | |
brew install git | |
mkdir src |
sudo apt-get install virtualbox-guest-dkms |
package main | |
import ( | |
"net/http" | |
) | |
func main() { | |
fs := http.FileServer(http.Dir("static")) | |
http.Handle("/", fs) | |
http.ListenAndServe(":3000", nil) |
#!/bin/bash | |
docker run --name='gitlab' -it --rm \ | |
-e 'GITLAB_PORT=10080' -e 'GITLAB_SSH_PORT=10022' \ | |
-p 10022:22 -p 10080:80 \ | |
-v /var/run/docker.sock:/run/docker.sock \ | |
-v $(which docker):/bin/docker \ | |
sameersbn/gitlab:latest |