Skip to content

Instantly share code, notes, and snippets.

Graham Mueller shortstuffsushi

Block or report user

Report or block shortstuffsushi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.js
// This script will monitor the Google Music page and skip songs you've already downvoted.
// Google doesn't do this automatically for some weird reason, so this hacks around that.
// Note that you're limited to somewhere around five skips per hour per station, so you
// can pretty quickly run into a scenario where this won't work. In the case that you want
// to stop the script, just run clearInterval(skipper) after this script.
var skipper = setInterval(function() {
// Grab the rating container (first of two with the same class)
var ratingContainer = document.getElementsByClassName('rating-container')[0];
View keybase.md

Keybase proof

I hereby claim:

  • I am shortstuffsushi on github.
  • I am shortstuffsushi (https://keybase.io/shortstuffsushi) on keybase.
  • I have a public key ASCHHDfD5SMurI-XluQlSRSAN1d3FNLj_39V-7zDQWkA8Qo

To claim this, I am signing this object:

View crack.c
#define _XOPEN_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <string.h>
int main(int argc, char **argv)
{
if (argc != 2)
{
printf("Please enter exactly one hashed password as a command line argument.");
@shortstuffsushi
shortstuffsushi / Printer.h
Last active Apr 16, 2017
iOS WiFi Print
View Printer.h
//
// Printer.h
// Print
//
// Created by Graham Mueller on 10/27/15.
// Copyright © 2015 Graham Mueller. All rights reserved.
//
#import <Foundation/Foundation.h>
@shortstuffsushi
shortstuffsushi / Convert.java
Last active Jan 4, 2019
Simple Map/List to JSONObject/JSONArray
View Convert.java
public class Convert {
public static JSONObject toJson(Map<String, Object> map) {
JSONObject jsonObject = new JSONObject();
for (String key : map.keySet()) {
try {
Object obj = map.get(key);
if (obj instanceof Map) {
jsonObject.put(key, toJson((Map) obj));
}
View AmbientOvernightCapture.txt
Mon Jun 16 2014 06:47:40 GMT+0000 (GMT) Light level: 0.00976562
Mon Jun 16 2014 06:52:40 GMT+0000 (GMT) Light level: 0.01074219
Mon Jun 16 2014 06:57:40 GMT+0000 (GMT) Light level: 0.01074219
Mon Jun 16 2014 07:02:40 GMT+0000 (GMT) Light level: 0.01074219
Mon Jun 16 2014 07:07:40 GMT+0000 (GMT) Light level: 0.01074219
Mon Jun 16 2014 07:12:40 GMT+0000 (GMT) Light level: 0.01074219
Mon Jun 16 2014 07:17:40 GMT+0000 (GMT) Light level: 0.00976562
Mon Jun 16 2014 07:22:40 GMT+0000 (GMT) Light level: 0.00976562
Mon Jun 16 2014 07:27:40 GMT+0000 (GMT) Light level: 0.00976562
Mon Jun 16 2014 07:32:40 GMT+0000 (GMT) Light level: 0.01074219
View Emerson Remote Results
Power -
[ 135, 133, 0, 180, 255, 167, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 222, 0, 12, 255, 245, 0, 12, 255, 222, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 222, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12 ]
[ 37, 13, 0, 180, 255, 167, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 222, 0, 12, 255, 245, 0, 12, 255, 222, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 222, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 245, 0, 12, 255, 222, 0, 12, 255, 222, 0, 12, 255, 2
You can’t perform that action at this time.