Skip to content

Instantly share code, notes, and snippets.

View tedkulp's full-sized avatar

Ted Kulp tedkulp

View GitHub Profile
@tedkulp
tedkulp / userscript.js
Created October 17, 2023 11:29
Tampermonkey script to skip AWS SSO login process
// ==UserScript==
// @name Auto AWS SSO Login
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://*.awsapps.com/start/user-consent/authorize.html*
// @match https://*.awsapps.com/start/user-consent/login-success.html
// @match https://device.sso.us-east-1.amazonaws.com/?user_code=*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
@tedkulp
tedkulp / plugin.js
Created June 13, 2023 18:50
WIP 2 pass tdarr audio normalisation plugin. See: https://github.com/HaveAGitGat/Tdarr_Plugins/issues/305
/* eslint-disable no-unused-vars, no-await-in-loop */
module.exports.dependencies = ["axios@0.27.2"];
// PLugin runs multipass loudnorm filter
// first run gets the required details and stores for the next pass
// second pass applies the values
// stages
// Determined Loudnorm Values
// Applying Normalisation
@tedkulp
tedkulp / hb.js
Last active April 14, 2023 10:15
Get unredeemed keys in Humble Bundle
// Taken and modified from: https://reddit.com/r/humblebundles/comments/inm60w/meta_how_to_easily_pull_a_list_of_all_your/
// Run in dev console at: https://www.humblebundle.com/home/keys
// Target platform: Steam, GOG or OUYA
var targetPlatform = 'GOG';
//if you're not on the first page navigate to the first page
if($('.js-jump-to-page:first').text() != "1"){
$('.js-jump-to-page:nth-child(2)').click();
}
@tedkulp
tedkulp / pastemeintoconsole.js
Last active December 28, 2022 14:56
Antimatter Dimensions - Tickspeed Challenge Helper
// Written by Anth42
// Antimatter Dimensions - Tickspeed Challenge Helper
// https://pastebin.com/ebTjWEFP
//
// Updated for 2022 by Ted Kulp
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);

[Verifying my cryptographic key: openpgp4fpr:AE6B007E2FAB1C94319C7C09FD56BE79CDAE7895]

@tedkulp
tedkulp / stream_dummy_video.sh
Created September 20, 2021 00:13
Script to generate test video stream and stream to rtmp
#!/bin/bash
./videogen.sh -f flv "rtmp://some-rtmp-server:1935/live/some-key-maybe-goes-here"
@tedkulp
tedkulp / app.go
Created June 11, 2014 11:50
AMQP echo server in Go
package main
import (
"github.com/streadway/amqp"
"encoding/json"
"log"
"os"
"fmt"
"time"
)
@tedkulp
tedkulp / import_from_github.sh
Created July 16, 2020 14:02
Import a Github user's GPG into your keyring -- uses jq
#!/bin/sh
USERNAME=$1
curl https://api.github.com/users/$USERNAME/gpg_keys | jq -r '.[0].raw_key' | gpg --import
@tedkulp
tedkulp / keybase.md
Last active June 23, 2020 09:22
keybase.md

Keybase proof

I hereby claim:

  • I am tedkulp on github.
  • I am tedkulp (https://keybase.io/tedkulp) on keybase.
  • I have a public key whose fingerprint is AE6B 007E 2FAB 1C94 319C 7C09 FD56 BE79 CDAE 7895

To claim this, I am signing this object:

@tedkulp
tedkulp / Procfile
Last active January 6, 2020 06:33
Node.js server to turn twitter favorites into an RSS feed. Twitter api v1.1 is killing this, so I made my own and put it on heroku.
web: coffee app.coffee