Skip to content

Instantly share code, notes, and snippets.

View zaneneuschuler's full-sized avatar
🤙
screaming at @IanMitchell

Zane Neuschuler zaneneuschuler

🤙
screaming at @IanMitchell
View GitHub Profile
@zaneneuschuler
zaneneuschuler / amazon.js
Created December 4, 2020 21:53
Amazon link shortener
javascript: (function () {
let url = window.location.toString();
let splitUrl = url.split("/");
if (splitUrl[2].includes("amazon") && splitUrl[3] != "dp") {
goodId = splitUrl[5].split("?")[0];
window.location = "https://"+splitUrl[2] + "/dp/"+goodId;
}
else{
alert("URL is already either minimized, or you're not on Amazon.");
}
@zaneneuschuler
zaneneuschuler / kill_twitter.py
Last active April 9, 2019 20:37
Python twitter account killer. Requires a dev twitter account.
import tweepy
auth = tweepy.OAuthHandler("[YOUR CONSUMER KEY]",
"[YOUR CONSUMER SECRET]")
auth.set_access_token("[YOUR ACCESS TOKEN]",
"[YOUR ACCESS SECRET]")
api = tweepy.API(auth)
username = "[YOUR TWITTER ACCOUNT]"
public_tweets = api.user_timeline(username)
while len(public_tweets) != 20:
for tweet in public_tweets:
@zaneneuschuler
zaneneuschuler / randomalbum.py
Last active April 3, 2019 19:26
Randomly select an album from your library to play in MusicBee.
import os
import random
import subprocess
def get_immediate_subdirectories(a_dir):
return [name for name in os.listdir(a_dir)
if os.path.isdir(os.path.join(a_dir, name))]
played = open('musicpaths.txt', "r+")
BASE_PATH = '[YOUR MUSIC PATH HERE]'
@zaneneuschuler
zaneneuschuler / discordcrosspost.py
Last active March 5, 2022 05:02
Twitter to discord crossposting bot
import peony
import asyncio
import discord
import os
def cls():
os.system('cls' if os.name=='nt' else 'clear')
twitter_client = peony.PeonyClient(
consumer_key=YOUR_KEY_HERE,
@zaneneuschuler
zaneneuschuler / init-repo
Last active October 6, 2018 17:45
random shell scripts i made to make my life easier (yes i know makefiles is basically init-repo shut up)
echo "What's your github username?"
read userName
echo "What's the name of your github repo?"
read repo
git clone https://github.com/$userName/$repo.git
cd $repo
git remote rename origin github
touch index.html
mkdir -v assets
cd assets

Keybase proof

I hereby claim:

  • I am zaneneuschuler on github.
  • I am terriakijerky (https://keybase.io/terriakijerky) on keybase.
  • I have a public key whose fingerprint is B77D 0FA8 292A 9EAB 5188 C570 28A5 47F0 851E C541

To claim this, I am signing this object: