Skip to content

Instantly share code, notes, and snippets.

Avatar

Kyle Manna kylemanna

View GitHub Profile
@kylemanna
kylemanna / ingress.nft
Last active February 4, 2023 09:21
ATT UVerse Disable Drop DHCP for temproary 192.168.1.64 address on BGW320 and block Bogons/DDoS packets using nftables
View ingress.nft
#!/usr/sbin/nft -f
#
# Can't block DHCP like a normal service beacuse it use raw sockets and bypasses nftables filter chains. Instead use and ingress chain.
#
flush table netdev filter
table netdev filter {
# Earliest filtering chain
chain ingress {
type filter hook ingress device wan0 priority -500;
@kylemanna
kylemanna / covert.md
Last active October 21, 2022 06:02 — forked from zengxinhui/convert.sh
Replace Oracle Cloud Linux with Arch Linux remotely
View covert.md
@kylemanna
kylemanna / build-friendlywrt.md
Last active March 14, 2023 20:57
FriendlyElec NanoPi R5S Linux PTP Support
View build-friendlywrt.md

Build Notes

Environment

Use systemd-nspawn on Arch Linux with debootstrap:

sudo debootstrap --include=systemd-container --components=main,universe jammy ubuntu22.04-rk3568 http://archive.ubuntu.com/ubuntu/
View 0001-pkgrel-v0.4.1-3-add-python-numpy-OpenGL-dependencies.patch
From 30cf11cb52c49d17abb7b7d22379ff9c383daaa7 Mon Sep 17 00:00:00 2001
From: Kyle Manna <kyle@kylemanna.com>
Date: Thu, 1 Sep 2022 09:46:52 -0500
Subject: [PATCH] pkgrel: v0.4.1-3 add python-numpy + OpenGL dependencies
---
.SRCINFO | 5 ++++-
PKGBUILD | 4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)
mode change 100755 => 100644 PKGBUILD
@kylemanna
kylemanna / list-non-dependent-pkgs-by-size.sh
Last active January 15, 2022 16:24
Arch Linux: List packages installed without a dependency sorted by size
View list-non-dependent-pkgs-by-size.sh
#!/bin/bash
pacman -Qi | awk '/^Name/{name=$3} /^Required By/{req=$4} /^Installed Size/{print $4$5, name, req}' | grep None | sort -h
@kylemanna
kylemanna / AuthyToOtherAuthenticator.md
Created December 24, 2021 04:56 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
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

@kylemanna
kylemanna / 0001-release-python-logfury-v1.0.1.patch
Last active November 13, 2021 02:44
Arch User Repository AUR Update for python-logfury
View 0001-release-python-logfury-v1.0.1.patch
From 94f64148ce295a4ba7b96e539f8f82798697fa71 Mon Sep 17 00:00:00 2001
From: Kyle Manna <kyle@kylemanna.com>
Date: Fri, 12 Nov 2021 20:03:13 -0600
Subject: [PATCH] release: python-logfury: v1.0.1
* Follow upstream.
* Use new git repo, old URL redirects.
* Use PyPI so pkg metadata is included.
* Update license file.
* Add test checks.
View hw_watch.sh
#!/bin/bash
#set -ex
base=/sys/class/drm/card0/device/hwmon/hwmon?
cd $base
get_hwmon() {
for i in fan1_input pwm1; do
echo hwmon: $i: $(cat $i)
done
for i in temp?_input ; do
@kylemanna
kylemanna / armory2cointracking.py
Last active April 17, 2021 19:26
#armory #cointracking #taxes #fml
View armory2cointracking.py
#!/usr/bin/env python3
"""Script to convert Bitcoin Armory transaction history to a format that Cointracking.info CSV"""
import argparse
import collections
import csv
import datetime
import json
import os