Skip to content

Instantly share code, notes, and snippets.

View benmcnelly's full-sized avatar
🎯
Focusing

Ben McNelly benmcnelly

🎯
Focusing
View GitHub Profile
@DHager
DHager / reddit_bc2_tags.user.js
Created June 18, 2011 08:10
User-tagger for Bad Company 2 on Reddit
// ==UserScript==
// @name BC2 Subreddit user info
// @author Darien Hager
// @namespace http://technofovea.com/
// @version 1.0.0
// @description Provides extra information inside the Bad Company 2 subreddit
// @include http://www.reddit.com/r/badcompany2/*
// @include http://reddit.com/r/badcompany2/*
// ==/UserScript==
{
"auto_complete": false,
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
"characters": "<",
@adamfast
adamfast / requiredreading.txt
Created July 6, 2012 15:20
Preserved for #lawrence history, this was the "required reading" list of totally-non-work-related inside jokes of the World Online crew.
DJ Ango, yo!
http://railsenvy.com/2007/9/10/ruby-on-rails-vs-django-commercial-7
The Whistles
[now broken] http://www.youtube.com/watch?v=ccgXjA2BLEY
http://www.youtube.com/watch?gl=US&hl=en&client=mv-google&v=Nnzw_i4YmKk
Do it live!
http://www.youtube.com/watch?v=2tJjNVVwRCY
REMIX: http://www.youtube.com/watch?v=5j2YDq6FkVE&NR=1
@benmcnelly
benmcnelly / default.py
Created August 8, 2012 00:48 — forked from anonymous/default.py
XBMC rtmpGUI plugin with multiple source lists, channel logos and distinction by language
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib, urllib2, cookielib
import string, os, re, time, datetime, sys
import xbmc, xbmcgui, xbmcplugin, xbmcaddon
#from xml.etree import ElementTree
from elementtree import ElementTree
@benmcnelly
benmcnelly / default.py
Created August 8, 2012 00:50 — forked from HansMayer/default.py
XBMC rtmpGUI plugin with multiple source lists, local source lists (file://), channel logos (<logourl>) and distinction by language
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib, urllib2, cookielib
import string, os, re, time, datetime, sys
import xbmc, xbmcgui, xbmcplugin, xbmcaddon
BASE = [
'http://apps.ohlulz.com/rtmpgui/list.xml',
#'http://localhost/links.xml',
@atk
atk / ie10hack.css
Created November 6, 2012 14:43
IE10 hack
/*
#ie10 will only be red in MSIE 10,
both in high contrast (display setting) and default mode
*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
#ie10 { color: red; }
}
@brandonkelly
brandonkelly / templating.md
Last active February 7, 2024 15:20
Templating in EE vs. Craft
@JesterXL
JesterXL / dart-login-django.dart
Created March 4, 2014 03:08
Sample Dart code to login to Django
void getToken()
{
print("getToken");
getTokenService = new GetTokenService();
getTokenService.getToken().then((ServiceEvent event)
{
login();
});
}
@jefftriplett
jefftriplett / tor.py
Last active August 5, 2024 15:44
Python Requests + Tor (Socks5)
"""
setup:
pip install requests
pip install requests[socks]
super helpful:
- http://packetforger.wordpress.com/2013/08/27/pythons-requests-module-with-socks-support-requesocks/
- http://docs.python-requests.org/en/master/user/advanced/#proxies
"""
@aurman
aurman / enpointExample.groovy
Created March 27, 2014 17:33
SmartThings API Endpoint Example
/**
* App Endpoint API Access Example
*
* Author: SmartThings
*/
preferences {
section("Allow Endpoint to Control These Things...") {
input "switches", "capability.switch", title: "Which Switches?", multiple: true
input "locks", "capability.lock", title: "Which Locks?", multiple: true