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 | |
# Since GNOME 47, 4-finger gestures are mapped to the same standard | |
# GNOME gestures as 3-finger gestures. See | |
# https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3275. | |
# | |
# This script patches gnome-shell to disable 3-finger gestures and only | |
# enable 4-finger gestures for standard GNOME, so you can assign | |
# 3-finger gestures to your own custom actions (e.g. using | |
# libinput-gestures). Simply run this as sudo/root then log out and back | |
# in, or restart. You will have to run it again if gnome-shell is |
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
# Maintainer: Jan Alexander Steffens (heftig) <[email protected]> | |
# Contributor: Ionut Biru <[email protected]> | |
# 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
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
#!/usr/bin/python3 | |
import numpy as np | |
DATA = 'data/day04' | |
def total(board): | |
return np.sum(board[board > 0]) | |
def main(): | |
boards = [] |
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: mark.blakeney at bullet-systems dot net | |
pkgname=borg-standalone-arm-bin | |
pkgver=1.2.0 | |
pkgrel=1 | |
pkgdesc="Borg backup - prebuilt standalone ARM binary" | |
url="https://borgbackup.readthedocs.io/en/stable/installation.html#standalone-binary" | |
license=("BSD") | |
arch=("armv8h" "armv7h" "armv6h" "armv5h") | |
replaces=("borg-arm-bin") | |
provides=("borg" "borgbackup") |
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: mark.blakeney at bullet-systems dot net | |
pkgname=borg-standalone-bin | |
pkgver=1.2.2 | |
pkgrel=1 | |
pkgdesc="Borg backup - prebuilt standalone binary" | |
url="https://borgbackup.readthedocs.io/en/stable/installation.html#standalone-binary" | |
license=("BSD") | |
arch=("x86_64" "i686") | |
replaces=("borg-bin") | |
provides=("borg" "borgbackup") |
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 radio on whenever all your wired connections are not connected, | |
# or turns the wifi radio off when any wired connection is connected. | |
# Simply copy this to /etc/NetworkManager/dispatcher.d/99-wifi and | |
# ensure it is executable | |
# (i.e. `sudo chmod 755 /etc/NetworkManager/dispatcher.d/99-wifi`). | |
# No other configuration is required. Get the latest version from | |
# https://gist.github.com/bulletmark/8e051a0a9ffdce689d86988c528e7764 | |
# Author: Mark Blakeney, Jun 2020. |
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/python3 | |
'Program to benchmark set of checksum commands.' | |
# Author: M.Blakeney, Jul 2018. | |
import os, argparse, time, tempfile, subprocess, statistics | |
import collections, platform | |
# Default set of commands to execute | |
CMDS = 'md5sum,sha1sum,sha256sum' |
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 | |
# Run given first argument command across given machines | |
# M.Blakeney, Jul 2018. | |
script=$1 | |
shift | |
hosts=$* | |
bscript=$(basename $script) | |
for h in $hosts; do | |
rsync -a $script $h:/tmp/ |
NewerOlder