Skip to content

Instantly share code, notes, and snippets.

@Edger
Edger / log.mac
Last active November 24, 2020 08:07
EverEdit log file syntax
'*******************************************************************************
' EverEdit Syntax File
' Language: log file
' Maintainer: www.everedit.net
' History:
' 2014/03/13 First Version
' 2020/11/23 Sencond Version
'*******************************************************************************
Include( ".\const.mac" )
@Edger
Edger / Windows Terminal Setting.json
Last active September 7, 2020 05:23
Windows Terminal Setting
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"profiles": [
{
// Make changes here to the cmd.exe profile
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "cmd",
@Edger
Edger / macOS_Dual_Network.sh
Created December 24, 2019 01:34
macOS Dual Network
on run {input, parameters}
do shell script "route -n flush" user name "xxx" password "xxx" with administrator privileges
do shell script "route -n flush" user name "xxx" password "xxx" with administrator privileges
do shell script "route add -net 0.0.0.0 -netmask 0.0.0.0 192.168.168.254" user name "xxx" password "xxx" with administrator privileges
do shell script "route add -net 10.0.0.0 -netmask 255.0.0.0 10.186.12.1" user name "xxx" password "xxx" with administrator privileges
return input
end run
@Edger
Edger / reset_routing_table.sh
Created November 23, 2019 02:36 — forked from midwire/reset_routing_table.sh
Reset routing table on OSX
#!/usr/bin/env bash
# Reset routing table on OSX
# display current routing table
echo "********** BEFORE ****************************************"
netstat -r
echo "**********************************************************"
for i in {0..4}; do
sudo route -n flush # several times