Skip to content

Instantly share code, notes, and snippets.

@ncimino
ncimino / listtar.sh
Created September 24, 2012 22:53
List Archive Contents - tar
#!/bin/sh
# Expects dir_name.tar.gz
tar -tzf ${1}
@ncimino
ncimino / untarit.sh
Created September 24, 2012 22:49
Extract File - tar
#!/bin/sh
# Expects dir_name.tar.gz
tar -xzf ${1}
@ncimino
ncimino / tarit.sh
Created September 24, 2012 22:46
Compress Directory and Contents - tar
#!/bin/sh
# Expects /path/to/dir_name
tar -czf `basename ${1}`.tar.gz ${1}
@ncimino
ncimino / add_bp_css.sh
Created September 6, 2012 04:30
Add blueprint css to a ruby project
#!/bin/sh
# expects:
# add_bp_css.sh my_rails_project
pushd ${HOME}
git clone [email protected]:joshuaclayton/blueprint-css
cd blueprint-css/lib
sudo bundle install --without test
ruby compress.rb -o ${HOME}/$1/app/assets/stylesheets