diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-07-12 00:14:39 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-07-12 00:14:39 +0200 |
commit | 6410e7ecf6787d96291b5a0d32cfde384e02fae5 (patch) | |
tree | 399fbeae6b2ef3922d7f0fae28837dc3733083c2 /root/.bash_aliases | |
parent | dejanski c (prejšnji je bil pravzaprav b) (diff) | |
parent | merge (diff) | |
download | n-6410e7ecf6787d96291b5a0d32cfde384e02fae5.tar n-6410e7ecf6787d96291b5a0d32cfde384e02fae5.tar.gz n-6410e7ecf6787d96291b5a0d32cfde384e02fae5.tar.bz2 n-6410e7ecf6787d96291b5a0d32cfde384e02fae5.tar.lz n-6410e7ecf6787d96291b5a0d32cfde384e02fae5.tar.xz n-6410e7ecf6787d96291b5a0d32cfde384e02fae5.tar.zst n-6410e7ecf6787d96291b5a0d32cfde384e02fae5.zip |
Diffstat (limited to 'root/.bash_aliases')
-rw-r--r-- | root/.bash_aliases | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/root/.bash_aliases b/root/.bash_aliases index 5828e86..abff120 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -1,7 +1,7 @@ export CT_ALLOW_BUILD_AS_ROOT_SURE=1 function register () { n=`curl https://www.register.si | grep nonce | head -n 1 | cut -d\" -f8` - curl https://www.register.si/wp-admin/admin-ajax.php -X POST --data-raw "_ajax_nonce=$n&action=get_whois_data&domain=$1" 2> /dev/null | grep "<td>" | sed "s/^\s*//g" | cut -d\< -f2 | cut -d\> -f2 | grep "[[:print:]]" + curl 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" 2> /dev/null | grep "<td>" | sed "s/^\s*//g" | cut -d\< -f2 | cut -d\> -f2 | grep "[[:print:]]" } alias r=R alias R="R --quiet" |