As configured in my dotfiles.
start new:
tmux
start new with session name:
# First install tmux | |
brew install tmux | |
# For mouse support (for switching panes and windows) | |
# Only needed if you are using Terminal.app (iTerm has mouse support) | |
Install http://www.culater.net/software/SIMBL/SIMBL.php | |
Then install https://bitheap.org/mouseterm/ | |
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
# Puppet PHP PEAR Package support | |
# | |
# Originally forked from https://gist.github.com/305778 by jvc26 | |
# | |
# == Instructions for use: | |
# This file should be put within {module}/lib/puppet/provider/package/pear.rb | |
# | |
# In order for it to be loaded, you require pluginsync=true set within your puppet.conf | |
require 'puppet/provider/package' |
As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/bin/bash | |
# | |
# template script for generating CentOS container for LXC | |
# | |
# | |
# lxc: linux Container library | |
# Authors: |
This Gist shows how to use Open vSwitch to bridge Docker containers on two hosts. It is based on this blog post http://goldmann.pl/blog/2014/01/21/connecting-docker-containers-on-multiple-hosts/.
A similar Gist using Tinc instead of Open vSwitch is available: https://gist.github.com/noteed/11031504.
#!/usr/bin/env python | |
import socket | |
from datetime import datetime | |
import csv | |
import sys | |
import pickle | |
import struct | |
import threading | |
import urllib2 |
/* | |
This script, when used with Google Apps Scripts, will delete 400 emails and | |
can be triggered to run every few minutes without user interaction enabling you | |
to bulk delete email in Gmail without getting the #793 error from Gmail. | |
Google returns a maximum of 500 email threads in a single API call. | |
This script fetches 400 threads in case 500 threads is causing timeouts | |
Configure the search query in the code below to match the type of emails | |
you want to delete |