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
| const newWindow = new BrowserWindow({ | |
| webPreferences: { | |
| devTools: !IS_PRODUCTION | |
| } | |
| }); |
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
| license: gpl-3.0 | |
| height: 1030 | |
| scrolling: yes |
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
| function setGoogleDNS() { | |
| CHANNEL=`route get google.com | grep interface | sed -n -e 's/^.*interface: //p'` | |
| NETWORK=`networksetup -listnetworkserviceorder | grep $CHANNEL | sed -n -e 's/^.*Port: //p' | sed -n -e 's/,.*//p'` | |
| echo "Setting Google's DNS on channel '$CHANNEL' for network '$NETWORK'." | |
| sudo networksetup -setdnsservers $NETWORK 8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844 | |
| } | |
| function setCloudflareDNS() { | |
| CHANNEL=`route get google.com | grep interface | sed -n -e 's/^.*interface: //p'` | |
| NETWORK=`networksetup -listnetworkserviceorder | grep $CHANNEL | sed -n -e 's/^.*Port: //p' | sed -n -e 's/,.*//p'` |
OlderNewer