Skip to content

Instantly share code, notes, and snippets.

View jberkel's full-sized avatar

Jan Berkel jberkel

View GitHub Profile
@jberkel
jberkel / gist:615032
Created October 7, 2010 12:35
store apks in da cloud
#!/usr/bin/env ruby
require 'aws/s3'
require 'erb'
require 'cgi'
require 'json'
class CloudAPK
include AWS::S3
@philcali
philcali / rm_gitmodules.sh
Created March 28, 2012 19:53
Safely removes submodules from a git repository.
#!/bin/sh
echo Removing .git directories in the submodules
cat .git/config | grep submodule | sed 's/\[submodule \"\(.*\)"\]/\1/' | xargs find | grep "./.git$" | xargs rm -r
echo Removing .git cached
cat .git/config | grep submodule | sed 's/\[submodule \"\(.*\)"\]/\1/' | xargs git rm --cached
echo Remove submodule entries from .gitmodules
git rm .gitmodules
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.