#--------------------------------------------------------------------------------
# Others
#
-alias nb-radio-indie='mplayer http://107.155.126.42:17160/listen.pls'
-alias nb-radio-france-inter='mplayer http://www.tv-radio.com/station/france_inter_mp3/france_inter_mp3-128k.m3u'
alias uuid-hds='blkid -o full -s UUID'
# NB 20.05.15 alias myip='lynx --dump --source http://www.ipchicken.com/ | sed -ne "s/^.*[^0-9]\(\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}\).*$/\1/p"'
alias myip='lynx --dump --source http://nicolas.boisselier.free.fr/myip/'
}
if [ -n "$DARWIN" ]; then
- md5sum() {
+ md5sum() {
md5 $@ | sed "s/^MD5 (\(.*\)) = \(.*\)$/\2 \1/"
}
fi
ifconfig | perl -ne '/^\s*inet (?:addr:)?([\d\.]+)/ and $1 ne "127.0.0.1" and print "$1\n"'
}
+nb-radio-play() {
+ local radios="
+1 | FranceInter | http://www.tv-radio.com/station/france_inter_mp3/france_inter_mp3-128k.m3u
+2 | Indie | http://107.155.126.42:17160/listen.pls
+3 | FranceInof | http://players.creacast.com/creacast/france_info/playlist.m3u
+4 | FranceCulture | http://www.tv-radio.com/station/france_culture_mp3/france_culture_mp3-128k.m3u
+"
+ read -s -p "$radios"
+ test $REPLY -gt 0 2> /dev/null || return
+ #echo -e "$radios" | awk 'BEGIN {$FS=" | "} $1 == '$REPLY' {print $1"."$2"."$3"."$4}'
+ awk -F '|' '$1 == '$REPLY' {print $3; exit}' <<< "$radios" | sed 's/^ //' | xargs -r mplayer
+}
+
alias nb-img2jpg='convert -strip -interlace Plane -gaussian-blur 0.05 -quality 85%'
nb-img-compress() {