Skip to content

Instantly share code, notes, and snippets.

View papodaca's full-sized avatar

Ethan Apodaca papodaca

View GitHub Profile
@papodaca
papodaca / keybase.md
Last active August 29, 2015 14:18
keybase.md

Keybase proof

I hereby claim:

  • I am papodaca on github.
  • I am papodaca (https://keybase.io/papodaca) on keybase.
  • I have a public key whose fingerprint is 8B2A 4A6F 4160 D749 1DDA E04D 622C 0D58 A345 F3B1

To claim this, I am signing this object:

servers = (
{
address = "bazookahouse.irc.slack.com";
chatnet = "slack";
port = "6697";
password = "<password>";
use_ssl = "yes";
ssl_verify = "yes";
autoconnect = "yes";
}
Coppied from here: http://apple2.info/wiki/index.php?title=Pinouts#Apple_.2F.2Fe_Motherboard_keyboard_connector
J16 (Numeric Pad) J17 (Keyboard)
11 X5 X6 26 25 Y7
10 X6 SHFT* 24 23 Y6
9 X4 Y9 22 21 X4
8 X7 X3 20 19 X5
7 n/c X1 18 17 X7
6 Y5 X2 16 15 RESET*
5 Y2 XO 14 13 GND
NameVirtualHost *:443
<VirtualHost *:443>
RewriteEngine On
RewriteOptions Inherit
SSLEngine On
SSLProtocol all -SSLv3 -SSLv2
SSLHonorCipherOrder On
def update():
## BUTTONS ##
vJoy[1].setButton(0, wiimote[0].classic_controller.buttons.button_down(ClassicControllerButtons.A))
vJoy[1].setButton(1, wiimote[0].classic_controller.buttons.button_down(ClassicControllerButtons.B))
vJoy[1].setButton(2, wiimote[0].classic_controller.buttons.button_down(ClassicControllerButtons.X))
vJoy[1].setButton(3, wiimote[0].classic_controller.buttons.button_down(ClassicControllerButtons.Y))
vJoy[1].setButton(4, wiimote[0].classic_controller.buttons.button_down(ClassicControllerButtons.DPadDown))
vJoy[1].setButton(5, wiimote[0].classic_controller.buttons.button_down(ClassicControllerButtons.DPadLeft))
vJoy[1].setButton(6, wiimote[0].classic_controller.buttons.button_down(ClassicControllerButtons.DPadRight))
vJoy[1].setButton(7, wiimote[0].classic_controller.buttons.button_down(ClassicControllerButtons.DPadUp))
@papodaca
papodaca / upgrade.sh
Created September 8, 2016 18:30
Upgrade libreboot
flashrom -p internal -r backup.rom
ich9gen --macaddress <some mac>
dd if=ich9fdgbe_8m.bin of=libreboot.rom bs=1 count=12k conv=notrunc
flashrom -p internal -w flashrom.rom
@papodaca
papodaca / promises.js
Last active September 28, 2016 17:40
//callbacks
$http.get(somepath, function(res, err) {
$http.get(somepathother, function(res2, err2) {
$http.get(somepathotherother, function(res3, err3) {
//dostuff
});
});
});
//promises
@papodaca
papodaca / TOWER.ANS
Last active October 1, 2016 16:30
ASCII WEB ART
[?7hワワワワワワワ ワワ ワ ワワ ワワワワワワワ
ワ ロローワワ イ゚゚ イロイ゚ワワ ゚゚
イ イイ イロ ーイ゚゚゚ア゚アイワー イ゚
゚ ゚゚ー゚゚ ゚゚ ゚ ーロ ゚゚゚゚゚゚
ワワワワワワワ ワワワワワワワ ワワ ワワ ロロ ワワワワワワワ ワワワワワワ
ワ ロローワワ イ゚ワ ロイロローロ イロイ ロロイ゚ワワ ゚゚ ロローワ イロ
イ イイ イロ ーイワ゚ イ イイ ゚ワア゚゚ワイイ アイワー イ゚イイ イ ー゚
゚ ゚゚ー゚゚ ゚゚゚゚゚゚ ゚゚゚゚゚゚ワ゚゚゚゚ ゚゚゚゚゚゚ ゚゚ー
@papodaca
papodaca / lock-file
Created February 13, 2017 22:40
Utility scripts to lock and unlock files on disk
#!/bin/bash
openssl aes-256-ecb -salt -in $1 -out $1.tmp
mv $1.tmp $1
@papodaca
papodaca / ascii2html.cpp
Created May 19, 2017 16:47
Convert ansi files output by THE DRAW to html
/*
Copyright © Ethan Apodaca 2016
papodaca@gmail.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,