I really hate most photo gallerys. The self-hosted ones suck, too—mostly.
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 | |
# Pushes a single commit to Gerrit. | |
# Contributors: | |
# Ahmon Dancy | |
# Kevin Layer | |
# Willem Broekema | |
set -ue |
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 python | |
# Pytail | |
# ------ | |
# Dumb python program that lets you tail a file while interactively filtering it | |
import os | |
import re | |
import select | |
import subprocess | |
import sys | |
import time |
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
# Put this in web/Dockerfile | |
# Adapted from https://github.com/wikimedia/mediawiki-docker/blob/master/1.32/Dockerfile | |
FROM php:7.2-apache | |
# System Dependencies. | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
imagemagick \ | |
libicu-dev \ |
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 bash | |
set -euo pipefail | |
help() { | |
cat<<HELP 2>&1 | |
USAGE: | |
ksphelper <party name> <keymaster> <keysfile> | |
ksphelper helps create a gpgparticipants file from a list of keys. |
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
spell() { | |
# /me futilely avoids googling words to find their correct spelling | |
local candidates oldifs word array_pos | |
oldifs="$IFS" | |
IFS=':' | |
# Parse the apsell format and return a list of ":" separated words | |
read -a candidates <<< "$(printf "%s\n" "$1" \ | |
| aspell -a \ | |
| awk -F':' '/^&/ { |
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/awk -f | |
BEGIN { | |
FL_SUM = 0 | |
FL_CUR = 0 | |
FL_TOTAL = 0 | |
} | |
{ | |
getFocalLength($0) |
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 python2 | |
# coding: utf-8 | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
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 | |
#================================================================ | |
# Let's Encrypt renewal script for Apache on Ubuntu/Debian | |
# @author Erika Heidi<[email protected]> | |
# Usage: ./le-renew.sh [base-domain-name] | |
# More info: http://do.co/1mbVihI | |
#================================================================ | |
domain=$1 | |
le_path='/opt/letsencrypt' | |
le_conf='/etc/letsencrypt' |
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
" BangOpen ------------------------------------------------------------ {{{ | |
function! BangOpen(arg) | |
execute 'tabe ' . system(a:arg) | |
endfunction | |
command! -nargs=1 BangOpen :call BangOpen(<f-args>) | |
" }}} |
NewerOlder