Skip to content

Instantly share code, notes, and snippets.

View oxguy3's full-sized avatar

Hayden Schiff oxguy3

View GitHub Profile
@oxguy3
oxguy3 / scrape-march-madness.py
Last active March 17, 2023 20:48
Scraper for NCAA tournament games on Sports-Reference.com. Prints a JSON array of all games (excluding play-in rounds)
#!/usr/bin/env python3
#
# MIT License
#
# Copyright 2020 Hayden Schiff
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@oxguy3
oxguy3 / s3browse.py
Created April 10, 2020 23:21
Command-line tool for retrieving the listing of a public S3 bucket and saving it to a CSV file
#! /usr/bin/env python3
from lxml import etree
import requests
import argparse
import csv
from pprint import pprint
import time
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

Open directories

Some of the best open directories I know of:

@oxguy3
oxguy3 / archiveteam-tracker-log-cleaner.user.js
Last active December 10, 2019 02:44
userscript to make the log for ArchiveTeam's tracker a little bit easier to read
// ==UserScript==
// @name ArchiveTeam tracker log cleaner
// @namespace https://schiff.io/
// @version 0.1
// @description make the log for the AT tracker a little bit easier to read
// @author Hayden Schiff (oxguy3)
// @match http://tracker-test.ddns.net/*
// @match http://tracker.archiveteam.org/*
// @grant none
// ==/UserScript==
@oxguy3
oxguy3 / embiggener.js
Last active December 5, 2018 17:23
Finds the biggest possible version of any image
function runParsers() {
var parsers = [
parseBandcamp,
parseFlickr,
parseSportsEngine,
parseTwitter,
parseWikimedia,
parseYouTube,
];
@oxguy3
oxguy3 / Humble Bundle Android.postman_collection.json
Created July 21, 2017 18:37
A Postman collection for accessing your Humble Bundle purchases via the Android app's API. Download and import to Postman.
{
"variables": [],
"info": {
"name": "Humble Bundle Android",
"_postman_id": "4279719d-083a-5656-6524-c00e77975f62",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
@oxguy3
oxguy3 / dark_horse_downloader.js
Last active September 17, 2023 00:29
Greasemonkey script for downloading a DRM-free copy of your Dark Horse digital comics
// ==UserScript==
// @name Dark Horse Downloader
// @namespace http://schiff.io/
// @version 0.1
// @description Download a DRM-free copy of your Dark Horse digital comics.
// @author Hayden Schiff (oxguy3)
// @match https://digital.darkhorse.com/read/*
// @match https://digital.darkhorse.com/bookshelf*
// @include https://*.cloudfront.net/*
// @grant GM_xmlhttpRequest
<?php
function printHead() {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
@oxguy3
oxguy3 / 8451eirutility.sh
Last active April 29, 2019 18:58
Installation script for a launchd daemon that automatically logs into my workplace's wi-fi
#!/bin/bash
function run8451eir
{
if [ -a ~/Library/LaunchAgents/local.8451login.plist ]; then
promptun="$(osascript -e 'Tell application "System Events" to display dialog "Looks like 84.51 EiR Utility is already installed; do you want to uninstall it?" default button 1 buttons {"Yes", "No"} with icon caution' 2>/dev/null)"
if [ "$promptun" = "button returned:Yes" ]; then
rm ~/Library/Application\ Support/8451login.sh
launchctl unload ~/Library/LaunchAgents/local.8451login.plist