I hereby claim:
- I am awfki on github.
- I am dnoonan (https://keybase.io/dnoonan) on keybase.
- I have a public key whose fingerprint is E63B 1C5E 9FA1 8FBD 234B B57A A4BD B919 5672 736B
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
#HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
x |
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.
from extras.reports import Report | |
from dcim.models import Device | |
from virtualization.models import VirtualMachine | |
from ipam.constants import * | |
from ipam.models import IPAddress, Prefix | |
LOOPBACK_ROLES = [ | |
IPADDRESS_ROLE_LOOPBACK, | |
IPADDRESS_ROLE_ANYCAST, | |
IPADDRESS_ROLE_VIP, |
#!/usr/bin/python | |
""" Ansible Inventory Generated From Netbox | |
Author: Stanley Karunditu <[email protected]> | |
License: MIT | |
Requirements: | |
* use netbox device roles that result in hyphenated role names. E.g |
#!/usr/bin/perl | |
# | |
# Update the path to your lease file below | |
use strict; | |
use File::Copy; | |
#use DateTime; | |
#always parse a copy not the live file | |
#my $leasefile = '/var/lib/dhcpd/dhcpd.leases'; | |
my $leasefile = '/var/lib/dhcp/db/dhcpd.leases'; |
""" | |
Uncipher Cisco type 7 ciphered passwords | |
Usage: python uncipher.py <pass> where <pass> is the text of the type 7 password | |
Example: | |
$ python uncipher.py 094F4F1D1A0403 | |
catcat | |
""" | |
import fileinput | |
import sys |