Check These Out
This will get the sunrise and sunset times of a specific location. To be able to determine $l you need to first go to http://weather.yahoo.com/ and look up your location. The last numbers in the URL will be the $l
Instead of forecastrss?w=$l you can also use forecastrss?p=$l and use the RSS link of the city you found.
Also see http://developer.yahoo.com/weather/ for more information
When expanding, bash output the command, so don't be affraid if you type the command.
Here is the details:
First examples:
$echo foo bar foobar barfoo
First argument:
$echo !$
echo barfoo
barfoo
(Note that typing echo foo bar foobar barfoo && echo !$, bash substitute !$ with $:1)
Last argument:
$echo foo bar foobar barfoo && echo !^
echo foo bar foobar barfoo && echo barfoo
foo bar foobar barfoo
barfoo
All the arguments:
$echo !*
echo foo bar foobar barfoo
foo bar foobar barfoo
The third argument:
$echo foo bar foobar barfoo && echo !:3
echo foo bar foobar barfoo && echo foobar
foo bar foobar barfoo
foobar
You may want to add {} for large numbers: echo !:{11} for example
Now with path:
$echo /usr/bin/foobar
/usr/bin/foobar
For the head:
$echo !$:h
echo /usr/bin
/usr/bin
And the tail:
$echo !$:t
echo foobar
foobar
You also may want to try !:h and !:t or !!3-4 for the third and the fourth (so !!:* == !!:1-$)
converts any number on the 'stdin' to SI notation. My version limits to 3 digits of precious (working with 10% resistors).
Sometimes I need to create a directory of files to operate on to test out some commandlinefu I am cooking up. The main thing is the range ({1..N}) expansion.
For when you need a quick spell check.
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
It replays plain text terminal screencast from http://shelr.tv/
Download Websites to 5 Level and browse offline!
-k -> convert-links (to browse offline)
-r -> recursive download
-l 5 -> level 5
example.
http://gentoo-install.com
:-)