Skip to content

Instantly share code, notes, and snippets.

View konstantinbe's full-sized avatar

Konstantin Bender konstantinbe

View GitHub Profile
@konstantinbe
konstantinbe / github-upload.rb
Created August 11, 2011 11:51 — forked from wereHamster/README.md
Script to upload files to github: ./github-upload.rb <file> [<repo>]
#!/usr/bin/env ruby
# Die if something goes wrong
def die(msg); puts(msg); exit!(1); end
# Login credentials
login = `git config --get github.user`.chomp
token = `git config --get github.token`.chomp
# The file we want to upload