I hereby claim:
- I am rthill on github.
- I am rthill (https://keybase.io/rthill) on keybase.
- I have a public key whose fingerprint is 5B18 7E04 FAE1 4085 96DF CB04 332B D30D 699F 2136
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.
Most the credit for these changes go to Dave Holland.
| ''' | |
| Copyright (c) 2011, Richard Nienaber | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
| Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
| Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | |
| The name of 'Richard Nienaber' may not be used to endorse or promote products derived from this software without specific prior written permission. |
| Add into your .bashrc on macOS the following alias: | |
| alias workon='source ~/bin/workon.sh' | |
| I believe on Linux the alias should look like: | |
| alias workon='~/bin/workon.sh' |
| Verifying my Blockstack ID is secured with the address 13GDMuB8Trc83fKMi39muKfEWVMU1iKJGJ https://explorer.blockstack.org/address/13GDMuB8Trc83fKMi39muKfEWVMU1iKJGJ |
| templates: | |
| - | |
| admin_password: "guest_os_admin_password" | |
| compute_policy: "" | |
| cpu: 2 | |
| deprecated: false | |
| deprecated_in_cse_version: "" | |
| description: "PhotonOS v2, Docker-ce 18.06.2-3, Kubernetes 1.12.7, weave 2.3.0" | |
| mem: 2048 | |
| name: photon-v2_k8-1.12_weave-2.3.0 |
| #!/bin/bash | |
| # Full path to tc binary | |
| TC=$(which tc) | |
| # | |
| # NETWORK CONFIGURATION | |
| # interface - name of your interface device | |
| # interface_speed - speed in mbit of your $interface | |
| # ip - IP address of your server, change this if you don't want to use |