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" |
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
<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 |
use strict; | |
use Irssi; | |
use URI::Find::Rule; | |
use REST::Client; | |
use URI::Escape; | |
use vars qw($VERSION %IRSSI); | |
$VERSION = '0.01'; | |
%IRSSI = ( |
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 |
<!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> |
# 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/ |
# .git/hooks/build-failed | |
echo -e "http://cijoe-server:4567\n\n" | cat - .git/builds/last | mail -s 'CI: Build failed!' recipient@domain.com |
#!/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 |
require File.dirname(__FILE__) + '/spec_helper' | |
describe "The library itself" do | |
Spec::Matchers.define :have_no_tab_characters do | |
match do |filename| | |
@failing_lines = [] | |
File.readlines(filename).each_with_index do |line,number| | |
@failing_lines << number + 1 if line =~ /\t/ | |
end | |
@failing_lines.empty? |