Skip to content

Instantly share code, notes, and snippets.

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

@hako
hako / Googol GLaDOS Voice Tutorial.md
Last active August 29, 2023 20:42
Googol GLaDOS Voice Tutorial, Originally from my site. re-edited in markdown. Do NOT claim this work as your own.

Tutorial: How to create the GLaDOS voice effect. (And other robots)

If you have come here for the animation of Googol GLaDOS, I encourage you to watch it before you continue.

If you're here to see how the voices were made...

LETS GET STARTED.

@hako
hako / snaptcha.txt
Last active September 19, 2015 11:08
@NEmory's snaptcha workaround. (REUP because pastebin removed it.)
This is the registration process!! I hope this helps.
----------------------- 1st REGISTER REQUEST /bq/register -----------------------
age=29&timestamp=1391540459507&req_token=930da8572fd159586e7a5feef9a00534a8e24d8c19f86a8cd9b42e14d8c5182b&email=nemoryoliver%40gmail.com&birthday=1985-02-05&password=DhjkLmnOP2%7B%7D
failed: HTTP CODE: 401 / 403
{"message":"That email is already associated with a username.","status":-201,"logged":false}

Keybase proof

I hereby claim:

  • I am hako on github.
  • I am hako (https://keybase.io/hako) on keybase.
  • I have a public key whose fingerprint is C36D 5CCA 0028 4BE2 89F8 3922 D9F3 0A32 9022 8821

To claim this, I am signing this object:

@hako
hako / httppp.rb
Last active August 29, 2015 14:07 — forked from alyssais/httppp.rb
require 'java'
require 'sinatra'
def keycode(key)
name = "VK_#{key.upcase}"
java.awt.event.KeyEvent.const_get(name)
end
robot = java.awt.Robot.new
@hako
hako / docx2md.md
Created September 28, 2015 15:59 — forked from carloscasalar/docx2md.md
Convert a Word Document into MD

Converting a Word Document to Markdown in One Move

The Problem

A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.

Installing Pandoc

On a mac you can use homebrew by running the command brew install pandoc.

The Solution

@hako
hako / peachy.sh
Last active January 19, 2016 21:28
Peach App token does not expire. (Note I've 'logged out' from the app and this token is not invalidated.)
curl -X "GET" "https://v1.peachapi.com/connections" \
-H "Accept: application/json " \
-H "Host: v1.peachapi.com" \
-H "Connection: keep-alive" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0NTMwNTU4MDksInN0cmVhbUlEIjoiNmIwNjFiZTQzYjc5NDk0NGE3MmYyNGNmMzBlMjczZWYifQ.bd9O5Rf9rg7s2rhbBtXEajFxu5X9Xg1IQwppTPKc19Q" \
-H "User-Agent: Peach App/1.0.11 (iPhone; iOS 8.0.2; Scale/2.00)"
@hako
hako / sirius-diy-tutorial.md
Last active September 27, 2024 04:55
Installing Sirius on Mac / Linux / Raspberry Pi

Installing Sirius on Mac / Linux / Raspberry Pi

Tested working on:

  • Raspberry Pi 1 Model B+ (Using Docker hypriot/rpi-python) (debian/wheezy)
  • Raspberry Pi 2 Model B (with virtualenv)
  • Ubuntu Linux x64 (with virtualenv)
  • Ubuntu Linux x64 (Using Docker)
  • OS X Yosemite (with virtualenv)
@hako
hako / kanye-ispum.py
Created March 24, 2016 22:02
kanye-ispum.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# A kanye-ipsum port to python.
# https://github.com/tylucaskelley/kanye-ipsum
import random
import re
import sys
@hako
hako / GAME_MASTER_v0_1.protobuf
Created July 17, 2016 05:11 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {