Skip to content

Instantly share code, notes, and snippets.

Avatar

Kyle Manna kylemanna

View GitHub Profile
View _README.md

Python Flatbuffer Object -> JSON

Crude proof of concept, criticism welcome.

Usage

$ flatc --python monster.fbs
$ python3 ./python-flatbuffer-to-json.py
FIXME: Equipped is a table
{"color": 0, "equipped": null, "hp": 300, "inventory": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "mana": 150, "name": "Orc", "path": [], "pos": {"x": 1.0, "y": 2.0, "z": 3.0}, "weapons": [{"damage": 3, "name": "Sword"}, {"damage": 5, "name": "Axe"}]}
View git-lfs-stress.sh
#!/usr/bin/env bash
#export GIT_TRACE=1
#export GIT_CURL_VERBOSE=1
set -ex
lfs_explode() {
cd "$i"
while true; do
View jenkins-delete-job.groovy
def jobName = "job/staging"
def maxNumber = 400
// delete all builds before maxNumber
Jenkins.instance.getItemByFullName(jobName).builds.findAll { it.number <= maxNumber }.each {
it.delete()
}
@Francesco149
Francesco149 / docker-cross-device-link.md
Last active Sep 28, 2020
docker error creating new backup file '/var/lib/dpkg/status-old': Invalid cross-device link
View docker-cross-device-link.md
View PKGBUILD
# $Id$
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: Travis Willard <travis@archlinux.org>
pkgname=nss-mdns
pkgver=0.14.1
pkgrel=1
pkgdesc="glibc plugin providing host name resolution via mDNS"
arch=('x86_64')
url="http://0pointer.de/lennart/projects/nss-mdns/"
View amd-config.service
[Unit]
Description=AMD Radeon Config
Before=claymore.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'for i in 3 4 5 6; do /home/miner/amd/ohgodatool/ohgodatool -i $i --set-fanspeed 50 --mem-state 2 --mem-clock 1980 --core-state 7 --core-clock 1200; done'
[Install]
WantedBy=multi-user.target
View AuthyToOtherAuthenticator.md

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

@flisboac
flisboac / fix-intel_wifi_aer-avell_g1513_fire_v3
Last active Dec 20, 2021
Temporary fix for AER's excessive `severity=Corrected` logging for Intel Wireless (Avell G1513 Fire V3) (Arch Linux)
View fix-intel_wifi_aer-avell_g1513_fire_v3
silly gist hack, why do we need you? :(
View sdk.patch
diff --git a/devices/MKL27Z4/gcc/startup_MKL27Z4.S b/devices/MKL27Z4/gcc/startup_MKL27Z4.S
index 961af8d..b249b4b 100644
--- a/devices/MKL27Z4/gcc/startup_MKL27Z4.S
+++ b/devices/MKL27Z4/gcc/startup_MKL27Z4.S
@@ -47,7 +47,7 @@ __isr_vector:
.long __StackTop /* Top of Stack */
.long Reset_Handler /* Reset Handler */
.long NMI_Handler /* NMI Handler*/
- .long HardFault_Handler /* Hard Fault Handler*/
+ .long HardFault_HandlerAsm /* Hard Fault Handler*/
@kylemanna
kylemanna / arch-linux-install.md
Last active Jan 17, 2022 — forked from binaerbaum/arch-linux-install
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks
View arch-linux-install.md