Skip to content

Instantly share code, notes, and snippets.

View kevinoconnor7's full-sized avatar

Kevin O'Connor kevinoconnor7

View GitHub Profile
@kevinoconnor7
kevinoconnor7 / gist:4177986
Created November 30, 2012 19:32
MagTek RCS reader
#!/usr/bin/env python
# MagTek MSR100 Mini Swipe Card Reader
# Written By: Jeffrey Ness
#
# Some Thanks need to go out to
# http://www.micahcarrick.com/credit-card-reader-pyusb.html
# for helping me get on the right track
import usb.core
@kevinoconnor7
kevinoconnor7 / c-ddns.sh
Last active November 24, 2020 11:07
CloudFlare Dynamic DNS
#!/bin/sh
WAN_IP=`curl ifconfig.io/ip`
OLD_WAN_IP=`cat /var/CURRENT_WAN_IP.txt`
if [ "$WAN_IP" = "$OLD_WAN_IP" ]
then
echo "IP Unchanged"
else
curl https://www.cloudflare.com/api_json.html \
-d 'a=rec_edit' \
-d 'tkn=8afbe6dea02407989af4dd4c97bb6e25' \