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
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 |
| # My pimped out unicorn config, with incremental killof | |
| # and all the latest capistrano & bundler-proofing | |
| # @jamiew :: http://github.com/jamiew | |
| application = "000000book.com" | |
| environment = ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'production' | |
| app_path = "/srv/#{application}" | |
| bundle_path = "#{app_path}/shared/bundle" | |
| timeout 30 |
| 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? |