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 / 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
We couldn’t find that file to show.
@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^
The PCT tutorial episode-3 instructs to add this to Actions.pm
method term:sym<integer_constant>($/) {
make PAST::Val.new(:value($<integer>.ast), :returns<Integer>);
}
method term:sym<string_constant>($/) {
my $past := $<quote>.ast;
$past.returns('String');
make $past;
}

In the words of Abrasive. I just ordered mashed up the answers to my questions also into it for clarity.

High probability that these tablets come with uboot as their bootloader.

There are two ways of doing this - tell uboot to boot linux from the SD-card or install linux on the flash.

The easiest route is to start by booting from SD, then move everything into flash. However your main problem would be the fact that the only input device on a tablet is a touch-screen and debian installer doesn't support touch-screens as of this writing.

Setup your SD-card to be bootable

@HashNuke
HashNuke / .rvmrc
Created April 15, 2011 14:36
Automatically create and switch gemsets for your projects. Add this .rvmrc file to your project's dir
rvm_trust_rvmrcs=1
rvm_gemset_create_on_use_flag=1
rvm use 1.9.2@projectname
@HashNuke
HashNuke / gist:936044
Created April 22, 2011 04:55
remove file from git cache
git rm --cached config/database.yml
> binding
#<Binding:0x0000000140aa28>
> binding.class
=> Binding
> respond_to? :binding
false
> defined? binding
akashmanohar:cas-auth-app akashmanohar$ rails c
Loading development environment (Rails 3.1.0.rc1)
script/rails: No such file or directory - rvm tools identifier
load error: /Users/akashmanohar/.rvm/rubies/ruby-1.9.2-p180/.irbrc
NoMethodError: undefined method `strip' for nil:NilClass
/Users/akashmanohar/.rvm/gems/ruby-1.9.2-p180@rails31/gems/activesupport-3.1.0.rc1/lib/active_support/whiny_nil.rb:48:in `method_missing'
/Users/akashmanohar/.rvm/scripts/irbrc.rb:40:in `<top (required)>'
/Users/akashmanohar/.rvm/gems/ruby-1.9.2-p180@rails31/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:237:in `require'
/Users/akashmanohar/.rvm/gems/ruby-1.9.2-p180@rails31/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:237:in `block in require'
/Users/akashmanohar/.rvm/gems/ruby-1.9.2-p180@rails31/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:223:in `block in load_dependency'
@HashNuke
HashNuke / .env
Created September 6, 2011 09:05
Foreman .env file
GIRLFRIEND_VERSION=0.9beta
GIRLFRIEND_PATH=/dev/null