Skip to content

Instantly share code, notes, and snippets.

@gene1wood
gene1wood / batch-delete-gmail-emails.js
Last active Jun 18, 2021
A Google Apps Script script to bulk delete large amounts of email in Gmail while avoiding the error #793 which Gmail encounters normally
View batch-delete-gmail-emails.js
/*
This script, when used with Google Apps Scripts will delete 500 emails and
can be triggered to run every minute without user interaction enabling you
to bulk delete email in Gmail without getting the #793 error from Gmail.
Configure the search query in the code below to match the type of emails
you want to delete
Browser to https://script.google.com/.
Start a script and paste in the code below.
After you past it in, save it and click the little clock looking button.
@agleyzer
agleyzer / akamai2graphite.py
Created Jan 29, 2014
Bulk loader for Akamai traffic reports CSV to Graphite
View akamai2graphite.py
#!/usr/bin/env python
import socket
from datetime import datetime
import csv
import sys
import pickle
import struct
import threading
import urllib2
@noteed
noteed / docker-ovs.md
Last active Apr 17, 2019
Docker - Open vSwitch setup
View docker-ovs.md
@hagix9
hagix9 / lxc-centos
Last active Apr 9, 2020 — forked from mattwillsher/lxc-centos
LXC CentOS template. Work with Ubuntu if the yum package is installed
View lxc-centos
#!/bin/bash
#
# template script for generating CentOS container for LXC
#
#
# lxc: linux Container library
# Authors:
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@jvc26
jvc26 / pear.rb
Created Nov 29, 2011 — forked from jakemcgraw/pear.rb
Puppet PHP Pear provider
View pear.rb
# 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'
@simme
simme / Install_tmux
Created Oct 19, 2011
Install and configure tmux on Mac OS X
View Install_tmux
# 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/