Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kairusds on github.
  • I am kairusds (https://keybase.io/kairusds) on keybase.
  • I have a public key whose fingerprint is E221 1C56 FD34 34BF F560 904C 3267 BBEC 7554 51D3

To claim this, I am signing this object:

/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,d=f.toString,h=d.call(Object),p={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},v={type:!0,src:!0,noModule:!0};function y(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in v)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var _=function(e,t){return new _.fn.init(e,t)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g

Keybase proof

I hereby claim:

  • I am kairusds on github.
  • I am kairusds (https://keybase.io/kairusds) on keybase.
  • I have a public key ASDgXOccjIX4h6QoLhqqDWvA74DfEbmsVTclTx8gCUiOnAo

To claim this, I am signing this object:

@kairusds
kairusds / aget
Last active October 19, 2022 19:46
Alias command for downloading files or the best quality of a video's audio into mp3 with yt-dlp
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage: aget <url>"
exit 1
fi
aria2c -j 16 -s 16 -x 16 -k 1M "$1"
#!/bin/sh
URL="https://0x0.st"
if [ $# -eq 0 ]; then
echo "Usage: 0x0.sh FILE\n"
exit 1
fi
FILE=$1
@kairusds
kairusds / termux-setup.sh
Last active November 20, 2022 15:24
termux setup script for personal use
termux-setup-storage && pkg install neofetch htop && mkdir $HOME/.termux/ ;echo "extra-keys = [['ESC','/','-','HOME','UP','END','PGUP'],['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]" >> $HOME/.termux/termux.properties && termux-reload-settings && sleep 1 && logout
@kairusds
kairusds / dt.sh
Last active February 12, 2021 23:42
speed up a music file's audio by 1.5x
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage: dt <path>"
exit 1
fi
out="${1%.*} 1.5x.mp3"
ffmpeg -i "$1" -ab 192k -af atempo=1.5 "$out"
@kairusds
kairusds / fleeter.sh
Last active March 5, 2021 08:04
credits: endrift and MarioMasta64, slightly modified by me
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage: fleeter FILE\n"
exit 1
fi
VIDEO=$1
LEN=$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$VIDEO")
@kairusds
kairusds / eruda.js
Created June 6, 2021 23:01
eruda userscript for use with tampermonkey on mobile browsers / via web browser
// ==UserScript==
// @name eruda
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include http://*
// @include https://*
// @icon https://www.google.com/s2/favicons?domain=greasyfork.org
// @run-at document-body
@kairusds
kairusds / genkey.sh
Last active July 31, 2021 18:03
Generates a private key for use with PocketGit (or JGit Clients)
ssh-keygen -t rsa -m PEM