Skip to content

Instantly share code, notes, and snippets.

View oxguy3's full-sized avatar

Hayden Schiff oxguy3

View GitHub Profile
@oxguy3
oxguy3 / crackpack without curse.md
Last active August 26, 2016 01:50
How to use the Crackpack without the Curse Launcher

How to use the Crackpack without the Curse Launcher

So if you want to play Crackpack (or any other modpacks in the Curse/FTB launcher) without having to open the annoying Curse app, here's what you do. First, you do need to install Curse and download the modpack you want. Run it once (just open the launcher; you don't actually have to hit play from the Minecraft launcher). Once it's installed, go to the Settings button in the Curse app, click "Minecraft", and then copy the address listed as "Minecraft Install Location".

Next, open Notepad/TextEdit (or your text editor of choice). If you're on Windows, copy-paste the "crackpack.bat" file below into your text editor. If you're on Mac or Linux, copy-paste the "crackpack.sh" file below into your text editor (warning: haven't actually tested this one). On the first line, replace "REPLACEME" with the address you copied from the Curse app. Then save it as "crackpack.bat" or "crackpack.sh". On Mac/Linux you might have to open a terminal and run `chmod 700 crack

@oxguy3
oxguy3 / flickr2commons_todo.md
Last active November 26, 2017 23:46
things I want to add/change/fix in flickr2commons

flickr2commons to-do list

Trivial fixes

  • Make all the input boxes wider
  • Fix "select all" functionality (you can de-select all/all-with-tag, but you can't select all/all-with-tag)
  • Un-hide the label for the "don't use automatic description from flickr" checkbox

Minor features/additions

  • If an upload fails, re-show the checkbox so that the user can fix the issue and try again.
  • Allow the user to change how the author is credited

Who is FCC playing in the first round of the playoffs?

Short answer: Probably Charleston Battery, maybe Rochester Rhinos, possibly (but probably not) Charlotte Independence or Richmond Kickers

Long answer:

Regardless of what happens next weekend (Sep 24), FC Cincinnati is definitely going to be the #3 team coming out of the regular season, which means we play the #6 ranked team in the first round of the playoffs (see: USL Playoffs bracket). Right now, that's Rochester, but ranks 4 through 7 are all really close, so that could change next weekend. #6 Rochester is gonna be playing #12 Toronto, and #5 Charleston is gonna be playing #1 New York. In the likely event that Rochester has a better result than Charleston (i.e. Rochester wins and Charleston doesn't, or Rochester draws and Charleston loses), then Rochester will move up in the standings, and FCC will play Charleston. If Rochester and Charleston have the same result, or Charleston does

@oxguy3
oxguy3 / languify.sh
Last active November 14, 2016 05:07
Tag anime as japanese
#!/bin/bash
# Tag videos as a given language
# Examples:
# Tag a single MP4 video as Japanese:
# ./languify.sh jpn Attack on Titan Episode 1.mp4
# Tag all MP4 files in the directory as English:
# ./languify.sh eng % mp4
function erroranddie {
echo "Invalid command! Syntax: ./languify.sh <lang> <file> OR ./languify.sh <lang> % <ext>"
@oxguy3
oxguy3 / media commands.md
Last active March 8, 2017 04:36
Commands for downloading and managing TV/movies/etc

youtube-dl

Crunchyroll

youtube-dl --netrc -f best --write-sub --sub-lang enUS --write-thumbnail -o '%(series)s - s01e%(episode_number)s - %(episode)s.%(ext)s' http://www.crunchyroll.com/relife
mmv "*s01e? -*" "#1s01e0#2 -#3"
mmv "*.enUS.ass" "#1.en.ass"

alt version since crunchyroll login is broken rn:

youtube-dl --cookies ~/crunchyroll-cookies.txt -f best --write-sub --sub-lang enUS --write-thumbnail -o '%(series)s - s01e%(episode_number)s - %(episode)s.%(ext)s' http://www.crunchyroll.com/relife
@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
<?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 / 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
@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 / 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,
];