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
[Unit] | |
Description=Exim Mail Transport Agent | |
After=network.target | |
[Service] | |
EnvironmentFile=-/etc/default/exim4 | |
PIDFile=/run/exim4/exim.pid | |
ExecStartPre=+chmod u-s /usr/sbin/exim4 | |
ExecStartPre=+chmod g+r /etc/exim4/exim4.conf | |
ExecStartPre=+chgrp Debian-exim /etc/exim4/exim4.conf |
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 | |
USERNAME=$1 | |
HOSTNAME=$(hostname --fqdn) | |
qrencode -t ANSI256 -o - $(echo otpauth://totp/$USERNAME@$HOSTNAME?secret=$(oathtool --totp -v $(grep $USERNAME /etc/users.oath | cut -f 4) | grep Base32 | cut -d " " -f 3)) |
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
$ cat bin/dice | |
#!/usr/bin/perl -w | |
use strict; | |
my %words; | |
open WORDLIST, "$ENV{HOME}/.diceware_german.txt" or die "Could not open wordlist: $!"; | |
while(<WORDLIST>) { | |
chomp; | |
next unless /^(\d{5})\s+(.+)$/; | |
$words{$1}=$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
#!/bin/bash | |
# adapted from http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -a | grep "^<none>" | awk '{print $3}') |
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 | |
# Activate in /etc/ssh/sshd_config | |
# AuthorizedKeysCommand /usr/local/sbin/monkeysphere-sshd-keyprovider | |
# AuthorizedKeysCommandUser root | |
export MONKEYSPHERE_CHECK_KEYSERVER=false | |
export MONKEYSPHERE_RAW_AUTHORIZED_KEYS=/dev/null | |
monkeysphere-authentication keys-for-user $@ |
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
if (System.getProperty('grails.env') == 'test') { | |
grails.server.port.http=new Integer(System.getProperty('grails.server.port', System.getProperty('server.port', "7070"))) | |
} |