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
[Trigger] | |
Operation = Upgrade | |
Operation = Install | |
Operation = Remove | |
Type = File | |
Target = boot/* | |
[Action] | |
Description = Backing up boot partition | |
When = PreTransaction |
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 | |
case $1 in | |
config) | |
cat <<'EOM' | |
graph_args --base 1000 -l 0 | |
graph_category pacman | |
graph_title Pending updates | |
graph_vlabel updates | |
updates.label updates |
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 | |
URL=https://isonzeinterndronken.nl/leiden/dlf/ | |
cookiejar=$(mktemp) | |
request() { | |
curl -s -c "$cookiejar" -b "$cookiejar" "$@" "$URL" | |
} | |
cleanup() { |
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 argparse | |
import email | |
import io | |
import smtplib | |
import socket | |
import sys | |
import xml.etree.ElementTree as ET | |
import zipfile |
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
%s/"\([^"]\+\)":\([^\s]\+\)/[\1](\2)/g |
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 itertools | |
import matplotlib.pyplot as plt | |
import numpy as np | |
D6 = np.arange(0, 6) + 1 | |
two_dice = np.array([a + b for a, b in itertools.product(D6, D6)]) | |
no_fives = np.array([x for x in two_dice if x != 5]) | |
WINNINGS = np.array([-5, 0, 1.5, 0, -1, 1, 0, 1, 0, -1.5, 5]) |
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/sh | |
exec sudo -u http php -d memory_limit=512M /usr/share/webapps/nextcloud/occ "$@" |
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
import itertools | |
import sys | |
PEOPLE = ['Pieter', 'Maaike', 'Kim', 'Tim', 'Patrieck'] | |
AGES = ['Bever', 'Welp', 'Scout', 'Explorer', 'Rover'] | |
BADGES = ['Das', 'Knopen', 'EHBO', 'Boomhut', 'Vissen'] |
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 | |
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"v([^"]+)".*/\1/' # Pluck JSON value | |
} | |
VERSION=$(get_latest_release "go-gitea/gitea") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.