Skip to content

Instantly share code, notes, and snippets.

@simme
simme / Install_tmux
Created October 19, 2011 07:55
Install and configure tmux on Mac OS X
# 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/
@jvc26
jvc26 / pear.rb
Created November 29, 2011 12:11 — forked from jakemcgraw/pear.rb
Puppet PHP Pear provider
# 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'

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@hagix9
hagix9 / lxc-centos
Last active March 11, 2024 12:23 — forked from mattwillsher/lxc-centos
LXC CentOS template. Work with Ubuntu if the yum package is installed
#!/bin/bash
#
# template script for generating CentOS container for LXC
#
#
# lxc: linux Container library
# Authors:
@noteed
noteed / docker-ovs.md
Last active December 29, 2023 07:07
Docker - Open vSwitch setup
@agleyzer
agleyzer / akamai2graphite.py
Created January 29, 2014 21:30
Bulk loader for Akamai traffic reports CSV to Graphite
#!/usr/bin/env python
import socket
from datetime import datetime
import csv
import sys
import pickle
import struct
import threading
import urllib2
@gene1wood
gene1wood / batch-delete-gmail-emails.js
Last active March 10, 2024 17:53
A Google Apps Script script to bulk delete large amounts of email in Gmail while avoiding the error #793 which Gmail encounters normally
/*
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