Skip to content

Instantly share code, notes, and snippets.

Kevin O'Connor kevinoconnor7

Block or report user

Report or block kevinoconnor7

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kevinoconnor7
kevinoconnor7 / bootstrap.css
Created Aug 14, 2013
Bootstrap themed request tracker
View bootstrap.css
@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 Aug 14, 2013
Map a user's OU to RT queue
View scrip.pl
# 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
View keybase.md

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:

@kevinoconnor7
kevinoconnor7 / c-ddns.sh
Last active Jun 20, 2017
CloudFlare Dynamic DNS
View c-ddns.sh
#!/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 / advancedUsage.html
Last active Dec 16, 2015
Advanced usage of my Bootstrap Pagedown jQuery plugin
View advancedUsage.html
<!-- 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 / usage.html
Last active Dec 16, 2015
Basic usage of my Bootstrap Pagedown plugin
View usage.html
<!-- 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 () {
View gist:5401655
javascript:void((function(){$(".thing .arrow.down").click()})());
View gist:4178981
/**
@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>
View gist:4177986
#!/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 / strip_json_comments.patch
Created May 30, 2014
Arcanist - strip json comments patch
View 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(-)
You can’t perform that action at this time.