Skip to content

Instantly share code, notes, and snippets.

View bkono's full-sized avatar

Bryan Konowitz bkono

View GitHub Profile
static void Main(string[] args)
{
for (int i = 0; i < 10; i++)
{
var token =
BitConverter.ToString(SHA1.Create().ComputeHash(Encoding.ASCII.GetBytes(Guid.NewGuid().ToString())))
.Replace("-", "").Substring(8, 12).ToLower();
# mongo_template.rb
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/javascripts/controls.js"
run "rm public/javascripts/dragdrop.js"
run "rm public/javascripts/effects.js"
run "rm public/javascripts/prototype.js"
// jQuery to scroll to a target element
var x = $(ELEMENT).offset().top - 100;
$('html,body').animate({scrollTop: x}, 500);
#!/usr/bin/ruby
if ENV['GIT_DIR'] == '.'
Dir.chdir('..')
ENV['GIT_DIR'] = '.git'
end
old_head, new_head, ref = STDIN.gets.split
puts ref
`echo \"#{ ref }\" >> head.txt`
if ref == "refs/heads/prod"