Checkout new repo
git clone git@github.com:vhx/watchlater
go into your vhx folder
cd ~/dev/vhx
Checks current status of modified files
git status
Shows you all the current modifications
#!/bin/bash | |
CORE_PATH="/Library/Application Support/TextMate/Bundles/" | |
USER_PATH="/Users/$(whoami)/Library/Application Support/TextMate/Bundles/" | |
echo "Updating core TextMate bundles..." | |
cd "${CORE_PATH}" | |
#svn up *.tmbundle | |
svn up |
# .git/hooks/build-failed | |
echo -e "http://cijoe-server:4567\n\n" | cat - .git/builds/last | mail -s 'CI: Build failed!' recipient@domain.com |
# If your workers are inactive for a long period of time, they'll lose | |
# their MySQL connection. | |
# | |
# This hack ensures we re-connect whenever a connection is | |
# lost. Because, really. why not? | |
# | |
# Stick this in RAILS_ROOT/config/initializers/connection_fix.rb (or somewhere similar) | |
# | |
# From: | |
# http://coderrr.wordpress.com/2009/01/08/activerecord-threading-issues-and-resolutions/ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Megaplaya Advanced Embed demo</title> | |
</head> | |
<body> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script> | |
<script type="text/javascript" src="http://vhx.tv/javascripts/jquery.swfobject-1.1.1.js"></script> |
desc 'Test site output for Liquid template errors' | |
task :test => :build do | |
errors = `grep --exclude Rakefile -R 'Liquid error:' _site` | |
if errors.nil? || errors.empty? | |
puts "No errors" | |
else | |
puts "Errors:" | |
puts errors.inspect | |
exit 1 | |
end |
use strict; | |
use Irssi; | |
use URI::Find::Rule; | |
use REST::Client; | |
use URI::Escape; | |
use vars qw($VERSION %IRSSI); | |
$VERSION = '0.01'; | |
%IRSSI = ( |
<sml> | |
<!-- | |
# SCRATCH MARKUP LANGUAGE, WORKING DRAFT | |
http://scratchml.com | |
* version -- minor versions for small changes, major for incompatibilities | |
* info -- general file metadata: author info, client info etc. | |
* turntable - hardware metadata | |
* mixer -- hardware metadata |
Checkout new repo
git clone git@github.com:vhx/watchlater
go into your vhx folder
cd ~/dev/vhx
Checks current status of modified files
git status
Shows you all the current modifications
require 'fileutils' | |
# Warning: The following deploy task will completely overwrite whatever is currently deployed to Heroku. | |
# The deploy branch is rebased onto master, so the push needs to be forced. | |
desc "Deploy app to Heroku after precompiling assets" | |
task :deploy do | |
deploy_branch = 'heroku' | |
remote = 'heroku' | |
deploy_repo_dir = "tmp/heroku_deploy" |
#!/usr/bin/env ruby | |
require 'iconv' | |
require 'nokogiri' | |
# This is a simple script to spider your Netflix paginated "What You've Rated" list. | |
# It requires an OS X based system with Ruby 1.9+, Safari, and AppleScript | |
# | |
# I could not find a way to back up my ratings (for all titles, not just my rental activity) | |
# without registering for a Netflix API key or handing my Netflix credentials over to someone | |
# who had an API key, so I decided to take a brute force approach and just parse the HTML for |