summaryrefslogtreecommitdiffstats
path: root/root/.bash_aliases
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-05-18 22:22:47 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-05-18 22:22:47 +0200
commit309ec72a71b559daadb5d7b58d8ff2b0c1c46cfc (patch)
treeba3e57543b9c1bf111f98b55367db3eccad9e3cd /root/.bash_aliases
parentgentoo (diff)
downloadn-309ec72a71b559daadb5d7b58d8ff2b0c1c46cfc.tar
n-309ec72a71b559daadb5d7b58d8ff2b0c1c46cfc.tar.gz
n-309ec72a71b559daadb5d7b58d8ff2b0c1c46cfc.tar.bz2
n-309ec72a71b559daadb5d7b58d8ff2b0c1c46cfc.tar.lz
n-309ec72a71b559daadb5d7b58d8ff2b0c1c46cfc.tar.xz
n-309ec72a71b559daadb5d7b58d8ff2b0c1c46cfc.tar.zst
n-309ec72a71b559daadb5d7b58d8ff2b0c1c46cfc.zip
Diffstat (limited to 'root/.bash_aliases')
-rw-r--r--root/.bash_aliases25
1 files changed, 25 insertions, 0 deletions
diff --git a/root/.bash_aliases b/root/.bash_aliases
index c95955c..5b74f6a 100644
--- a/root/.bash_aliases
+++ b/root/.bash_aliases
@@ -12,6 +12,22 @@ function register () {
n=`curl -s https://www.register.si | grep nonce | head -n 1 | cut -d\" -f8`
curl -s https://www.register.si/wp-admin/admin-ajax.php -X POST --data-raw "_ajax_nonce=$n&action=get_whois_data&domain=`sed s/.si\$//g <<<$1`.si" | grep "<td>" | sed "s/^\s*//g" | cut -d\< -f2 | cut -d\> -f2 | grep "[[:print:]]"
}
+function eurid () {
+ domain=`sed 's/\.eu$//' <<<$1`
+ json=`curl -s https://eurid.eu/en/das/?domain=$domain`
+ status=`jq --raw-output .status <<<$json`
+ if [ $status = NOT_AVAILABLE ]
+ then
+ return 0
+ fi
+ if [ $status = AVAILABLE ]
+ then
+ return 1
+ fi
+ echo $json
+ return 2
+
+}
alias r=R
alias R="R --quiet"
alias jupyter-server="jupyter-server --allow-root"
@@ -87,3 +103,12 @@ function j () {
alias gl="git log --graph"
export MPLBACKEND=gtk4agg
alias dc="rlwrap dc"
+alias vscodium="vscodium --no-sandbox --user-data-dir .local/state/vscodium"
+function changedetection_diff_html() {
+ for i in `unzip -p $1 url-watches.json | jq --raw-output '.watching[] | (.url + "@" + .uuid)'`
+ do
+ url=`cut -d@ -f1 <<<$i`
+ uuid=`cut -d@ -f2 <<<$i`
+ echo "<li> <a href=http://b.šijanec.eu.:25788/diff/$uuid#text>$url</a>"
+ done
+}