Skip to content

Instantly share code, notes, and snippets.

View papodaca's full-sized avatar

Ethan Apodaca papodaca

View GitHub Profile
@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 / 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 / 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 / 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 / gist:b2b2b48729c86f8dbbc0d8c36b5df2a3
Created August 2, 2024 22:20
traycer/trayce_agent:0.0.2 output on Aug. 1, 2024
libbpf: loading object 'main.bpf.o' from buffer
libbpf: elf: section(2) .symtab, size 4704, link 1, flags 0, type=2
libbpf: elf: section(3) .text, size 6096, link 0, flags 6, type=1
libbpf: sec '.text': found program 'trayce_debug' at insn offset 0 (0 bytes), code size 74 insns (592 bytes)
libbpf: sec '.text': found program 'go_get_argument_by_reg' at insn offset 74 (592 bytes), code size 44 insns (352 bytes)
libbpf: sec '.text': found program 'go_get_argument_by_stack' at insn offset 118 (944 bytes), code size 12 insns (96 bytes)
libbpf: sec '.text': found program 'go_get_argument' at insn offset 130 (1040 bytes), code size 17 insns (136 bytes)
libbpf: sec '.text': found program 'process_ssl_read_entry' at insn offset 147 (1176 bytes), code size 150 insns (1200 bytes)
libbpf: sec '.text': found program 'process_ssl_read_return' at insn offset 297 (2376 bytes), code size 202 insns (1616 bytes)
libbpf: sec '.text': found program 'process_ssl_write_entry' at insn offset 499 (3992 bytes), code size 129 insns (10