Skip to content

Instantly share code, notes, and snippets.

@DylanGore
DylanGore / keybase.md
Created August 6, 2018 09:08
Keybase.io Identity Verification

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@DylanGore
DylanGore / pi-net.py
Created April 6, 2018 15:35
Simple python script designed with RPi headless in mind. It will get the local IP address on boot and send it as a PushBullet notification.
#! /usr/local/bin/python3
import netifaces
from pushbullet import Pushbullet
#Setup PushBullet
pb = Pushbullet("YOUR_PB_API_KEY")
#Gets the local IP of the wlan0 interface
localip = netifaces.ifaddresses('wlan0')[netifaces.AF_INET][0]['addr']