This file contains hidden or 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
rm -rf .git | |
git init | |
git add . | |
git commit -m "Initial commit" |
This file contains hidden or 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
GIT_WORK_TREE=/var/www/www.example.org git checkout -f |
This file contains hidden or 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
:local wanInterfaceName "ether1_wan"; | |
# Remove ARP entries that do not have static DHCP leases or are disabled | |
:foreach arpId in=[/ip arp find] do={ | |
#Don't remove the dynamic entry on the WAN side | |
:if ([/ip arp get $arpId interface] != $wanInterfaceName) do={ | |
This file contains hidden or 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
:global ListName | |
:global Servers | |
:global Done | |
#has $Done been initialized? | |
:if ([:typeof $Done] != "boolean") do={ | |
:set Done true; | |
} | |
#make sure previous runs have finished |