Skip to content

Instantly share code, notes, and snippets.

View UnforeseenOcean's full-sized avatar
😠
Contact me directly for copyright issues.

Sean Canned Bean UnforeseenOcean

😠
Contact me directly for copyright issues.
  • Don't Bother LTD.
  • Somewhere Foundry, CA
View GitHub Profile
@UnforeseenOcean
UnforeseenOcean / zalgo.py
Created April 3, 2016 15:33
Zalgo text generator
import random
import sys
import argparse
#Characters
superscript = [
"\u030d", "\u030e", "\u0304", "\u0305", "\u033f",
"\u0311", "\u0306", "\u0310", "\u0352", "\u0357",
"\u0351", "\u0307", "\u0308", "\u030a", "\u0342",
"\u0343", "\u0344", "\u034a", "\u034b", "\u034c",
@UnforeseenOcean
UnforeseenOcean / midicsv2frequency
Created May 4, 2016 16:13 — forked from clarkli86/midicsv2frequency
Convert the midi csv to frequency/duration pair for embedded systems
# Convert the note on/off events to frequency/duration pair
# 1. Create the midi notes2frequency table. Tuning is based upon A=440
my $a = 440; # a is 440 hz...
my @midi;
for($x = 0; $x < 127; ++$x)
{
$midi[$x] = ($a / 32) * (2 ** (($x - 9) / 12));
}
# 2. Parse the channel events
@UnforeseenOcean
UnforeseenOcean / Erode.java
Created July 1, 2016 04:20 — forked from taboularasa/Erode.java
Open the last saved jpeg image Save it as a new jpeg image with slightly more compression Repeat 600 times
import com.sun.image.codec.jpeg.*;
PImage img;
int numberOfFrames = 600;
void setup()
{
size(1024,768);
}
@UnforeseenOcean
UnforeseenOcean / generator.py
Created July 17, 2016 13:43 — forked from agar3s/generator.py
This script creates a midi file using an image as the source of inspiration
#!/usr/bin/python
import sys
import Image
from midiutil.MidiGenerator import MidiGenerator
from midiutil.TrackGen import LoopingArray
filename = sys.argv[1]
midifilename = filename[0:filename.find('.')]+'.midi'
@UnforeseenOcean
UnforeseenOcean / currentkey.bin
Last active August 16, 2016 13:29
An attempt at decrypting that notorious GPG archive from Equation Group Leak
[X] Invalid
[.] Untried
[?] Unknown
[V] OK
WARNING: I will not provide any part of archive under any circumstances. Do not ask for it.
WARNING: When the password is found, this Gist will be deleted in 30 seconds.
eqgrp-free-file.tar.xz.gpg
[X] equationgroup
[V] theequationgroup
#include <Windows.h>
#include <stdio.h>
#include "resource.h"
EXTERN_C IMAGE_DOS_HEADER __ImageBase;
DWORD WINAPI soundThread(LPVOID parameter);
int random();
BOOL endofsound = FALSE;
@UnforeseenOcean
UnforeseenOcean / nomining.txt
Created October 26, 2017 12:48
No Mining on My Browser
! NMOMB list by Torbjorn
coin-hive.com
coinhive.com
*.jsecoin.com
cnhv.co
gus.host/coins.js
miner.pr0gramm.com/cryptonight-worker.js
minemytraffic.com
ppoi.org
projectpoi.com
<!DOCTYPE html>
<meta name="robots" content="noindex">
<html><head>
<title>Obfuscated name remapper</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body {
background: white;
color: black;
font-family: "Trebuchet MS",Helvetica,Tahoma,Arial,sans-serif;
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
body {
background: repeat url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/7QCIUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAGscAVoAAxslRxwCAAACAAAcAnQAV8KpIENoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbGQgLSBodHRwOi8vd3d3LnJlZGJ1YmJsZS5jb20vcGVvcGxlL0NoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAA
<?php
/*
This is an update of https://wordpress.org/plugins/tumblr-importer/ that fixes several issues:
- do not skip posts without title/content
- when importing 1 image import it as a WP type image instead of gallery
- when importing images, import first image as a post's featured image
Plugin Name: Tumblr Importer
Plugin URI: http://wordpress.org/extend/plugins/tumblr-importer/