Skip to content

Instantly share code, notes, and snippets.

View papodaca's full-sized avatar

Ethan Apodaca papodaca

View GitHub Profile
@papodaca
papodaca / att.sh
Created November 17, 2021 18:52
Cut down version of pfatt bypass from https://github.com/MonkWho/pfatt/
#!/bin/sh
#
# CONFIG
# ======
#
# ONT_IF Interface connected to the ONT
#
# RG_ETHER_ADDR MAC address of your assigned Residential Gateway
#
# Required Config
@papodaca
papodaca / keybinding.json
Last active April 27, 2021 18:15
vscode config
[
{
"key": "cmd+0",
"command": "-workbench.action.focusSideBar"
},
{
"key": "cmd+0",
"command": "workbench.action.zoomReset"
},
{
@papodaca
papodaca / encode.sh
Last active February 24, 2019 22:59
Download podcasts and name with release order, assuming the feed is delivered in release order.
#!/bin/bash
threads=4
if [ -z "$1" ]; then
echo "Usage:"
echo " encode.sh <output_path>"
exit 1
fi
@papodaca
papodaca / f7.patch
Last active September 15, 2018 19:56
kernel patch for teclast f7 touchpad
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c
index eae0cb3ddec6..cce5c43b9bc2 100644
--- a/drivers/hid/i2c-hid/i2c-hid.c
+++ b/drivers/hid/i2c-hid/i2c-hid.c
@@ -47,7 +47,86 @@
/* quirks to control the device */
#define I2C_HID_QUIRK_SET_PWR_WAKEUP_DEV BIT(0)
#define I2C_HID_QUIRK_NO_IRQ_AFTER_RESET BIT(1)
-#define I2C_HID_QUIRK_RESEND_REPORT_DESCR BIT(2)
+
@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,
@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 / TOWER.ANS
Last active October 1, 2016 16:30
ASCII WEB ART
[?7hワワワワワワワ ワワ ワ ワワ ワワワワワワワ
ワ ロローワワ イ゚゚ イロイ゚ワワ ゚゚
イ イイ イロ ーイ゚゚゚ア゚アイワー イ゚
゚ ゚゚ー゚゚ ゚゚ ゚ ーロ ゚゚゚゚゚゚
ワワワワワワワ ワワワワワワワ ワワ ワワ ロロ ワワワワワワワ ワワワワワワ
ワ ロローワワ イ゚ワ ロイロローロ イロイ ロロイ゚ワワ ゚゚ ロローワ イロ
イ イイ イロ ーイワ゚ イ イイ ゚ワア゚゚ワイイ アイワー イ゚イイ イ ー゚
゚ ゚゚ー゚゚ ゚゚゚゚゚゚ ゚゚゚゚゚゚ワ゚゚゚゚ ゚゚゚゚゚゚ ゚゚ー
@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 / 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
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))