This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/ssh' | |
require 'net/ssh/gateway' | |
# Connect to the gateway machine | |
gateway = Net::SSH::Gateway.new('host.to.tunnel.from', 'user.name') | |
# Open the tunnel (in this example we are using port 5900 locally) | |
gateway.open('host.to.tunnel.to', 22, 5900) | |
# SSH through our tunnel and grab the list of vault contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// RemoteEntity.h | |
// | |
// Created by Christopher Bradford on 5/6/10. | |
// Copyright 2010 INM United. All rights reserved. | |
// | |
@interface RemoteEntity : NSManagedObject | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require 'rubygems' | |
require 'uri' | |
require 'net/http' | |
require 'json' | |
require 'pp' | |
require 'mysql' | |
SERVER = "http://drupal.example.com/api/blog" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (NSString *family in [UIFont familyNames]) { | |
NSLog(@"Family: %@", family); | |
for (NSString *font in [UIFont fontNamesForFamilyName:family]) { | |
NSLog(@" - %@", font); | |
} | |
NSLog(@""); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Package Maintainer: Increment phusion_release to match latest release available | |
%define phusion_release 2011.03 | |
%define _prefix /opt/ruby-enterprise | |
Summary: Ruby Enterprise Edition (Release %{phusion_release}) | |
Name: ruby-enterprise | |
Vendor: Phusion.nl <[email protected]> | |
Packager: Christopher Bradford <[email protected]> | |
Version: 1.8.7 | |
Release: 7%{?dist} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Location where we are storing the cache | |
$CACHE_DIRECTORY = dirname(dirname(__FILE__)) ."/statics"; | |
// Set the lifetime of cached pages | |
$CACHE_LIFETIME = (24 * 60 * 60); // 24 Hours * 60 Minutes (per hour) * 60 Seconds (per minute) | |
// Grab the URL to proxy, strip out the host as a security measure | |
$url = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inm-bradfordcp-mbp:some_folder bradfordcp$ cat .git/hooks/pre-commit | |
#!/bin/sh | |
# | |
# Regenerates documentation and adds it to the commit | |
# | |
echo | |
echo "Regenerating Documentation" | |
echo | |
rake doc:generate | |
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env node | |
// Require the filesystem library | |
var fs = require('fs'); | |
// Connect to MySQL | |
var Client = require('mysql').Client, client = new Client(); | |
client.user = 'rails'; | |
client.connect(); | |
client.query('USE scratch'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Regenerates documentaion and adds it to the commite | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
echo | |
echo "Regenerating Documentation" | |
echo | |
rake doc:generate | |
echo |