Skip to content

Instantly share code, notes, and snippets.

View HashNuke's full-sized avatar
💭
Life happened. I now have varied interests. I may be slow to respond.

Akash Manohar HashNuke

💭
Life happened. I now have varied interests. I may be slow to respond.
View GitHub Profile
@HashNuke
HashNuke / gist:608259
Created October 3, 2010 04:13
to undo push and commits
# to undo a git push
git push -f origin HEAD^:master
# to get to previous commit (preserves working tree)
git reset --soft HEAD
# to get back to previous commit (you'll lose working tree)
git reset --hard HEAD^
We couldn’t find that file to show.
@HashNuke
HashNuke / newairapp.sh
Created February 17, 2010 06:20
Script to generate a skeletal AIR application
#!/bin/sh
#Script to generate a skeletal HTML AIR application
#Copyright (C) 2010 Akash Manohar J (akashxav.com)
#
#Instructions:
#add <air_sdk>/bin to path (skip this if you did when you installed AIR SDK)
#save file as newairapp in the <air_sdk>/bin
#chmod+x <air_sdk>/bin/newairapp
#usage: newairapp <app_name>
#example: newairapp HelloAir