celediel / simple xbps wrapper
0 Lajky
0 Forky
1 Soubory
Naposledy aktivní
a tiny wrapper for xbps utils
1 | #!/bin/sh |
2 | # very simple xbps wrapper |
3 | |
4 | # don't doas or sudo unless it exists |
5 | if [ ! -z "$(type doas)" ]; then |
6 | ROOT_DOER="$(command -v doas)" |
7 | elif [ ! -z "$(type sudo)" ]; then |
8 | ROOT_DOER="$(command -v sudo)" |
9 | fi |
celediel / xbps-check-updates
0 Lajky
0 Forky
1 Soubory
Naposledy aktivní
xbps update checker for waybar
1 | #!/bin/env python |
2 | |
3 | ### Add to ~/.config/waybar/config like so |
4 | # "custom/xbps-updates": { |
5 | # "format": "{} ", |
6 | # "interval": 3600, |
7 | # "return-type": "json", |
8 | # "exec": "xbps-checkup-updates | jq --unbuffered --compact-output", |
9 | # "tooltip": true, |
10 | # } |
celediel / hello_world
0 Lajky
0 Forky
1 Soubory
Naposledy aktivní
1 | # hello world from OpenGist on burning.moe |
2 | # https://github.com/thomiceli/opengist |
3 | |
4 | |
5 | def unmain(I): |
6 | print("".join(chr(int(I[i * 8 : i * 8 + 8], 2)) for i in range(len(I) // 8))) |
7 | |
8 | |
9 | def main(Is): |
10 | unmain("".join(str(I) for I in Is)) |
Novější
Starší