Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>Stripe Sample Form</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js"></script> | |
<script type="text/javascript" src="https://js.stripe.com/v1/"></script> | |
<script type="text/javascript"> |
# Include this module in a class to add enhanced attr_accessor | |
# functionality. With this module included, ... | |
# | |
# * You may provide a block to an attr_accessor call that accepts | |
# a base attribute name and returns a default value for each | |
# instance attribute. | |
# * Any attribute name consisting of a base name followed by a | |
# "?" suffix represents a boolean attribute. | |
# | |
# If the including class has its own #initialize method, that |
# lib/tasks/app.rake | |
namespace :app do | |
desc 'Seed the current env db with "dummy" data' | |
task seed: :environment do | |
require './lib/seed' | |
Seed.start | |
end | |
end |
Add the following chunk to your existing ISC dhcpd.conf
file.
if exists user-class and ( option user-class = "iPXE" ) {
filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
filename "undionly.kpxe";
}
(or see https://gist.github.com/4008017 for a more elaborate setup
require './lib/ordinal_array' | |
require "benchmark" | |
number_values = (0...999).sort_by{rand} | |
number_letters = [ | |
:first, :second, :third, :fourth, :fifth, :sixth, :seventh, :eighth, :ninth, | |
:tenth, :eleventh, :twelfth, :thirteenth, :fourteenth, :fifteenth, :sixteenth, :seventeenth, :eighteenth, :nineteenth, | |
:twentieth, :twenty_first, :twenty_second, :twenty_third, :twenty_fourth, :twenty_fifth, :twenty_sixth, :twenty_seventh, :twenty_eighth, :twenty_ninth, | |
:thirtieth, :thirty_first, :thirty_second, :thirty_third, :thirty_fourth, :thirty_fifth, :thirty_sixth, :thirty_seventh, :thirty_eighth, :thirty_ninth, | |
:fortieth, :fourty_first, :fourty_second, :fourty_third, :fourty_fourth, :fourty_fifth, :fourty_sixth, :fourty_seventh, :fourty_eighth, :fourty_ninth, |
#!ipxe | |
echo | |
echo Starting Ubuntu 10.04.4 x64 installer for ${hostname} | |
# Hook SAN disk | |
set root-path iscsi:nas.smidsrod.lan::::iqn.2011-02.lan.smidsrod:${hostname}.boot.ubuntu | |
sanhook ${root-path} || | |
# Start debian-installer | |
set base-url http://boot.smidsrod.lan/ubuntu-10.04.4-amd64-server |
require 'formula' | |
class WkhtmltopdfQt < Formula | |
url 'git://gitorious.org/+wkhtml2pdf/qt/wkhtmltopdf-qt.git' | |
end | |
class Wkhtmltopdf < Formula | |
homepage 'http://code.google.com/p/wkhtmltopdf/' | |
url 'http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1.tar.bz2' | |
sha1 'db03922d281856e503b3d562614e3936285728c7' |
require "rubygems" | |
require "pivotal-tracker" | |
namespace :pt do | |
desc "list avail pivotal tracker tix from which to create a git fea branch" | |
task :list do | |
def truncate_words(text, length = 5) | |
return if text == nil | |
words = text.split() | |
words = words - %w(feature scenario for in on a an the of so that they be able to are it its with) #remove non critical words (experiment with this) |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'json' | |
unless ARGV.count > 1 | |
puts "Usage: json_diff.rb json_file_1.json json_file_2.json" | |
exit | |
end | |
def different?(a, b, bi_directional=true) |