Skip to content

Instantly share code, notes, and snippets.

View kevinoconnor7's full-sized avatar

Kevin O'Connor kevinoconnor7

View GitHub Profile
@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' \
@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 / gist:4178981
Created November 30, 2012 21:57
Proxy code
/**
@file proxy.cpp
@brief Top level proxy implementation file
*/
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdlib.h>
javascript:void((function(){$(".thing .arrow.down").click()})());
@kevinoconnor7
kevinoconnor7 / usage.html
Last active December 16, 2015 12:08
Basic usage of my Bootstrap Pagedown plugin
<!-- Le script -->
<script type="text/javascript" src="js/jquery.pagedown-bootstrap.combined.min.js"></script>
<!-- Le CSS -->
<link href="css/jquery.pagedown-bootstrap.css" rel="stylesheet">
<!-- Le lift -->
<script type="text/javascript">
(function () {
@kevinoconnor7
kevinoconnor7 / advancedUsage.html
Last active December 16, 2015 12:09
Advanced usage of my Bootstrap Pagedown jQuery plugin
<!-- Le script -->
<script type="text/javascript" src="js/jquery.pagedown-bootstrap.combined.min.js"></script>
<!-- Le CSS -->
<link href="css/jquery.pagedown-bootstrap.css" rel="stylesheet">
<!-- Le lift -->
<script type="text/javascript">
$("textarea#pagedownMeDangerously").pagedownBootstrap({
'sanatize': false,
@kevinoconnor7
kevinoconnor7 / bootstrap.css
Created August 14, 2013 19:50
Bootstrap themed request tracker
@import url(http://fonts.googleapis.com/css?family=Titillium+Web:200);
/* ===[ Page ]=== */
body { background: #ccc url(/NoAuth/images/custbg.png) repeat }
/* ===[ Page title ]=== */
div#header h1 {
margin-top: 0px;
font-family: 'Titillium Web', sans-serif;
font-weight: 200;
font-size: 1.8em;
@kevinoconnor7
kevinoconnor7 / scrip.pl
Created August 14, 2013 20:44
Map a user's OU to RT queue
# LDAP address
my $ldap_address = ""
# LDAP base DN path
my $ldap_base_dn = ""
# LDAP user to connect with
my $ldap_user_path = ""
# LDAP user password to connect with
@kevinoconnor7
kevinoconnor7 / strip_json_comments.patch
Created May 30, 2014 15:03
Arcanist - strip json comments patch
From be0511f947e256b8d6b16360369945eefdaf1073 Mon Sep 17 00:00:00 2001
From: Kevin O'Connor <koconnor@panoramaed.com>
Date: Fri, 30 May 2014 11:03:01 -0400
Subject: [PATCH] Strip json comments before json_decode
---
src/lint/engine/ArcanistConfigurationDrivenLintEngine.php | 3 ++-
src/workingcopyidentity/ArcanistWorkingCopyIdentity.php | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)

Keybase proof

I hereby claim:

  • I am kevinoconnor7 on github.
  • I am kevin (https://keybase.io/kevin) on keybase.
  • I have a public key whose fingerprint is B66F 8F8C B281 8C18 91AA C351 4701 2E48 8251 7B3F

To claim this, I am signing this object: