Skip to content

Instantly share code, notes, and snippets.

@haydio
haydio / SetDefaultPaperSize.sh
Created October 30, 2014 00:28
Sets the default paper size for OS X machines at image time
#!/bin/sh
for USER_TEMPLATE in "/System/Library/User Template"/*
do
defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.print.PrintingPrefs DefaultPaperID iso-a4
done
exit 0
@haydio
haydio / gist:647d530638bf8f4fdcdb
Last active April 2, 2017 07:17 — forked from tiernano/gist:4344701
RouterOS IPv6 Firewall Rules
/ipv6 firewall filter
add action=accept chain=input comment="Allow established connections" connection-state=established disabled=no
add action=accept chain=input comment="Allow related connections" connection-state=related disabled=no
add action=accept chain=input comment="Allow ICMP" disabled=no protocol=icmpv6
add action=accept chain=input comment="Allow UDP" disabled=no protocol=udp
add action=drop chain=input comment="" disabled=no
add action=accept chain=forward comment="Allow any to internet" disabled=no out-interface=sit1
add action=accept chain=forward comment="Allow established connections" connection-state=established disabled=no
add action=accept chain=forward comment="Allow related connections" connection-state=related disabled=no
add action=accept chain=forward comment="Allow ICMP" disabled=no protocol=icmpv6