Skip to content

Instantly share code, notes, and snippets.

@maruohon
maruohon / log4j2.xml
Last active Sep 17, 2021
Minecraft server logging configuration file for Minecraft 1.7.2+
View log4j2.xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<File name="legacy_server_log" fileName="server.log">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%level] %msg%n" />
</File>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%level] %msg%n" />
</Console>
@mikluko
mikluko / zz-backup
Created Apr 6, 2011
duplicity wrapper
View zz-backup
#!/bin/bash
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export PASSPHRASE=
LOCATION=
BACKUP_OPTIONS="
--exclude=**/.cache \
--include=/etc \
View Recursively add .gitignore files to empty dirs
# Recursively add a .gitignore file to all directories
# in the working directory which are empty and don't
# start with a dot. Helpful for tracking empty dirs
# in a git repository.
for i in $(find . -type d -regex ``./[^.].*'' -empty); do touch $i"/.gitignore"; done;