Skip to content

Instantly share code, notes, and snippets.

Keybase proof

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:

@rthill
rthill / Installation.md
Created December 13, 2016 15:25 — forked from albertbori/Installation.md
Automatically disable Wifi when an Ethernet connection (cable) is plugged in on a Mac

Overview

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.

Requirements

  • Mac OSX 10+
  • Administrator privileges
@rthill
rthill / orgchartBuilder.py
Created April 6, 2017 09:09 — forked from rjnienaber/orgchartBuilder.py
Script to build an organizational chart from Active Directory
'''
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.
@rthill
rthill / .bashrc
Last active June 5, 2018 09:00
Python virtualenv wrapper script
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
@rthill
rthill / cse template
Created September 11, 2019 12:43
cse template
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