Skip to content

Instantly share code, notes, and snippets.

View papodaca's full-sized avatar

Ethan Apodaca papodaca

View GitHub Profile
@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
@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
[email protected]
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