.bash aliases: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Edmund (talk | contribs)
mNo edit summary
mNo edit summary
Line 215: Line 215:
#
#
# Tartu Pereraadio http://www.pereraadio.ee/
# Tartu Pereraadio http://www.pereraadio.ee/
alias radio-pereraadio-tartu='mplayer -playlist http://bee.pereraadio.ee:8000/listen.pls' # 128 kbps
alias radio-pereraadio-tartu='mplayer http://icecast.pereraadio.ee/Tartu'
# x-terminal-emulator -T "Tartu Pereraadio" -e "mplayer -playlist http://bee.pereraadio.ee:8000/listen.pls"
# x-terminal-emulator -T "Tartu Pereraadio" -e "mplayer http://icecast.pereraadio.ee/Tartu"
#
#
alias radio-pereraadio-kuressaare='mplayer -playlist http://mmm.elion.ee/kurpre.asx' # Kuressaare Pereraadio http://www.pereraadio.com/
# Kuressaare Pereraadio http://www.pereraadio.com/
alias radio-pereraadio-kuressaare='mplayer http://icecast.pereraadio.ee/Kuressaare'
#
# Tallinna Pereraadio
alias radio-pereraadio-tallinn='mplayer http://icecast.pereraadio.ee/Tallinn'
#
# Raadio7
alias radio-raadio7='mplayer -playlist https://raadio7.babahhcdn.com/raadio7.m3u'
###########################################################################
###########################################################################
# Ruut FM - http://www.ruutfm.ee/
# Ruut FM - http://www.ruutfm.ee/

Revision as of 22:11, 1 November 2020

# 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'
###########################################################################
# Transfer
# https://transfer.sh
# usage: transfer file.txt - replace "file.txt" with real one
# up to 10 GB, files stored for 14 days
transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi 
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
###########################################################################
alias clean='rm ~/.local/share/recently-used.xbel 2>/dev/null' #clean recently used files list
alias neti='ping neti.ee -c3'
#
# 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
###########################################################################
# weather https://askubuntu.com/questions/390329/weather-from-terminal
alias weather-tallinn='curl wttr.in/tallinn'
alias weather2-tallinn='curl v2.wttr.in/tallinn'
###########################################################################
# Logging with SSH keyfile example with checking key both in text and visual mode. Replace with appropriate data
#
#alias sshalias='ssh-keyscan -t ecdsa address.ee | ssh-keygen -lv -f - && ssh -X -i ~/.ssh/keyfile -o VisualHostKey=yes user@address.ee'
#
###########################################################################
# Power management
alias power-lock-suspend='sudo physlock -du $USER; 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://icecast.mmm.elion.ee:8080/
# 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/
#
# MPlayer and codecs installation
# https://help.ubuntu.com/community/MPlayer - install mediaplayer
# https://help.ubuntu.com/community/RestrictedFormats - install codecs
# sudo apt update && sudo apt install mplayer mplayer-fonts k|x|l|ubuntu-restricted-extras -y && sudo apt clean #choose one of the restricted extras package according used ubuntu flavour
#
##########################################################################
# 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://skymedia.babahhcdn.com/
# http://skyplus.babahhcdn.com/
#
# http://retro.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://skyplus.babahhcdn.com/SKYPLUS.m3u'
alias radio-babahh-skydance-128='mplayer -playlist http://skyplus.babahhcdn.com/SKYdance.m3u'
alias radio-babahh-skygold-128='mplayer -playlist http://skyplus.babahhcdn.com/SKYgold.m3u'
alias radio-babahh-skyplus-dance-128='mplayer -playlist http://skyplus.babahhcdn.com/skyplus_dance.mp3.m3u'
alias radio-babahh-skyplus-eesti-128='mplayer -playlist http://skyplus.babahhcdn.com/skyplus_eesti.mp3.m3u'
alias radio-babahh-skyplus-gold-128='mplayer -playlist http://skyplus.babahhcdn.com/skyplus_gold.mp3.m3u'
alias radio-babahh-skyplus-top40-128='mplayer -playlist http://skyplus.babahhcdn.com/skyplus_top40.mp3.m3u'
#
# Star FM - http://starfm.tv3.ee/
alias radio-starfm='mplayer -playlist http://phr.babahhcdn.com/starfm'
alias radio-starfm80='mplayer -playlist http://phr.babahhcdn.com/star80'
alias radio-starfm90='mplayer -playlist http://phr.babahhcdn.com/star90'
#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-raadio7='mplayer http://icecast.mmm.elion.ee:8080/Raadio7' # http://www.raadio7.ee/
#
# Tartu Pereraadio http://www.pereraadio.ee/
alias radio-pereraadio-tartu='mplayer http://icecast.pereraadio.ee/Tartu'
# x-terminal-emulator -T "Tartu Pereraadio" -e "mplayer http://icecast.pereraadio.ee/Tartu"
#
# Kuressaare Pereraadio http://www.pereraadio.com/
alias radio-pereraadio-kuressaare='mplayer http://icecast.pereraadio.ee/Kuressaare'
#
# Tallinna Pereraadio
alias radio-pereraadio-tallinn='mplayer http://icecast.pereraadio.ee/Tallinn'
#
# Raadio7
alias radio-raadio7='mplayer -playlist https://raadio7.babahhcdn.com/raadio7.m3u'
###########################################################################
# Ruut FM - http://www.ruutfm.ee/
alias radio-ruutfm='mplayer -playlist http://web.mmm.elion.ee/ruutfm.asx'
###########################################################################
# Marta FM - http://www.martafm.ee/
alias radio-martafm='mplayer http://icecast.mmm.elion.ee:8080/MartaFM'
###########################################################################
# Raadio TRE - http://www.treraadio.ee/
alias radio-tre='mplayer -playlist http://sc1.treraadio.ee:8002/listen.pls'
alias radio-tre-parnu='mplayer http://icecast.mmm.elion.ee:8080/paikeseraadio'
alias radio-tre-paide='mplayer -playlist http://kuma.fm/fileadmin/user_upload/rait/skin/kesk-eestiTRE.m3u'
###########################################################################
# 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"
###########################################################################
# Radio Kadi - http://www.kadi.ee/ (levitaja: http://www.eqcomputer.com)
alias radio-kadi='mplayer http://icecast.mmm.elion.ee:8080/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/kohviradio.m3u'
###########################################################################
# 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"
###########################################################################
# Nõmme Radio - http://www.nommeraadio.ee/
alias radio-nommeraadio='mplayer http://149.210.138.12:8000/nommeraadio'
###########################################################################
# Radios outside Estonia
alias radio-t4e_main='mplayer http://out03.t4e.dj:80/main_high.mp3'
alias radio-t4e_hard='mplayer http://out03.t4e.dj:80/hard_high.mp3'
alias radio-t4e_club='mplayer http://out03.t4e.dj:80/club_high.mp3'
alias radio-t4e_lounge='mplayer http://out03.t4e.dj:80/lounge_high.mp3'
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'
###########################################################################
# Metal
alias radio-metalradio='mplayer -playlist http://cent4.serverhostingcenter.com:2199/tunein/dzapped-stream.pls' #http://metalradio.com/
###########################################################################
# 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-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
###########################################################################
# 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
# mpv installation https://mpv.io/installation/
alias tv-etv='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etv.m3u8; done"'
alias tv-etv2='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etv2.m3u8; done"'
alias tv-etv+='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etvpluss.m3u8; done"'
alias tv-sulge='sh -c "killall -9 sh mpv"'
#
# 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'