.bash aliases

From ICO wiki
Revision as of 22:01, 8 September 2017 by Edmund (talk | contribs)
Jump to navigationJump to search
# Preliminary version in Estonian can be found at http://viki.pingviin.org/Alias  
#  
# Also from http://enos.itcollege.ee/~edmund/materials/bash  
#
###########################################################################
# Some bash aliases
###################
alias u='sudo apt update && sudo apt full-upgrade'
alias k='sudo ldconfig && sudo dpkg --configure -a && sudo apt-get clean'
alias i='sudo apt install'
alias o='sudo apt search'
alias n='sudo apt show'
alias e='sudo apt purge'
alias ae='sudo apt purge --auto-remove'
alias p='sudo apt-cache policy'
alias f='sudo apt install -f'
###########################################################################
alias clean='rm ~/.local/share/recently-used.xbel 2>/dev/null' #clean recently used files list
alias neti='ping neti.ee'
#
# What is my IP address?
alias ipinfo='curl ipinfo.io'
alias ipinfo-ip='curl ipinfo.io/ip'
alias ipinfo-hostname='curl ipinfo.io/hostname'
alias ipinfo-city='curl ipinfo.io/city'
alias ipinfo-region='curl ipinfo.io/region'
alias ipinfo-country='curl ipinfo.io/country'
alias ipinfo-loc='curl ipinfo.io/loc'
alias ipinfo-org='curl ipinfo.io/org'
# sudo apt update && sudo apt install curl -y && sudo apt clean
###########################################################################
# Logging with SSH keyfile example with checking key both in text and visual mode. Replace with appropriate data
#
alias ssh='ssh-keyscan -t ecdsa address.ee | ssh-keygen -lv -f - && ssh -i ~/.ssh/keyfile -o VisualHostKey=yes user@address.ee'
#
###########################################################################
# Power management
alias power-lock-suspend='sudo physlock -du username; sudo systemctl suspend'
# sudo apt update && sudo apt install physlock -y && sudo apt clean
# https://groups.google.com/forum/#!topic/qubes-users/4dnNv5eYgq4
# https://github.com/muennich/physlock
alias power-off='systemctl poweroff'
alias power-reboot='systemctl reboot'
alias power-halt='systemctl halt'
alias power-suspend='systemctl suspend'
alias power-hibernate='systemctl hibernate'
###########################################################################
# RADIO STATIONS
# http://icecast.err.ee/
# http://striiming.trio.ee/
# www.raadio.ee
# www.raadio.net
# www.w3.ee
# et.wikipedia.org/wiki/Eesti_raadiojaamade_loend
# www.neti.ee/cgi-bin/teema/INFO_JA_MEEDIA/Raadio/
# www.neti.ee/cgi-bin/teema/INFO_JA_MEEDIA/Raadio/ON-LINE/
# www.rhm.ee/raadio/raadiojaam.html
# www.google.com/Top/World/Eesti/Meedia/Raadio/
# www.tvnewsradio.com/ee/raadio.htm
# www.di.fm
# somafm.com
# www.surfmusic.de
# www.micromusic.net
# www.1club.fm/radioChannelGuide.htm
# www.m2radio.fr
#
# Streaming Directories:
# http://dir.xiph.org/ (http://www.icecast.org/)
# http://www.shoutcast.com/
# http://www.internet-radio.com/
# http://www.live365.com/
# http://www.listenlive.eu/
# http://www.radiotunes.com/
# http://radiotuna.com/
# http://tunein.com/
# http://www.977music.com/
# http://www.radioguide.fm/
# http://www.radio.de/
#
#
##########################################################################
# Estonian National Broadcasting Company (ERR) - http://www.err.ee/
# http://icecast.err.ee/
#
# Classic radio - http://klassikaraadio.err.ee/
alias radio-err-kl-128-mp3='mplayer -playlist http://icecast.err.ee/klassikaraadio.mp3.m3u'
alias radio-err-kl-128-ogg='mplayer -playlist http://icecast.err.ee/klassikaraadio.ogg.m3u'
alias radio-err-kl-64-mp3='mplayer -playlist http://icecast.err.ee/klassikaraadiomadal.mp3.m3u'
alias radio-err-kl-64-ogg='mplayer -playlist http://icecast.err.ee/klassikaraadiomadal.ogg.m3u'
# x-terminal-emulator -T "Klassikaraadio" -e "mplayer -playlist http://icecast.err.ee/klassikaraadio.ogg.m3u"
#
# Radio 2 - http://r2.err.ee/
alias radio-err-r2-128-mp3='mplayer -playlist http://icecast.err.ee/raadio2.mp3.m3u'
alias radio-err-r2-128-ogg='mplayer -playlist http://icecast.err.ee/raadio2.ogg.m3u'
alias radio-err-r2-64-mp3='mplayer -playlist http://icecast.err.ee/raadio2madal.mp3.m3u'
alias radio-err-r2-64-ogg='mplayer -playlist http://icecast.err.ee/raadio2madal.ogg.m3u'
# x-terminal-emulator -T "Raadio 2" -e "mplayer -playlist http://icecast.err.ee/raadio2.mp3.m3u"
#
# Radio 4 - http://r4.err.ee/
alias radio-err-r4-128-mp3='mplayer -playlist http://icecast.err.ee/raadio4.mp3.m3u'
alias radio-err-r4-128-ogg='mplayer -playlist http://icecast.err.ee/raadio4.ogg.m3u'
alias radio-err-r4-64-mp3='mplayer -playlist http://icecast.err.ee/raadio4madal.mp3.m3u'
alias radio-err-r4-64-ogg='mplayer -playlist http://icecast.err.ee/raadio4madal.ogg.m3u'
#
# Radio Tallinn - http://raadiotallinn.err.ee/
alias radio-err-rt-128-mp3='mplayer -playlist http://icecast.err.ee/raadiotallinn.mp3.m3u'
alias radio-err-rt-128-ogg='mplayer -playlist http://icecast.err.ee/raadiotallinn.ogg.m3u'
alias radio-err-rt-64-mp3='mplayer -playlist http://icecast.err.ee/raadiotallinnmadal.mp3.m3u'
alias radio-err-rt-64-ogg='mplayer -playlist http://icecast.err.ee/raadiotallinnmadal.ogg.m3u'
#
# Vikerradio - http://vikerraadio.err.ee/
alias radio-err-vr-128-mp3='mplayer -playlist http://icecast.err.ee/vikerraadio.mp3.m3u'
alias radio-err-vr-128-ogg='mplayer -playlist http://icecast.err.ee/vikerraadio.ogg.m3u'
alias radio-err-vr-64-mp3='mplayer -playlist http://icecast.err.ee/vikerraadiomadal.mp3.m3u'
alias radio-err-vr-64-ogg='mplayer -playlist http://icecast.err.ee/vikerraadiomadal.ogg.m3u'
# x-terminal-emulator -T "Vikerraadio" -e "mplayer -playlist http://icecast.err.ee/vikerraadio.ogg.m3u"
#
##########################################################################
# Trio LSL - http://www.trio.ee/ ja ka http://striiming.trio.ee/
#
# http://www.myhits.ee
alias radio-trio-circle-k-256='mplayer -playlist http://striiming.trio.ee/circle-k.ogg.m3u'
alias radio-trio-circle-k-320='mplayer -playlist http://striiming.trio.ee/circle-k.mp3.m3u'
#
# http://www.dfm.ee
alias radio-trio-dfm64='mplayer -playlist http://striiming.trio.ee/dfm64.mp3.m3u'
alias radio-trio-dfm128='mplayer -playlist http://striiming.trio.ee/dfm.mp3.m3u'
#
# http://www.elmar.ee
alias radio-trio-elmar64='mplayer -playlist http://striiming.trio.ee/elmar_low.mp3.m3u'
# x-terminal-emulator -T "Elmar" -e "mplayer -playlist http://striiming.trio.ee/elmar64.mp3.m3u"
alias radio-trio-elmar128-mp3='mplayer -playlist http://striiming.trio.ee/elmar.mp3.m3u'
alias radio-trio-elmar128-ogg='mplayer -playlist http://striiming.trio.ee/elmar.ogg.m3u'
alias radio-trio-elmar256-mp3='mplayer -playlist http://striiming.trio.ee/elmar_high.mp3.m3u'
#
# http://www.kuku.ee
alias radio-trio-kuku64='mplayer -playlist http://striiming.trio.ee/kuku64.mp3.m3u'
alias radio-trio-kuku-low='mplayer -playlist http://striiming.trio.ee/kuku_low.mp3.m3u'
# x-terminal-emulator -T "Kuku" -e "mplayer -playlist http://striiming.trio.ee/kuku64.mp3.m3u"
alias radio-trio-kuku128-mp3='mplayer -playlist http://striiming.trio.ee/kuku.mp3.m3u'
alias radio-trio-kuku128-ogg='mplayer -playlist http://striiming.trio.ee/kuku.ogg.m3u'
alias radio-trio-kuku256-mp3='mplayer -playlist http://striiming.trio.ee/kuku_high.mp3.m3u'
#
# http://www.myhits.ee
alias radio-trio-myhits-256='mplayer -playlist http://striiming.trio.ee/myhits.mp3.m3u'
alias radio-trio-myhits-256='mplayer -playlist http://striiming.trio.ee/myhits.ogg.m3u'
alias radio-trio-myhits-320='mplayer -playlist http://striiming.trio.ee/myhits_high.mp3.m3u'
alias radio-trio-myhits-low='mplayer -playlist http://striiming.trio.ee/myhits_low.mp3.m3u'
#
# http://www.narodnoeradio.ee
alias radio-trio-narodnoe='mplayer -playlist http://striiming.trio.ee/narodnoe.mp3.m3u' 
###########################################################################
#
# Babahh Media
# http://retro.babahhcdn.com/
# http://skyplus.babahhcdn.com/
# http://phr.babahhcdn.com/
#
# http://www.retrofm.ee/
alias radio-babahh-retrofm-320='mplayer http://retro.babahhcdn.com/RETRO'
#http://retro.babahhcdn.com/retro1.mp3.m3u
#http://retro.babahhcdn.com/retro2.mp3.m3u
#
alias radio-babahh-nrj-320='mplayer -playlist http://retro.babahhcdn.com/NRJ.m3u'
alias radio-babahh-nrj-dnb-128='mplayer -playlist http://retro.babahhcdn.com/NRJdnb.m3u'
alias radio-babahh-nrj-house-128='mplayer -playlist http://retro.babahhcdn.com/NRJhouse.m3u'
alias radio-babahh-rr-stream-tx-256='mplayer -playlist http://retro.babahhcdn.com/RR.m3u'
alias radio-babahh-sky='mplayer -playlist http://retro.babahhcdn.com/SKY.m3u'
#
#http://www.skyplus.fm/
alias radio-babahh-skyplus-128='mplayer -playlist http://retro.babahhcdn.com/SKYPLUS.m3u'
alias radio-babahh-skydance-128='mplayer -playlist http://retro.babahhcdn.com/SKYdance.m3u'
alias radio-babahh-skygold-128='mplayer -playlist http://retro.babahhcdn.com/SKYgold.m3u'
alias radio-babahh-skyplus-dance-128='mplayer -playlist http://retro.babahhcdn.com/skyplus_dance.mp3.m3u'
alias radio-babahh-skyplus-eesti-128='mplayer -playlist http://retro.babahhcdn.com/skyplus_eesti.mp3.m3u'
alias radio-babahh-skyplus-gold-128='mplayer -playlist http://retro.babahhcdn.com/skyplus_gold.mp3.m3u'
alias radio-babahh-skyplus-top40-128='mplayer -playlist http://retro.babahhcdn.com/skyplus_top40.mp3.m3u'
#
# Star FM - http://starfm.tv3.ee/
alias radio-starfm='mplayer -playlist http://stream.power.ee/StarFM.m3u'
#alias babahh-starfm1='mplayer -playlist http://phr.babahhcdn.com/starfm.m3u'
#lias babahh-starfm2='mplayer -playlist http://phr.babahhcdn.com/starfm-app.m3u'
#alias babahh-starfm3='mplayer -playlist http://phr.babahhcdn.com/starxmas.m3u'
#
###########################################################################
# PowerHit Radio - http://power.tv3.ee/
alias radio-babahh-powerhit='mplayer http://phr.babahhcdn.com:9000/phr'
alias radio-babahh-powerhit-partyzone='mplayer  http://mtg-radio.babahhcdn.com/ppztest'
alias radio-babahh-powerhit-street='mplayer  http://wr22-icecast.mtg-r.net/wr22_mp3'
alias radio-babahh-powerhit-powerclub='mplayer  http://wr21-icecast.mtg-r.net/wr21_mp3'
###########################################################################
# Christian radios in Estonia
alias radio-r7='mplayer mms://raadio7.ee/r7' # http://www.raadio7.ee/
# x-terminal-emulator -T "Raadio 7" -e "mplayer mms://raadio7.ee/r7"
#
# Tartu Pereraadio http://www.pereraadio.ee/
alias radio-pereraadio='mplayer -playlist http://bee.pereraadio.ee:8000/listen.pls' # 128 kbps
# x-terminal-emulator -T "Tartu Pereraadio" -e "mplayer -playlist http://bee.pereraadio.ee:8000/listen.pls"
#
alias radio-kp1='mplayer http://raadio.tt.ee:8002/listen.pls' # Kuressaare Pereraadio http://www.pereraadio.com/
# x-terminal-emulator -T "Kuressaare Pereraadio" -e "mplayer http://raadio.tt.ee:8002/listen.pls"
alias radio-kp2='mplayer http://213.35.156.111/kurpre' # Kuressaare Pereraadio http://www.pereraadio.com/
###########################################################################
# Ruut FM - http://www.ruutfm.ee/
alias radio-ruutfm='mplayer -playlist http://www.ruutfm.ee/player/Ruut.pls'
###########################################################################
###########################################################################
# Raadio TRE - http://raadio.tre.ee/
alias radio-tre='mplayer -playlist http://sc1.treraadio.ee:8002/listen.pls'
###########################################################################
# Tartu Noorteraadio - http://www.noorteraadio.ee/
alias radio-nt1='mplayer -playlist http://listen.nofm.ee:9000/stream02.m3u' # 192 kbps
alias radio-nt2='mplayer -playlist http://listen.nofm.ee:9000/stream00.m3u' # 128 kbps
# x-terminal-emulator -T "Tartu Noorteraadio" -e "mplayer http://tartunoored.ee:8010/stream"
###########################################################################
# Raadio Mania - http://www.mania.ee/
alias radio-mania='mplayer -playlist http://icecast.linxtelecom.com:8000/mania.mp3.m3u'
# x-terminal-emulator -T "Raadio Mania" -e "mplayer -playlist http://icecast.linxtelecom.com:8000/mania.mp3.m3u"
###########################################################################
# Raadio 24x7 - http://www.24x7.ee/
alias radio-24x7='mplayer mms://213.35.156.111/24x7'
# x-terminal-emulator -T "Raadio 24x7" -e "mplayer mms://213.35.156.111/24x7"
###########################################################################
# Radio Kadi - http://www.kadi.ee/ (levitaja: http://www.eqcomputer.com)
alias radio-kadi='mplayer http://213.35.156.113/kadi'
# x-terminal-emulator -T "Raadio Kadi" -e "mplayer http://213.35.156.115/kadi"
###########################################################################
# Cafe Radio - http://kohviradio.com/
alias radio-kohviraadio='mplayer -playlist http://kohviradio.com:8080/kohvi.m3u'
###########################################################################
# Kuma radio - http://www.kuma.fm/ (pealeht: http://www.kuma.ee/)
alias radio-kuma1='mplayer http://213.35.156.111/kuma'
alias radio-kuma2='mplayer http://213.35.156.113/kuma'
alias radio-kuma3='mplayer http://213.35.156.115/kuma'
# x-terminal-emulator -T "Kuma raadio" -e "mplayer http://213.35.156.115/kuma"
###########################################################################
# Pärnu Radio - http://www.pfm.ee/
alias radio-parnu='mplayer http://raadio.pfm.ee:8000/pfm.ogg'
# x-terminal-emulator -T "Pärnu Raadio" -e "mplayer http://raadio.pfm.ee:8000/pfm.ogg"
###########################################################################
# Vanker FM - http://raadio.vanker.ee/
alias radio-vankerfm64='mplayer -playlist http://raadio.vanker.ee/low.m3u'
alias radio-vankerfm112='mplayer -playlist http://raadio.vanker.ee/medium.m3u'
alias radio-vankerfm128='mplayer -playlist http://raadio.vanker.ee/high.m3u'
###########################################################################
# Nõmme Radio - http://www.nommeraadio.ee/
alias radio-nommeraadio='mplayer -playlist http://radio.zzz.ee/nommeraadio.m3u'
###########################################################################
# Radios outside Estonia
alias radio-voa_latest_news='mplayer http://www.voanews.com/mp3/voa/english/nnow/NNOW_HEADLINES.mp3'
alias radio-t4e_low='mplayer http://listen.to.techno4ever.net/isdn/mp3'
alias radio-t4e_high='mplayer http://listen.to.techno4ever.net/'
alias radio-musicone='mplayer -playlist http://streaming.planetwideradio.com:8050/listen.pls'
alias radio-iwayhigh_dub_electro_chill='mplayer -playlist http://iwayhigh.net:8000/listen.pls'
alias radio-iwayhigh_guidance2='mplayer -playlist http://iwayhigh.net:8002/listen.pls'
alias radio-parazhit='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=345586'
alias radio-reboot-radio='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=155240'
###########################################################################
# Metal
alias radio-metalradio='mplayer -playlist http://cent4.serverhostingcenter.com/tunein.php/dzapped/playlist.pls'
alias radio-classichardrock='mplayer -playlist http://77.74.192.50:8000/listen.pls'
###########################################################################
# ambient
alias radio-ambient-somafm-dronezone='mplayer -playlist http://somafm.com/dronezone.pls' #ambient http://somafm.com/dronezone/
alias radio-ambient-somafm-spacestation='mplayer -playlist http://somafm.com/spacestation.pls' # http://somafm.com/spacestation/
alias radio-ambient-somafm-deepspace='mplayer -playlist http://somafm.com/wma128/deepspaceone.asx' # http://somafm.com/deepspaceone/
alias radio-ambient-somafm-groovesalad='mplayer -playlist http://somafm.com/wma128/groovesalad.asx' # http://somafm.com/groovesalad/
alias radio-ambient-somafm-missioncontrol='mplayer -playlist http://somafm.com/wma128/missioncontrol.asx' # http://somafm.com/missioncontrol/
alias radio-ambient-hbr1='mplayer -playlist http://radio.hbr1.com:19800/ambient.ogg.m3u' # http://www.hbr1.com/ Dream Factory
alias radio-ambient-sleepbot='mplayer -playlist http://www.sleepbot.com/ambience/cgi/listen.cgi/listen.pls' # http://www.sleepbot.com/ambience/broadcast/
alias radio-ambient-skyfm_ambient='mplayer -playlist http://www.di.fm/mp3/ambient.pls' # http://www.di.fm/ambient
#alias majorursa='mplayer -playlist http://login.streamcontrol.eu:2199/tunein/majorursa.pls' # http://majorursa.eu/
alias radio-ambient-bluemars='mplayer -playlist http://streams.echoesofbluemars.org:8000/bluemars.m3u' # http://echoesofbluemars.org/
alias radio-ambient-cryosleep='mplayer -playlist http://streams.echoesofbluemars.org:8000/cryosleep.m3u' # http://echoesofbluemars.org/cryosleep.php
alias radio-ambient-voices-from-within='mplayer -playlist http://streams.echoesofbluemars.org:8000/voicesfromwithin.m3u' # http://echoesofbluemars.org/voicesfromwithin.php
alias radio-ambient-bouldernet='mplayer -playlist http://sc.bouldernet.org:8000/listen.pls' # http://bouldernet.org/
alias radio-ambient-meditationfm='mplayer -playlist http://s-4.us/yogafm/meditationfm.pls' # http://meditationradio.weebly.com/
alias radio-ambient-clearmindradio='mplayer -playlist http://clearmindradio.com:7165/stream.m3u' # http://clearmindradio.com/
alias radio-ambient-intentionradio='mplayer http://yp.shoutcast.com/sbin/tunein-station.m3u?id=30248' # http://intentionradio.com/
alias radio-ambient-gaia='mplayer http://yp.shoutcast.com/sbin/tunein-station.m3u?id=195689' # http://www.1.fm/station/radiogaia
###########################################################################
# Christian outside Estonia
alias radio-christian-metal-hardrock-low='mplayer -playlist http://christianhardrock.net/CHRDN/live/low.pls'
alias radio-christian-metal-hardrock-high='mplayer -playlist http://christianhardrock.net/CHRDN/live/high.pls'
alias radio-christian-metal-rock-low='mplayer -playlist http://www.christianrock.net/CRDN/live/low.pls'
alias radio-christian-metal-rock-high='mplayer -playlist http://www.christianrock.net/CRDN/live/high.pls'
alias radio-christian-metal-classicrock-low='mplayer -playlist http://www.christianclassicrock.net/CCRDN/live/low.pls'
alias radio-christian-metal-classicrock-high='mplayer -playlist http://www.christianclassicrock.net/CCRDN/live/high.pls'
alias radio-christian-metal-sanctus-gladius='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=1624924'
alias radio-christian-metal-full-armor='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=329149'
alias radio-christian-powerpraise-low='mplayer -playlist http://www.christianpowerpraise.net/CPPDN/live/low.pls'
alias radio-christian-powerpraise-high='mplayer -playlist http://www.christianpowerpraise.net/CPPDN/live/high.pls'
alias radio-christian-rock-I-am='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=28991'
#alias christian-blastfm='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=107652'
alias radio-christian-musicforhisglory='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=99190554'
alias radio-christian-life-radio='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=155707'
###########################################################################
# exotic
alias radio-swastik-bhajan-bhakti='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=69157'
alias radio-kripalu-bhakti-radio='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=114038'
###########################################################################
# Estonian National Broadcasting Company (http://www.err.ee/) TC channels:
# ETV - http://etv.err.ee/
# ETV2 - http://www.err.ee/etv2/
#
# In the web: http://otse.err.ee/:
# ETV  - http://otse.err.ee/etv/
# ETV2 - http://otse.err.ee/etv2
alias tv-etv='sh -c "mplayer http://sb.err.ee/live/etv.m3u8"'
alias tv-etv2='sh -c "mplayer http://sb.err.ee/live/etv2.m3u8"'
alias tv-etv+='sh -c "mplayer http://sb.err.ee/live/etvpluss.m3u8"'
#
# Web cam test
#
alias wc1='mplayer tv:// -tv driver=v4l2:device=/dev/video0'
alias wc2='mplayer tv:// -tv driver=v4l2:device=/dev/video1'
alias wc3='mplayer tv:// -tv driver=v4l2:device=/dev/video2'
alias vlcwc1='vlc v4l2:///dev/video0'
alias vlcwc2='vlc v4l2:///dev/video1'
alias vlcwc3='vlc v4l2:///dev/video2'