Add to .bashrc
function ListAllCommands
{
echo -n $PATH | xargs -d : -I {} find {} -maxdepth 1 \
-executable -type f -printf '%P\n' | sort -u
}
If you also want aliases, then:
# -z: Compress archive using gzip program | |
# -c: Create archive | |
# -v: Verbose i.e display progress while creating archive | |
# -f: Archive File nam | |
tar -zcvf prog-1-jan-2005.tar.gz /home/jerry/prog |
Add to .bashrc
function ListAllCommands
{
echo -n $PATH | xargs -d : -I {} find {} -maxdepth 1 \
-executable -type f -printf '%P\n' | sort -u
}
If you also want aliases, then:
time bundle exec rake import:squat & |
Host staging | |
Hostname 1.1.1.1 | |
Host production | |
Hostname 1.1.1.2 |
cat /proc/version #=> | |
Linux version 2.6.32.12-rscloud ([email protected]) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #26 SMP Mon May 17 12:35:34 UTC 2010 | |
uname -a #=> | |
Linux staging 2.6.32.12-rscloud #26 SMP Mon May 17 12:35:34 UTC 2010 x86_64 GNU/Linux | |
cat /etc/*version #=> | |
squeeze/sid | |
cat /etc/*release #=> |
#!/bin/bash | |
WGET='/usr/bin/wget' | |
# input validation | |
if [ ! -n "$1" ] | |
then | |
echo "You must enter a url as the first parameter" | |
echo "Usage: $0 <url>" | |
exit | |
fi |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Have no idea which one is the right one | |
## | |
# Your previous /Users/michaelminter/.bash_profile file was backed up as /Users/michaelminter/.bash_profile.macports-saved_2011-12-30_at_11:11:57 | |
## | |
# MacPorts Installer addition on 2011-12-30_at_11:11:57: adding an appropriate PATH variable for use with MacPorts. | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH |
irb -Ilib -rGEMNAME |
CREATE TABLE genus ( | |
id int auto_increment primary key, | |
name varchar(20) | |
); | |
INSERT INTO genus (name) VALUES | |
('Brachypelma'), | |
('Avicularia'), | |
('Nhandu'), | |
('Euathlus'), |