Skip to content

Instantly share code, notes, and snippets.

@joshuar
joshuar / Three-Node-LustreFS-Cluster-Quickstart.md
Last active July 22, 2020 09:52
Quick three-node Lustre set-up on CentOS 6
@joshuar
joshuar / iptables-connection-sharing.sh
Last active December 27, 2020 16:04
Quick script to enable connection sharing (i.e. nat) on an interface in Linux. Based on http://xmodulo.com/2014/06/internet-connection-sharing-iptables-linux.html
#!/bin/bash
while getopts "i:t:" opt; do
case $opt in
i)
$(ip link show $OPTARG 1> /dev/null 2>&1)
if [[ $? != 0 ]]; then
echo "Argument to -${opt} should be an network device."
exit -1
else