mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 21:45:10 +01:00
Tryout with cli weather forecast
This commit is contained in:
@@ -106,6 +106,9 @@ alias updatecalibre='sudo -v && wget -nv -O- https://raw.githubusercontent.com/k
|
|||||||
# Watch a DNS entry, see when it changes to a new value for example
|
# Watch a DNS entry, see when it changes to a new value for example
|
||||||
alias checkdns='watch -n1 dig '
|
alias checkdns='watch -n1 dig '
|
||||||
|
|
||||||
|
#weather(){ curl -s "http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=${@:-<YOURZIPORLOCATION>}"|perl -ne '/<title>([^<]+)/&&printf "%s: ",$1;/<fcttext>([^<]+)/&&print $1,"\n"';}
|
||||||
|
weather(){ curl -s "http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=${@:-Amsterdam}"|perl -ne '/<title>([^<]+)/&&printf "%s: ",$1;/<fcttext>([^<]+)/&&print $1,"\n"';}
|
||||||
|
|
||||||
# if you're really annoyed with a runaway process
|
# if you're really annoyed with a runaway process
|
||||||
function fuck() {
|
function fuck() {
|
||||||
if killall -9 "$2"; then
|
if killall -9 "$2"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user