diff --git a/lib/scrabash.sh b/lib/scrabash.sh index df990cc..7807d5a 100755 --- a/lib/scrabash.sh +++ b/lib/scrabash.sh @@ -56,6 +56,15 @@ get_details() { fi } +vpn() { + [[ ! $(which nordvpn) ]] && echo "Installaling NordVPN client... && ./install.sh nordvpn" + vpn_citie=$(shuf -n1 .vpn/countries) + echo "Warning: trying to connect to random cities in the world via NordVPN. If you are connected to this machine via SSH, you will lost the connection..." + echo "VPN connection in 5 seconds, press CTRL+C to cancel..." + sleep 5 + nordvpn c $vpn_citie +} + $1 [[ $err == 1 ]] && exit 1 || exit 0 diff --git a/tata.py b/tata.py deleted file mode 100755 index e22ad8a..0000000 --- a/tata.py +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/python3 - -import os - -tata = "187364" - -os.popen(f'cd data/tmp/torrents/ && mv caca.torrent {tata}.torrent') \ No newline at end of file diff --git a/tata.sh b/tata.sh new file mode 100755 index 0000000..07003c8 --- /dev/null +++ b/tata.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + readWords() { + declare -i int="$1" + + (( int == 0 )) && { + printf "%s\n" "$int is 0, cant find 0 words" + return 1 + } + + while read getWords;do + if [[ ${#getWords} -eq $int ]];then + printf "%s\n" "$getWords" + fi + done < /usr/share/dict/words +} + +readWords 20