Skip to content

Instantly share code, notes, and snippets.

View ceaser's full-sized avatar

Ceaser Larry ceaser

View GitHub Profile
@ceaser
ceaser / deployment.yaml
Created April 29, 2020 15:09
Kubernetes Pi-Hole
apiVersion: apps/v1
kind: Deployment
metadata:
name: pi-hole
labels:
app: pi-hole
spec:
replicas: 1
selector:
matchLabels:

Keybase proof

I hereby claim:

  • I am ceaser on github.
  • I am ceaser (https://keybase.io/ceaser) on keybase.
  • I have a public key ASBnWr_HrsRKukQkjKuiPemKtjTlxqLMuccDkzm1ZY8L8Qo

To claim this, I am signing this object:

@ceaser
ceaser / .profile
Created May 1, 2014 17:22
Detecting if a proxy is used for the active Network Location on a specific adaptor
if [ "`networksetup -getwebproxy 'USB Ethernet' | awk {'print $2'} | head -n 1 | tr -d ' '`" = "Yes" ]; then
export HTTP_PROXY=`networksetup -getwebproxy 'USB Ethernet' | awk {'print $2'} | awk {'getline l2; getline l3; print "http://"l2":"l3'} | head -n 1`
export HTTPS_PROXY=$HTTP_PROXY
export ALL_PROXY=$HTTP_PROXY
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTP_PROXY
export all_proxy=$HTTP_PROXY
echo "Using $HTTP_PROXY as a Proxy"
else
unset HTTP_PROXY
@ceaser
ceaser / registrations_controller.rb
Created February 2, 2012 23:32
Overriding Controllers with Devise
# Located at app/controllers/people/registrations_controller_spec.rb
class People::RegistrationsController < Devise::RegistrationsController
end