Skip to content

Instantly share code, notes, and snippets.

@shortstuffsushi
shortstuffsushi / index.js
Created April 25, 2017 23:52
Skip Google Music
// 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];

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:

@shortstuffsushi
shortstuffsushi / crack.c
Created January 9, 2017 00:05
Quick Crack demo
#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 November 19, 2019 05:58
iOS WiFi Print
//
// 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 December 14, 2022 16:24
Simple Map/List to JSONObject/JSONArray
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));
}
@shortstuffsushi
shortstuffsushi / AmbientOvernightCapture.txt
Last active August 29, 2015 14:02
Ambient Overnight Capture
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
@shortstuffsushi
shortstuffsushi / Emerson Remote Results
Last active August 29, 2015 14:02
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