Skip to content

Instantly share code, notes, and snippets.

View cirrusUK's full-sized avatar
💭
Dunroamin, Duncarin, Dunlivin.

cirrus cirrusUK

💭
Dunroamin, Duncarin, Dunlivin.
View GitHub Profile
@cirrusUK
cirrusUK / alacritty.toml
Last active January 12, 2024 03:33
alacritty migrate from .yml to .toml format
# $HOME/.config/alacritty/alacritty.toml
# by Rito Ghosh 2023-10-06
# Alacritty now uses TOML formatting for its config files.
# This is a simple example.
# There are the specification here: https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd
# It is not obvious how it translates to TOML. But it is extremely straightforward.
# example: WINDOW, COLORS, etc. are tables, and should be represented as [window], [colors], respectively.
@cirrusUK
cirrusUK / ytdlp.bat
Created December 6, 2023 14:19
Battch file for yt-dlp : handy for the 'open with'' browser extension for kwik video,audio downloads
@ECHO OFF
SET DnBest=--hls-prefer-native --add-metadata -f best
SET DnBestAudVid=--hls-prefer-native --add-metadata
SET DnBestUnmerge=--hls-prefer-native --add-metadata -f "bestvideo,bestaudio"
SET DnBestMP4_MPA=--hls-prefer-native --add-metadata -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
SET DnBestMP4_AAC=--hls-prefer-native --add-metadata -f "bestvideo[ext=mp4]+bestaudio[ext=aac]/best[ext=mp4]/best"
SET DnMP3=--write-all-thumbnails --hls-prefer-native --add-metadata --embed-thumbnail -f bestaudio/best -x --audio-quality 1 --audio-format mp3
SET DnAAC=--write-all-thumbnails --hls-prefer-native --add-metadata --embed-thumbnail -f bestaudio/best -x --audio-quality 1 --audio-format aac
SET DnM4A=--write-all-thumbnails --hls-prefer-native --add-metadata --embed-thumbnail -f bestaudio/best -x --audio-quality 1 --audio-format m4a
@cirrusUK
cirrusUK / d0cum3ntaries.m3u
Created October 2, 2022 23:29
934 documentaries m3u plsylist
#EXTM3U
# Playlist created by SMPlayer 22.7.0 (revision 10091)
#EXTINF:0,https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.PROPER.WEBRip.x264-ION10_www.Downloadha.com_.mp4
https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.PROPER.WEBRip.x264-ION10_www.Downloadha.com_.mp4
#EXTINF:0,https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb_www.Downloadha.com_.mkv
https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb_www.Downloadha.com_.mkv
#EXTINF:0,https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.720p.AMZN.WEBRip.DDP2.0.x264-NTb_www.Downloadha.com_.mkv
https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.720p.AMZN.WEBRip.DDP2.0.x264-NTb_www.Downloadha.com_.mkv
#EXTINF:0,https://doc.downloadha.com/B
@cirrusUK
cirrusUK / flyrics
Last active September 28, 2022 22:40
Fuzzy find lyrics and show on scren with on screen display
#!/bin/sh
# Get song lyrics from your chosen source_dir (mp3 folder) lyrico will save lyric files in defined lyrics_dir
# DEPENDENCY : lyrico https://github.com/abhimanyuPathania/lyrico, pv : https://github.com/icetee/pv, \
# osd_cat : http://www.linuxintro.org/wiki/Osd_cat and fzf : https://github.com/junegunn/fzf
dir=(/home/cirrus/.lyrics)
get_selection() {
for p in $dir; do
ls "$p"
done \
| fzf --ansi --height 80% --color fg:-1,bg:-1,hl:4,fg+:3,bg+:233,hl+:4 --color info:150,prompt:3,spinner:150,pointer:3,marker:174,border:11 --border=sharp --prompt='' --exit-0
@cirrusUK
cirrusUK / yt651.m3u
Last active June 25, 2022 21:58
mostly true crime documentaries from you stare.
#EXTM3U
# Playlist created by SMPlayer 22.2.0 (revision 10060)
#EXTINF:0,https://www.youtube.com/watch?v=-8gIahvAcas
https://www.youtube.com/watch?v=-8gIahvAcas
#EXTINF:0,https://www.youtube.com/watch?v=-D_54aJrhzk
https://www.youtube.com/watch?v=-D_54aJrhzk
#EXTINF:0,https://www.youtube.com/watch?v=-Pk0ti9jn6Q
https://www.youtube.com/watch?v=-Pk0ti9jn6Q
#EXTINF:0,https://www.youtube.com/watch?v=-VhZKipyMKY
https://www.youtube.com/watch?v=-VhZKipyMKY
@cirrusUK
cirrusUK / ftphost.txt
Created June 14, 2022 15:33
urls of various video
http://ftphost.nohum.org/video/10 Days That Changed America/10 Days That Changed America Vol 1_2.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 1_2.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 1_3.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 1_4.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 1_5.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 2_2.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 2_3.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 2_4.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 3_2.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 3_3.mp4
@cirrusUK
cirrusUK / pipe
Last active September 19, 2022 15:55
ascii art
@@@@@@@^^~~~~~~~~~~~~~~~~~~~~^@@@@@@@@@
@@@@@@^ ~^ @ @@ @ @ @ I ~^@@@@@@
@@@@@ ~ ~~ ~I @@@@@
@@@@' ' _,w@i @@@@
@@@@ @@@@@@@@w___,w@@@@@@@@ @ @@@
@@@@ @@@@@@@@@@@@@@@@@@@@@@ I @@@
@@@@ @@@@@@@@@@@@@@@@@@@@*@[ i @@@
@@@@ @@@@@@@@@@@@@@@@@@@@[][ | ]@@@
@@@@ ~_,,_ ~@@@@@@@~ ____~ @ @@@
@@@@ _~ , , `@@@~ _ _`@ ]L J@@@
https://doc.downloadha.com/h/Documentaries/April2018/One.Strange.Rock.S01E02.WEBRip.x264-ION10_www.Downloadha.com_.mp4
https://doc.downloadha.com/h/Documentaries/April2018/One.Strange.Rock.S01E03.WEBRip.x264-ION10_www.Downloadha.com_.mp4
https://doc.downloadha.com/h/Documentaries/April2018/One.Strange.Rock.S01E04.WEBRip.x264-ION10_www.Downloadha.com_.mp4
https://doc.downloadha.com/h/Documentaries/April2018/One.Strange.Rock.S01E05.WEBRip.x264-ION10_www.Downloadha.com_.mp4
https://doc.downloadha.com/h/Documentaries/April2020/Amazing.Dogs.Series.1/Amazing.Dogs.Series.1.1of3.Mans.Best.Friend.1080p.HDTV.x264.AAC.MVGroup_www.Downloadha.com_.mp4
https://doc.downloadha.com/h/Documentaries/April2020/Amazing.Dogs.Series.1/Amazing.Dogs.Series.1.2of3.America.1080p.HDTV.x264.AAC.MVGroup_www.Downloadha.com_.mp4
https://doc.downloadha.com/h/Documentaries/April2020/Amazing.Dogs.Series.1/Amazing.Dogs.Series.1.3of3.Africa.1080p.HDTV.x264.AAC.MVGroup_www.Downloadha.com_.mp4
https://doc.downloadha.com/h/Documentaries/April2020/C
###CHEATSHEETS###
cheat() { nvim -- ~/.cheatsheet/$1-cheatsheet.md; }
# Get cheat sheet of command from cheat.sh. h <cmd>
h(){
curl cheat.sh/${@:-cheat}
# curl cheat.sh/$@
}
path() {
@cirrusUK
cirrusUK / imdb250.m3u
Created January 24, 2022 02:29
m3u playlist with links to IMDB's top 250 movies
#EXTM3U
# Playlist created by SMPlayer 21.10.0 (revision 10000)
#EXTINF:0,http://103.121.39.254/media/disk4/IMDb Top 250 Movies/12 Years a Slave (2013) %5b1080p%5d/12.Years.a.Slave.2013.1080p.BluRay.x264.YIFY.mp4
http://103.121.39.254/media/disk4/IMDb Top 250 Movies/12 Years a Slave (2013) %5b1080p%5d/12.Years.a.Slave.2013.1080p.BluRay.x264.YIFY.mp4
#EXTINF:0,http://103.121.39.254/media/disk4/IMDb Top 250 Movies/12.Angry.Men.1957.1080p.BluRay.H264.AAC %5bDDN%5d/12.Angry.Men.1957.1080p.BluRay.H264.AAC %5bDDN%5d.mp4
http://103.121.39.254/media/disk4/IMDb Top 250 Movies/12.Angry.Men.1957.1080p.BluRay.H264.AAC %5bDDN%5d/12.Angry.Men.1957.1080p.BluRay.H264.AAC %5bDDN%5d.mp4
#EXTINF:0,http://103.121.39.254/media/disk4/IMDb Top 250 Movies/2001.A.Space.Odyssey.1968.1080p.BluRay.H264.AAC-RARBG/2001.A.Space.Odyssey.1968.1080p.BluRay.H264.AAC-RARBG.mp4
http://103.121.39.254/media/disk4/IMDb Top 250 Movies/2001.A.Space.Odyssey.1968.1080p.BluRay.H264.AAC-RARBG/2001.A.Space.Odyssey.1968.1080p.BluRay.H264.AAC-RARBG.mp4
#EX