summaryrefslogtreecommitdiffstats
path: root/root/.bash_aliases
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-08-31 00:52:34 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-08-31 00:52:34 +0200
commite6695821cca90fd30fa0b1d5bb91f4fa7bfdfc29 (patch)
tree46f955d5fb882f9525c4a126014304e6cb866e77 /root/.bash_aliases
parentcgitrc-hiliting (diff)
downloadn-e6695821cca90fd30fa0b1d5bb91f4fa7bfdfc29.tar
n-e6695821cca90fd30fa0b1d5bb91f4fa7bfdfc29.tar.gz
n-e6695821cca90fd30fa0b1d5bb91f4fa7bfdfc29.tar.bz2
n-e6695821cca90fd30fa0b1d5bb91f4fa7bfdfc29.tar.lz
n-e6695821cca90fd30fa0b1d5bb91f4fa7bfdfc29.tar.xz
n-e6695821cca90fd30fa0b1d5bb91f4fa7bfdfc29.tar.zst
n-e6695821cca90fd30fa0b1d5bb91f4fa7bfdfc29.zip
Diffstat (limited to 'root/.bash_aliases')
-rw-r--r--root/.bash_aliases9
1 files changed, 9 insertions, 0 deletions
diff --git a/root/.bash_aliases b/root/.bash_aliases
index 9d1b336..07114ac 100644
--- a/root/.bash_aliases
+++ b/root/.bash_aliases
@@ -1,3 +1,12 @@
+function fancyindex_files () {
+ for i in `curl -k $1 | grep link | grep -v '<td class="size">-</td>' | cut -d\" -f 4 `
+ do
+ echo $2$i
+ done
+}
+function fancyindex_play () {
+ mpv `fancyindex_files $1 $1/`
+}
export CT_ALLOW_BUILD_AS_ROOT_SURE=1
function register () {
n=`curl -s https://www.register.si | grep nonce | head -n 1 | cut -d\" -f8`