I don't need a reason to write scripts!

This commit is contained in:
Dmytro Meleshko 2020-10-28 20:52:59 +02:00
parent 18ecbd5b33
commit d421d47569
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
if package="$(expac --sync '%r/%a/%n %v - %d' | rofi -dmenu)" && [[ -n "$package" ]]; then
xdg-open "https://www.archlinux.org/packages/${package%% *}/"
fi

10
scripts/random-local-ipv4 Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env python
import random
def randbyte():
return random.randrange(0, 256)
print("127.{}.{}.{}".format(randbyte(), randbyte(), randbyte()))