Skip to content

Instantly share code, notes, and snippets.

View jwoglom's full-sized avatar

James Woglom jwoglom

View GitHub Profile
@jwoglom
jwoglom / LICENSE.txt
Last active August 29, 2015 14:01 — forked from 140bytes/LICENSE.txt
ArgParser: Get arguments passed through the URL for an external script
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2014 James Woglom <wogloms.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@jwoglom
jwoglom / successnet.user.js
Last active August 29, 2015 14:03
Pearson Successnet Keepalive
// ==UserScript==
// @name Pearson Successnet Keepalive
// @namespace http://www.wogloms.com/
// @version 1
// @description Keeps the Pearson Successnet login connection activated by sending a ping every 60 seconds, instead of opening a popup dialog to extend the session every 10 minutes and expiring every 15.
// @match https://www.pearsonsuccessnet.com/snpapp/iText/BrowseITEXTServlet*
// @copyright WTFPL
// ==/UserScript==
console.log("Loaded scn "+new Date());
setInterval(function() {
@jwoglom
jwoglom / downloader.php
Created July 15, 2014 03:46
Pearson Successnet Downloader
<?php
/*
* Pearson Successnet Downloader *
* Fully mirrors a HTML-based textbook stored on Pearson Successnet for offline viewing.
* Author: James Woglom <j@wogloms.net> (wogloms.com)
*/
require_once 'simple_html_dom.php'; /* http://simplehtmldom.sourceforge.net/ */
// Cookie information in form name=value; name2=value2
$cookies = "name=value; name2=value2";
@jwoglom
jwoglom / keybase.md
Created May 27, 2014 13:25
Keybase.io verification

Keybase proof

I hereby claim:

  • I am jwoglom on github.
  • I am jwoglom (https://keybase.io/jwoglom) on keybase.
  • I have a public key whose fingerprint is E8E2 A832 13C3 8F75 B1EF 4CCC B1AB 08CD 1663 C6F5

To claim this, I am signing this object:

@jwoglom
jwoglom / 140bytes
Last active January 3, 2016 06:09 — forked from 140bytes/LICENSE.txt
g=function(c,x,i,a){i=i||0,a=a||[],e=function(h){a.push(h);g(c,x,++i,a)},i==c.length?x(a):((d=(f=c[i]).src)?$.get(d,e):e(f.innerHTML))}
@jwoglom
jwoglom / dogeval.html
Last active January 4, 2016 10:49
Dogecoin to USD Realtime Converter
<!doctype html>
<html>
<head>
<title>Dogecoin to USD</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.11.0.min.js'></script>
<script type='text/javascript'>
// Sadly Cryptsy and Bitstamp don't support JSONP, so we have to use a proxy.
var proxy = 'http://jsonp.guffa.com/Proxy.ashx?url=';
genValue = function() {
var dogejson = "http://pubapi.cryptsy.com/api.php?method=singlemarketdata&marketid=132";
@jwoglom
jwoglom / graph-security-groups.py
Created October 5, 2016 01:24
Graph EC2 security groups
import json
import argparse
import subprocess
import tempfile
def main():
parser = argparse.ArgumentParser(description='Visualize AWS Security Groups')
parser.add_argument('--file', dest='file', action='store', help='JSON output of `aws ec2 describe-security-groups`')
parser.add_argument('--output', dest='output', action='store', help='SVG output filename')
args = parser.parse_args()
@jwoglom
jwoglom / LICENSE.txt
Last active February 1, 2018 13:49 — forked from 140bytes/LICENSE.txt
Mini XmlHTTP: Ajax GET/POST function using XmlHTTPRequest
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2014 James Woglom <wogloms.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// glocktobazel generates Bazel external repositories from a GLOCKFILE
package main
import (
"bufio"
"os"
"strings"
"fmt"
)
@jwoglom
jwoglom / LICENSE.txt
Last active March 25, 2019 11:40 — forked from 140bytes/LICENSE.txt
Javascript include
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2014 James Woglom <wogloms.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE