Skip to content

Instantly share code, notes, and snippets.

Avatar

MDCollins mdcollins05

View GitHub Profile
@maruohon
maruohon / log4j2.xml
Last active Jul 10, 2020
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>
@joemiller
joemiller / netpps.sh
Last active Aug 2, 2021
shell: quick linux scripts for showing network bandwidth or packets-per-second
View netpps.sh
#!/bin/bash
if [ -z "$1" ]; then
echo
echo usage: $0 network-interface
echo
echo e.g. $0 eth0
echo
echo shows packets-per-second