Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import os
import random
import time
os.system("osascript -e 'set volume 1' 2>/dev/null");
phrases = ("Help me, I'm stuck in here!", "Is anyone out there?", "Can anybody hear me?", "S O S", "It's dark in here..", "I'm watching you", "Please don't look at me like that", "Don't touch me there!", "What are you doing?", "Who are you?", "I know what you're typing...", "I wouldn't say that if I were you..")
voices = ("Zarvox", "Fred", "Ralph", "Victoria", "Princess", "Alex")
@jimrubenstein
jimrubenstein / ami-to-ebs.sh
Created December 16, 2011 19:56 — forked from hubgit/ami-to-ebs.sh
creating an EBS AMI from a running Instance
# in web browser
# http://uec-images.ubuntu.com/releases/karmic/release/
# canonical karmic 64-bit AMI:
# ami-55739e3c
# canonical karmic 32-bit AMI:
# ami-bb709dd2
# https://console.aws.amazon.com/ec2/home#c=EC2&s=Instances
# Launch Instance > Community AMIs
<?
class MyException extends Exception
{
public function getType() { return 'NotException'; }
}
function doTest()
{
$e = new MyException('stupid php', 1);
@jimrubenstein
jimrubenstein / gist:3152882
Created July 20, 2012 20:00
mandrill library
var request = require('request'),
_ = require('underscore');
var MANDRILL_API_ROOT = 'https://mandrillapp.com/api/1.0/';
function makeMandrill(key)
{
function mandrill(path, opts, callback)
{
console.log(this.key, 'key');
The Trustees of Reservations: Berkshires
"e" inc.
11:11 Theatre Company
17 Cox
185 Photos
33 Restaurant &amp; Lounge
3rd Wheel Comedy
3Scoops Cafe and Gallery
4th Floor Artists
54th Mass Volunteer Infantry, Company 'A'
Views = {
render: function(template, data)
{
if (undefined == JST)
{
throw new Error("JST Templates unavailable");
}
if (undefined == JST[ template ])
{
# Setting up dnsmasq for Local Web Development Testing on any Device
Please note, these instructions are for OS X Lion.
First, you need to get the IP address of your machine on your local network. In OS X, the easiest place to find this is in System Preferences > Network. If you're using DHCP on your local network, you will want to make sure your computer requests the same IP address when it renews it's IP address lease. I recommend configuring the DCHP Reservation settings on your router to accomplish this. Otherwise, you can specify a manual address in your network settings:
1. Go to *System Preferences > Network*
1. Click *Advanced...*
__d("adsAsyncUtils", [], function(a, b, c, d, e, f) {
var g = 30;
function h(arr, iter, progress) {
"use strict";
this.$ParallelForEach0 = arr; //array
this.$ParallelForEach1 = 1; //concurrency
this.$ParallelForEach2 = iter; //iterator
this.$ParallelForEach3 = progress; //progress complete
this.$ParallelForEach4 = 0; //working "threads"
this.$ParallelForEach5 = 0;
var Entry = (function($) {
function Entry(attributes) {
this.attributes = attributes;
}
Entry.prototype.get = function(attr) {
return this.attributes[ attr ] || null;

Keybase proof

I hereby claim:

  • I am jimrubenstein on github.
  • I am jrub (https://keybase.io/jrub) on keybase.
  • I have a public key whose fingerprint is 9A3E 223C B262 4C98 8EA3 2592 E80D ADCA E737 323D

To claim this, I am signing this object: