Skip to content

Instantly share code, notes, and snippets.

View kylemanna's full-sized avatar

Kyle Manna kylemanna

View GitHub Profile
@kylemanna
kylemanna / 0001-release-linuxptp-4.1.patch
Created October 1, 2023 06:56
Arch Linux AUR linuxptp v4.1
View 0001-release-linuxptp-4.1.patch
From 27869268409c6bb7247d5fff51f80b31792825c0 Mon Sep 17 00:00:00 2001
From: Kyle Manna <kyle@kylemanna.com>
Date: Sun, 1 Oct 2023 01:56:26 -0500
Subject: [PATCH] release: linuxptp 4.1
* Many changes!
---
.SRCINFO | 6 +++---
PKGBUILD | 7 +++----
2 files changed, 6 insertions(+), 7 deletions(-)
@kylemanna
kylemanna / tailscale-default-unroute.py
Last active May 8, 2023 05:37
Tailscale Per Host Default Router Disabler
View tailscale-default-unroute.py
#!/usr/bin/env python3
""" Tailscale Per Host Default Router Disabler
Tailscale allows a single tailnet wide "Override local DNS" setting that works
great for mobile and random cloud machines I have. However, my more elaborate
setups require the ability to turn this off and use local DNS as the default
route.
Unfortuantely with Tailscale as of v1.40.0 there's only two options:
1. Tailnet wide "local DNS override" (Turns out tailscale's internal resolver
@kylemanna
kylemanna / 0_gluetun_network_bug.md
Last active March 29, 2023 01:43
Bug notes for gluetun multiple networks issue.
View 0_gluetun_network_bug.md

README

Issue

The gluetun container doesn't work correctly with multiple networks attached.

This is an example of a working and broken config with only minor differences.

Expected Output

@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/convert2arch_x64.sh
Replace Oracle Cloud Linux with Arch Linux remotely
View covert.md
@kylemanna
kylemanna / build-friendlywrt.md
Last active September 11, 2023 12:24
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