I hereby claim:
- I am blha303 on github.
- I am blha303 (https://keybase.io/blha303) on keybase.
- I have a public key whose fingerprint is C583 9EDD F1F9 D091 EDAF 3590 5930 C685 4030 FCD7
To claim this, I am signing this object:
import os | |
import time | |
# Config | |
NAME = ["Steven Kafshaz"] | |
LASTMSG = {} | |
def filesbychannel(dirlist): | |
out = {} |
// Copying this into the browser console (when you have a chat tab selected) will open the Twitch panels in a new window. | |
$.getJSON("http://www.corsproxy.com/api.twitch.tv/api/channels/"+$('.selected')[0].textContent+"/panels", | |
function(result){ | |
var out = []; | |
$.each(result, | |
function(i, field){ | |
var outp = ""; | |
if (field["data"]["link"]) { | |
outp += "<a href=\"" + field["data"]["link"] + "\">"; | |
} |
<html> | |
<head> | |
<script src="jquery.js"></script> | |
</head> | |
<body> | |
<span id="VideoList"></span> | |
<script> | |
var videosPath = "/Videos/"; | |
var curdir = ""; | |
function updateList(data) { |
# Data can be retrieved (gzipped) from | |
# https://mega.co.nz/#!os4gjQBR!fspHcvoHZHDzN6IGtJgIXUh4N_ciIEL40tHoivqcKXg | |
# Currently this data only contains info for weekdays, as of 2014-06-20. I can't make the data | |
# collection process public, sadly, so please email me if you'd like saturday or sunday/holiday data. | |
# | |
# This is an example implementation of a program to read this data, in Python | |
# It replicates Transperth's service to look up the next five bus times to a stop, as seen here | |
# http://136213.mobi/Bus/StopResults.aspx?SN=14353 | |
# Please direct questions to [email protected] | |
# |
I hereby claim:
To claim this, I am signing this object:
from twisted.internet import reactor, task, defer, protocol | |
from twisted.python import log | |
from twisted.words.protocols import irc | |
from twisted.application import internet, service | |
import yaml, sys, random, re | |
with open(sys.argv[1] if len(sys.argv) > 1 else 'config.yml') as f: | |
config = yaml.load(f.read()) | |
HOST, PORT = config['host'], config['port'] |
javascript:(function%20()%20{prev="";var%20arr=[].slice.call(document.getElementsByTagName('span')).slice(3);for(i=0;i<arr.length;i++){if(arr[i].style){if(prev!=arr[i].style["backgroundColor"]&&prev!=""){arr[i].style["backgroundColor"]%20=%20"rgb(255,%20255,%20255)";}else{prev%20=%20arr[i].style["backgroundColor"];}}}})()
import sys | |
import requests | |
from hurry.filesize import size, si | |
from bs4 import BeautifulSoup as Soup | |
total = 0 | |
def add_to_total(uri, BASE=""): | |
global total | |
headers = requests.head(BASE + uri).headers | |
if "content-length" in headers: |
<?php | |
$passwdfile = "/path/to/file"; | |
$logpath = "/path/to/file"; // should be a csv file with date,lat,long,hor-acc | |
// For json | |
foreach (apache_request_headers() as $header => $value) { if ($header == "Accept") { $accept = $value; } } | |
// Variable checks | |
$allowed = isset($_GET['allowed']); |
#!/usr/bin/env python2 | |
# Usage: ./apache_mirror.py [BASE URL] [NUMBER OF COLUMNS] | |
# If the target site has more (or less) than three columns in the directory index, the second parameter is required. | |
import sys | |
import urllib2 | |
from bs4 import BeautifulSoup as Soup | |
def do_iterate(curdir="", BASE="", COL="", fh=None): | |
print "Entering {}".format(BASE + curdir) |