This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name "101ESPN Clean" | |
// @version 1.0 | |
// @description "Cleans up the reading experience for 101ESPN.com" | |
// @match http://*.101sports.com/* | |
// @run-at document-start | |
// ==/UserScript== | |
function injectStyles() { | |
head = document.getElementsByTagName('body')[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/http" | |
"github.com/codegangsta/negroni" | |
"github.com/gorilla/mux" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage: | |
// 1. Download this file. | |
// 2. > go build -o yt-comment-search youtube_comment_search.go | |
// 3. > ./yt-comment-search | |
package main | |
import ( | |
"flag" | |
"log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set("America/Los_Angeles"); | |
$export_file = $argv[1]; | |
$output_file = $argv[2]; | |
function templateStart($th) { | |
$html = <<<HEREDOC | |
<html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ytChannelId(channelName) { | |
if(channelName) { | |
var name = getChannelFromUrl(channelName); | |
var url = "https://gdata.youtube.com/feeds/api/users/" + name + "?fields=id&alt=json"; | |
var result = UrlFetchApp.fetch(url); | |
var data = Utilities.jsonParse(result.getContentText()) | |
if(typeof data['entry'] !== 'undefined' && data['entry']['id']['$t'] !== 'undefined') { | |
var id = "UC" + data['entry']['id']['$t'].split('/').pop(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
while read LINE; do | |
IFS=" " read -ra ADDR <<< "$LINE" | |
if [ "${ADDR[3]}" != "MX" ] && [ "${ADDR[3]}" != "TXT" ]; then | |
#echo "${ADDR[0]} ${ADDR[3]} ${ADDR[4]}" | |
aws route53 change-resource-record-sets --hosted-zone-id ZIDF9Q1FLNOC6 --change-batch '{"Changes": [{"Action": "CREATE", "ResourceRecordSet": {"Name": "'${ADDR[0]}'", "Type": "'${ADDR[3]}'", "TTL": 600, "ResourceRecords": [{"Value": "'${ADDR[4]}'"}]}}]}' | |
fi | |
done < /Users/mikeflynn/Downloads/infile.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# GLASSHOLE.SH | |
# | |
# Find and kick Google Glass devices from your local wireless network. Requires | |
# 'beep', 'arp-scan', 'aircrack-ng' and a GNU/Linux host. Put on a BeagleBone | |
# black or Raspberry Pi. Plug in a good USB wireless NIC (like the TL-WN722N) | |
# and wear it, hide it in your workplace or your exhibition. | |
# | |
# Save as glasshole.sh, 'chmod +x glasshole.sh' and exec as follows: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
exports.reddit = (function(){ | |
var _baseUrl = 'www.reddit.com'; | |
var _modhash = false; | |
var serialize = function(obj) { | |
var str = []; | |
for(var p in obj) | |
if (obj.hasOwnProperty(p)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Conf | |
var slackIncoming = require('../lib/slackIncoming').slackIncoming; | |
function Conf(config, metadata) { | |
var confConfig = config.load('conf') || {}; | |
this.rooms = confConfig.rooms; | |
this.metadata = metadata; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).load(function() { | |
var startRotate = function() { | |
window.sliderIntervalId = setInterval(function() { | |
jQuery('i.td-icon-right').click(); | |
}, 5000); | |
}; | |
startRotate(); | |
jQuery('.iosSlider').hover( |