mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
I don't need a reason to write scripts!
This commit is contained in:
parent
18ecbd5b33
commit
d421d47569
2 changed files with 16 additions and 0 deletions
6
scripts/archlinux-packages-menu
Executable file
6
scripts/archlinux-packages-menu
Executable 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
10
scripts/random-local-ipv4
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import random
|
||||
|
||||
|
||||
def randbyte():
|
||||
return random.randrange(0, 256)
|
||||
|
||||
|
||||
print("127.{}.{}.{}".format(randbyte(), randbyte(), randbyte()))
|
Loading…
Reference in a new issue