summaryrefslogtreecommitdiffstats
path: root/root/.bash_aliases
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-08-31 00:57:10 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-08-31 00:57:10 +0200
commit58bd5d67fa829dda4abe012092db02ece9dc2dfd (patch)
tree6b9c7cdf1445e99fde3a0b80119316d33bb450fd /root/.bash_aliases
parentb (diff)
parentc (diff)
downloadn-58bd5d67fa829dda4abe012092db02ece9dc2dfd.tar
n-58bd5d67fa829dda4abe012092db02ece9dc2dfd.tar.gz
n-58bd5d67fa829dda4abe012092db02ece9dc2dfd.tar.bz2
n-58bd5d67fa829dda4abe012092db02ece9dc2dfd.tar.lz
n-58bd5d67fa829dda4abe012092db02ece9dc2dfd.tar.xz
n-58bd5d67fa829dda4abe012092db02ece9dc2dfd.tar.zst
n-58bd5d67fa829dda4abe012092db02ece9dc2dfd.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`