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 | |
# systemctl wrapper around upstart's CLI service management tool /sbin/initctl | |
# This script will try to emulate initctl behavior and output within reason. | |
# 1. Save this as initctl.systemd someplace | |
# /opt or /usr/local/bin will do if you don't want to pollute /sbin | |
# 2. Rename /sbin/initctl to /sbin/initctl.upstart (hardcoded line 16) | |
# 3. Symlink this script to /sbin/initctl | |
# 4. Redo upon upstart package upgrade |
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
# This file is a transcription of RFC 1459 section 6 into YAML, so that | |
# programs written in any language may utilize it. It describes the | |
# various numeric replies an IRC server may send, their canonical name, | |
# number and a short description, if available. | |
# | |
# Copywrong (c) 2012 slowpoke (Proxy) < proxypoke at lavabit dot com > | |
# This file is licensed under the terms of the WTFPL v2. | |
# | |
# | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
module segfault; | |
struct Foo {} | |
struct Bar | |
{ | |
string configFile; | |
} | |
Bar settings; |
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 | |
rename_twice() { | |
local IFS | |
local from="$1" | |
local to="$2" | |
[ "$from" = "$to" ] && return | |
mv "$from" "${from}_" | |
mv "${from}_" "$to" |
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 | |
set -e | |
if [[ $UID -gt 0 ]]; then | |
echo "sudo ${0##*/} $@" | |
sudo $0 "$@" | |
exit $? | |
fi |
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
// GenerateMutator | |
/++ | |
FIXME | |
+/ | |
enum GenerateMutator; | |
// GenerateAccessor | |
/++ | |
FIXME |
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
void main() | |
{ | |
string[][string] ignore; | |
deserialise(string.init, ignore); | |
} | |
void deserialise(Range, Things...)(Range range, Things things) | |
{ | |
foreach (rawline; range) | |
{ |