/
aliases
126 lines (110 loc) · 5.85 KB
/
aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
alias uscissucks='source ~/bin/SECRETS; python3 ~/bin/uscis_sucks.py --mtype all'
alias uscissucksrandom='source ~/bin/SECRETS; python3 ~/bin/uscis_sucks.py --mtype random'
alias ahmet="asciiart --width 50 ~/Pictures/ahmet.jpg"
alias dorina="asciiart --width 50 --color ~/Pictures/dorina.jpg"
alias android-sha1='keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android'
alias tmux-s1='tmux new-session "tmux source-file ~/session1"'
# sudo npm install --global cadate
alias today='cadate --full --calendar islamic; cadate --full --calendar gregory'
alias whathappenedtoday='calendar -A 0'
alias wtf=wtfutil
alias uscisposts='reddio print -s new -l 15 r/USCIS'
alias myshell="ps -p $$"
alias fd=fdfind
alias open=xdg-open
alias sensible-browser='brave'
alias window-info=xwininfo
# adding flags
alias df='df -h' # human-readable sizes
alias free='free -m' # show sizes in MB
# get error messages from journalctl
alias jctl="journalctl -p 3 -xb"
alias cron-log="grep CRON /var/log/syslog"
# java
alias updjava='sudo update-alternatives --config java'
alias java8='source /home/ahmet/bin/java8.sh'
alias java17='source /home/ahmet/bin/java17.sh'
# Emulate mac pbcopy/pbpaste
# https://garywoodfine.com/use-pbcopy-on-ubuntu/
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
# Play audio files in current dir by type
alias playwav='rhythmbox *.wav'
alias playogg='rhythmbox *.ogg'
alias playmp3='rhythmbox *.mp3'
# cli sound recorder/player
alias cli_arecord="arecord -f cd -t wav your_record_${RANDOM}.wav"
alias cli_aplay="aplay your_record_*.wav"
alias ffmpeg_record_screen='ffmpeg -f gdigrab -framerate 30 -i desktop -c:v libx264 output_file.mp4 -f dshow -i audio="Stereo Mix (Realtek Audio)" output_file.mp4'
alias ffmpeg_record_screen_no_sound="ffmpeg -f gdigrab -framerate 30 -i desktop -c:v libx264 -qp 0 output.mp4"
alias hint_ffmpeg_boost_volume='ffmpeg -i video.mp3 -filter:a “volume=2” output_file.mp3'
alias vlc-record-trt2="timeout 12s cvlc https://tv-trt2.medya.trt.com.tr/master_720.m3u8 --sout=file/ts:~/vlc-recording/trt2-$(date +\"%Y%m%d%H%M\").mpg"
# Play video files in current dir by type
alias playavi='vlc *.avi'
alias playmov='vlc *.mov'
alias playmp4='vlc *.mp4'
# youtube-dl
# https://itsfoss.com/download-youtube-linux/
alias yta-aac="youtube-dl --extract-audio --audio-format aac "
alias yta-best="youtube-dl --extract-audio --audio-format best "
alias yta-flac="youtube-dl --extract-audio --audio-format flac "
alias yta-m4a="youtube-dl --extract-audio --audio-format m4a "
alias yta-mp3="youtube-dl --extract-audio --audio-format mp3 "
alias yta-opus="youtube-dl --extract-audio --audio-format opus "
alias yta-vorbis="youtube-dl --extract-audio --audio-format vorbis "
alias yta-wav="youtube-dl --extract-audio --audio-format wav "
alias ytv-best="youtube-dl -f bestvideo+bestaudio "
# TV
alias trt2='vlc https://tv-trt2.medya.trt.com.tr/master_720.m3u8'
# alias trt2='mpv https://izmir.tvizlehd.com/trt2.m3u8\?tkn\=cA40L81K4OtmyIyUmxdM1A\&tms\=1646953218\&hst\=www.canlitv.me'
# https://github.com/iptv-org/iptv/blob/master/channels/tr.m3u
alias aksutv='vlc https://waw2.artiyerelmedya.net/aksutv/bant1/playlist.m3u8'
# Radio
alias trtfm='mpv https://radio-trtfm.live.trt.com.tr/master.m3u8'
alias trtradyo1='mpv https://radio-trtradyo1.live.trt.com.tr/master_128.m3u8'
alias trtradyo3=' mpv https://radio-trtradyo3.live.trt.com.tr/master_128.m3u8'
alias trtradyocukurova='mpv https://radio-trtcukurova.live.trt.com.tr/master_128.m3u8'
# https://radyodelisi.blogspot.com/2019/01/turk-radyolari-2019-guncel-ip-adresleri.html
alias radyoeksen='mpv https://ssldyg.radyotvonline.com/pozitif/smil:eksen.smil/playlist.m3u8'
alias radyotrafik='mpv https://ssl4.radyotvonline.com/radyohome/radyotrafikhome.stream_aac/playlist.m3u8'
# https://www.avforums.com/threads/bbc-internet-radio-to-end-on-22-march-for-denon-users.2349137/
# https://gist.githubusercontent.com/bpsib/67089b959e4fa898af69fea59ad74bc3/raw/8387865b9b00e9aa0d299e2dc76c8ba4324cccf7/BBC-Radio-mp3.m3u
alias radiobbc1='mpv http://stream.live.vc.bbcmedia.co.uk/bbc_radio_one'
alias radiobbc2='mpv http://stream.live.vc.bbcmedia.co.uk/bbc_radio_two'
alias radiobbc3='mpv http://stream.live.vc.bbcmedia.co.uk/bbc_radio_three'
alias radiobbc6='mpv http://stream.live.vc.bbcmedia.co.uk/bbc_6music'
alias radiobbc1x='mpv http://stream.live.vc.bbcmedia.co.uk/bbc_1xtra'
alias radyodinle='sensible-browser https://www.onlineradyodinle.net/'
alias tvizle='sensible-browser https://www.canlitv.mobi/'
# cheatsheets
# man <cmd>
# <cmd> --help
# tldr <cmd>
# bro <cmd>
# bro thanks 2 ## gives upvote for the 2nd sample in the last bro command
# linux.die.net
alias myman='my_man'
# quickref.me
alias remindme='remind_me'
alias quickref='remind_me'
alias cheat-linux='sensible-browser https://www.golinuxcloud.com/linux-commands-cheat-sheet/ & '
alias cheat-react='sensible-browser https://github.com/typescript-cheatsheets/react & '
alias cheat-react-native='sensible-browser https://github.com/typescript-cheatsheets/react-native & '
alias turkce='open ~/github/ubuntu/turkce-klavye.png'
alias ubuntu-help='make -f ~/github/ubuntu/Makefile'
# date utils
alias week='date +%V'
alias dateutc="date -u +'%Y-%m-%dT%H:%M:%SZ'"
# Use tzselect for time zones.
alias dateist="TZ=Europe/Istanbul date"
alias rfedays='python3 -c "from datetime import date as d; print (d.today() - d(2021, 11, 24))"'
# suffix
# alias -s {pdf,PDF}='background mupdf'
# alias -s {jpg,JPG,png,PNG}='background gpicview'
# alias -s {ods,ODS,odt,ODT,odp,ODP,doc,DOC,docx,DOCX,xls,XLS,xlsx,XLSX,xlsm,XLSM,ppt,PPT,pptx,PPTX,csv,CSV}='background libreoffice'
# alias -s {html,HTML}='background chromium'
# alias -s {mp4,MP4,mov,MOV,mkv,MKV}='background vlc'
# alias -s {zip,ZIP,war,WAR}="unzip -l"
# alias -s {jar,JAR}="java -jar"
# alias -s gz="tar -tf"
# alias -s {tgz,TGZ}="tar -tf"