This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGARGS="$*" | |
JTIME="2weeks" | |
# First AUR helper found in this list will be used | |
AURHELPERS="yay paru trizen pacaur" | |
usage() { | |
echo "Usage: $(basename $PROG) [options]" | |
echo "Clean system and user package caches and prune journal." | |
echo "Options:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org> | |
# Contributor: Ionut Biru <ibiru@archlinux.org> | |
# Contributor: Michael Kanis <mkanis_at_gmx_dot_de> | |
# Contributor: Mark Blakeney <mark dot blakeney at bullet dash systems dot net> | |
pkgbase=mutter | |
pkgname=( | |
mutter | |
) | |
pkgver=44.3+r0+g99d83f298 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $# -ne 1 ]]; then | |
echo "usage $0 dir" >&2 | |
exit 1 | |
fi | |
dir="$1" | |
if [[ -e $dir ]]; then | |
echo "Error: $dir already exists" >&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import math | |
from dataclasses import dataclass | |
import fileinput | |
@dataclass | |
class NUMBER: | |
value: int | |
length: int | |
coords: tuple[int, int] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# If you are using Linux NetworkManager then this program toggles your | |
# wifi connection off->ON whenever your wired connection goes ON->off, | |
# and vice-versa. Simply copy this to | |
# /etc/NetworkManager/dispatcher.d/99-wifi and ensure it is executable. | |
# No configuration is required. Get the latest version from | |
# https://gist.github.com/bulletmark/8e051a0a9ffdce689d86988c528e7764 | |
# Author: Mark Blakeney, Jun 2020. | |
from __future__ import annotations | |
import subprocess |
OlderNewer