The Arch User Repository (AUR) is a community-driven collection of package
recipes — not binaries. Each AUR package is a git repository containing, at
minimum, a PKGBUILD (a bash script describing how to fetch, build, and
package software) and a .SRCINFO (machine-readable metadata derived from the
PKGBUILD). Users — or, more often, AUR helpers like paru and yay — clone
these repos, inspect the PKGBUILD, and run makepkg to build and install the
This file contains hidden or 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
| up() { | |
| local cdinto=0 x= traverse= curpath= | |
| [[ $1 ]] || { cd ..; return; } # default to 1 level | |
| [[ $1 = -d ]] && { cdinto=1; shift; } | |
| for x; do | |
| if [[ $x == +([[:digit:]]) ]]; then | |
| (( x == 0 )) && return # noop |
This file contains hidden or 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
| # | |
| # Example usage: | |
| # $ git clone --depth=1 git://git.archlinux.org/svntogit/packages.git | |
| # $ ( cd packages >/dev/null && find-https ) >unused-https.txt | |
| # | |
| has_https_available() { | |
| local https_url url_eff | |
| https_url=https${1#http} |
This file contains hidden or 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 python | |
| ''' | |
| A journal reader which offers custom message formatting on output. | |
| Example: | |
| ./journalprintf \ | |
| '{__REALTIME_TIMESTAMP} {_HOSTNAME} {_SYSTEMD_UNIT} {_COMM}[{_PID}]: {MESSAGE}' \ | |
| _SYSTEMD_UNIT=dnsmasq.service \ |
I hereby claim:
- I am falconindy on github.
- I am dreisner (https://keybase.io/dreisner) on keybase.
- I have a public key whose fingerprint is 487E ACC0 8557 AD08 2088 DABA 1EB2 638F F56C 0C53
To claim this, I am signing this object:
This file contains hidden or 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 python | |
| import argparse, os, glob, sys, operator, fnmatch | |
| def stderr(*args): | |
| print(*args, file=sys.stderr, end='') | |
| def filter_files(files, filterpat, root=""): | |
| entries = {} |
This file contains hidden or 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 | |
| check_backup() { | |
| [[ -f $1 ]] && echo "$1" | |
| } | |
| awk '/^%BACKUP%$/ { | |
| while (getline) { | |
| if (/^$/) { nextfile } | |
| print $1 |