Skip to content

Instantly share code, notes, and snippets.

View anabelle's full-sized avatar

Anabelle Handdoek anabelle

View GitHub Profile
@buritica
buritica / new_repo.rb
Created September 22, 2011 23:27
Create new folder, init repo, add readme.md, add remote origin, first commit, push to origin
#!/usr/bin/env ruby
# USAGE: sudo ./newrepo.rb folder_name origin_url
# Give it exec permissions before running: chmod +x init.rb
# Protip: add it to your ~/.profile or ~/.bash_profile, copy it to your ~/Scripts and run it from anywhere:
# alias new_repo="~/Scripts/new_repo.rb"
require 'fileutils'
@malthe
malthe / less.app
Created September 22, 2011 08:14
less.app in bash
#!/bin/bash
if [ ! -d $1 ]; then
echo "Not a directory: $1"
exit -1
fi
while read line; do
filename="$(basename $line)"
if [ "${filename##*.}" == "less" ]; then
@mixonic
mixonic / .gitignore
Created May 16, 2011 18:55
Mousy - A shared cursor for webpages using Node.js
node_modules
public/socket.io.min.js
public/jquery.js