Skip to content

Instantly share code, notes, and snippets.

@jfmherokiller
jfmherokiller / program.cs
Last active March 13, 2017 02:07
movable.sed parser
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace movablesedtest
{
//refrenced from here https://www.3dbrew.org/wiki/Nand/private/movable.sed
/*Offset Size Description
*0x0 0x4 Magic "SEED"
#!/bin/sh
LISTS=$1
[ -z $LISTS ] && LISTS=BASE16
NZ=nzone
if grep -q Ubuntu /proc/version; then
VER=Ubuntu
PS="ps -A"
PACKAGES="hostapd dnsmasq sudo iptables procps cron net-tools wireless-tools pciutils module-init-tools coreutils grep sed"
[ $(dpkg -l $PACKAGES | grep -ce ^ii) -lt 13 ] && sudo apt-get update && sudo apt-get install $PACKAGES
SCRIPTROOT=/usr/local/bin
@jfmherokiller
jfmherokiller / TRORQWV13762CDDF4C.json
Last active November 3, 2016 19:55
the magical part of infinate jukebox
{"response": {"status": {"code": 0, "message": "Success", "version": "4.2"}, "track": {"status": "complete", "info": {"title": "Call Me Maybe", "url": "http://static.echonest.com/audio2/01 Call Me Maybe 1.mp3", "artist": "Carly Rae Jepsen", "tag": "tag", "ready": true, "id": "TRORQWV13762CDDF4C"}, "song_id": "SOXLHDK1372FC963BC", "artist": "Carly Rae Jepsen", "samplerate": 44100, "title": "Call Me Maybe", "analysis": {"bars": [{"duration": 1.99956, "start": 0.76559, "confidence": 0.39}, {"duration": 1.98793, "start": 2.76515, "confidence": 0.486}, {"duration": 1.99906, "start": 4.75307, "confidence": 0.757}, {"duration": 1.99325, "start": 6.75214, "confidence": 0.194}, {"duration": 2.00363, "start": 8.74538, "confidence": 0.684}, {"duration": 2.00462, "start": 10.74901, "confidence": 0.29}, {"duration": 1.99523, "start": 12.75363, "confidence": 0.594}, {"duration": 1.49697, "start": 14.74886, "confidence": 0.613}, {"duration": 2.00731, "start": 16.24584, "confidence": 0.445}, {"duration": 1.99665, "start": 18
@jfmherokiller
jfmherokiller / CLion_Ninja.md
Last active November 3, 2016 18:47 — forked from nevkontakte/CLion_Ninja.md
Ninja support for CLion IDE

Ninja support for CLion IDE

This script enables Ninja-powered builds in CLion IDE by wrapping around CMake, which it uses. See my blog post for details.

Disclaimer

This script is provided AS IS with no guarantees given or responsibilities taken by the author. This script relies on undocumented features of CLion IDE and may lead to instability of build and/or IDE. Use it on your own risk under WTFPL terms.

This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<title>asciinema - Record and share your terminal sessions, the right way</title>
<style>
diff --git a/src/conky.cc b/src/conky.cc
index 6522ce1..07625cf 100644
--- a/src/conky.cc
+++ b/src/conky.cc
@@ -129,6 +129,549 @@
#include <microhttpd.h>
#endif
+#include <assert.h>
+#include <string.h>
@jfmherokiller
jfmherokiller / Makefile
Created September 20, 2016 16:38
wabbitsign Makefile
CC = $(CROSS_COMPILE)clang
LD = $(CROSS_COMPILE)ld
LDFLAGS += -lc -lm
LDFLAGS += -lgmp -lcrypto
export CFLAGS
export LDFLAGS
# Suffix Rules
.SUFFIXES: .c
@jfmherokiller
jfmherokiller / Greasemonkey.js
Created July 21, 2016 19:01 — forked from fuzzykiller/Greasemonkey.js
Greasemonkey API stubs with JSDoc, for WebStorm etc
/**
* Created by azu.
* Date: 10/11/28
* Updated by fuzzykiller (2015/08/28)
* License: MIT License
*/
/**
* An object that exposes various information about Greasemonkey and the running User Script.
*/
@jfmherokiller
jfmherokiller / Greasemonkey-jq-boilerplate.js
Created July 21, 2016 18:58 — forked from angel-vladov/Greasemonkey-jq-boilerplate.js
Boilerplate code for a Greasemonkey script which reuses the jQuery from the page it's attached to.
var jQuery, $ = null;
function addJQuery(callback) {
var p = null;
if(window.opera || window.navigator.vendor.match(/Google/)) {
var div = document.createElement("div");
div.setAttribute("onclick", "return window;");
p = div.onclick();
}
// Created by STRd6
// MIT License
// jquery.paste_image_reader.js
(function($) {
var defaults;
$.event.fix = (function(originalFix) {
return function(event) {
event = originalFix.apply(this, arguments);
if (event.type.indexOf('copy') === 0 || event.type.indexOf('paste') === 0) {
event.clipboardData = event.originalEvent.clipboardData;