This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
#!/bin/bash | |
# Colors | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NO_COLOR='\033[0m' | |
BLUE='\033[0;34m' | |
YELLOW='\033[0;33m' | |
NO_COLOR='\033[0m' |
#!/bin/bash | |
# | |
# Mush mosh and SSM sessions together. | |
# | |
# Run mosh-server on an EC2 instance as part of an AWS Session Manager SSH | |
# session, and feed the output into mosh-client locally. This is helpful | |
# if you have an EC2 instance which: | |
# | |
# * Is publicly addressable | |
# * Has a predictable Name tag but a shifting IP |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string> | |
</dict> | |
<key>Label</key> |
<?php | |
/* | |
tumblr gif tagger | |
goes through your tumblr photo posts, finds .gifs, and tags em #gif | |
so that they can show up in https://tumblr.com/tv/@your-blog-here | |
this was made to be run via command line, i.e. `php giftagger.php` |
require 'csv' | |
# Parses CSV-exported data from SleepBot | |
def parse_export(row) | |
# Parse the wake up date | |
date_to = row[0].split('/') | |
date_to = Time.new(2000 + date_to[2].to_i, date_to[1], date_to[0]) | |
# Parse the wake up/sleep times | |
time_from = row[1].split(':') |
<?php | |
class ColorCLI { | |
static $foreground_colors = array( | |
'bold' => '1', 'dim' => '2', | |
'black' => '0;30', 'dark_gray' => '1;30', | |
'blue' => '0;34', 'light_blue' => '1;34', | |
'green' => '0;32', 'light_green' => '1;32', | |
'cyan' => '0;36', 'light_cyan' => '1;36', |
<html> | |
<head> | |
<title>Animated Sparkline using SVG Path and d3.js</title> | |
<script src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
<style> | |
/* tell the SVG path to be a thin blue line without any area fill */ | |
path { | |
stroke: steelblue; | |
stroke-width: 1; | |
fill: none; |
#!/usr/bin/perl | |
#March 9th 2011 | |
#fisrt pass at branch switch script | |
#author bob patterson <bob at bobpattersonjr dot com> | |
sub trim($); | |
print "fetching all branchs and tags\n"; | |
`git fetch;git fetch --tags`; | |
$new_branch = trim($ARGV[0]); | |
$non_branch_test = `git branch|tr -d ' '|grep -x $new_branch`; |
#!/usr/bin/python | |
# Connects to localhost, 27017 by default | |
import sys | |
import pymongo | |
import time | |
if len(sys.argv) < 2: | |
print >> sys.stderr, "Usage: ./tail_profile.py <dbName> [hostname] [port]" | |
sys.exit(-1) |