Skip to content

Instantly share code, notes, and snippets.

View jarpy's full-sized avatar
💚

Nina Dowland jarpy

💚
  • Elastic
  • Adelaide
  • 01:03 (UTC +09:30)
View GitHub Profile
@tbutts
tbutts / tmux-migrate-options.py
Last active February 29, 2024 08:11
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
#!/usr/bin/env python
# vim: set fileencoding=utf-8
#
# USAGE:
# Back up your tmux old config, run the script and redirect stdout to your conf
# file. Example:
#
# $ cp ~/.tmux.conf ~/.tmux.conf.orig
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf
#
@ozzyjohnson
ozzyjohnson / vagrant_spot_instance.md
Last active June 19, 2018 15:44
Use an EC2 spot instance with Vagrant

Setup:

git clone git@github.com:nabeken/vagrant-aws.git
cd vagrant-aws
git checkout spot-3
gem build vagrant-aws.gemspec
vagrant install plugin vagrant-aws-0.5.0.gem

Vagrantfile:

@alq666
alq666 / pgsnap.py
Created June 18, 2012 03:52
xfs-freeze + ebs snapshots
import boto
import logging
import os
import time
import subprocess
import sys
import urllib2
logger = logging.getLogger("pgbackup")
logger.addHandler(level=logging.INFO, logging.handlers.SysLogHandler(facility=logging.handlers.SysLogHandler.LOG_LOCAL0))