Skip to content

Instantly share code, notes, and snippets.

@sorphin
sorphin / multicast_upgrader.py
Created October 1, 2024 18:32 — forked from djGrrr/multicast_upgrader.py
Python WAS-110 Multicast Upgrader
#!/usr/bin/env python3
__author__ = "Visual Studio"
__credits__ = ["djGrrr", "Visual Studio"]
__license__ = "MIT"
__version__ = "1.0.0.0"
# Credit: https://gist.github.com/djGrrr/4413dacee0df28429306e9fdf4624e02
from signal import *
@sorphin
sorphin / tc358743-overlay.dts
Created December 8, 2023 15:57 — forked from chronopoulos/tc358743-overlay.dts
tc358743-overlay.dts
/dts-v1/;
/plugin/;
/{
compatible = "rockchip,rockpi","rockchip,rk3399";
fragment@0 {
target = <&i2c4>;
__overlay__ {
@sorphin
sorphin / AuthyToOtherAuthenticator.md
Created October 23, 2023 05:01 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

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

@sorphin
sorphin / git.md
Created October 7, 2023 07:48 — forked from BondAnthony/git.md
Git!

Helpful Git Commands

Git log in a pretty format

git log --graph --decorate --pretty=oneline --abbrev-commit

Clean up merged branches from local

git fetch -p &amp;&amp; for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do echo "Delete: ${branch}"; git branch -D ${branch}; done
@sorphin
sorphin / openssl.md
Created October 7, 2023 07:48 — forked from BondAnthony/openssl.md
The fun of openssl

All those OpenSSL commands

Pull certificates for a domain

openssl s_client -showcerts -connect abond.dev:443

Add the following flag to run SNI negotiation.

 -servername abond.dev
@sorphin
sorphin / unifi.md
Created October 7, 2023 07:48 — forked from BondAnthony/unifi.md
Unifi Controller

Unifi Controller

Load your own certificate into Unifi

java -jar /usr/lib/unifi/lib/ace.jar import_key_cert tls.key tls.pem
apiVersion: influxdata.com/v2alpha1
kind: Variable
metadata:
name: wizardly-northcutt-83c00b
spec:
associations:
- kind: Label
name: frosty-hamilton-83c001
name: kwh_price
description: Price per kilowatt-hour
@sorphin
sorphin / atecc608a-i2c-notes.md
Created March 31, 2023 16:20 — forked from rrottmann/atecc608a-i2c-notes.md
ATECC608A I2C Notes

ATECC608A I2C Notes

Here be dragons

WARNING: AS THE DEVICE CAN BE CONFIGURED ONLY ONCE, PLEASE BE WARNED THAT YOU MIGHT EASILY BRICK THE CHIP! USE AT YOUR OWN RISK!

Circuit

Please make sure to use proper circuit for ATECC608A with pullups and decoupling capacitors when hooked to a MCU. A Raspberry Pi might also work without external components just using internal pullups.

@sorphin
sorphin / bmc
Created April 30, 2021 01:09 — forked from phil21/bmc
#!/usr/bin/perl
#
# bmc tool - a user friendly front-end to probe, configure, and manage the BMC
#
# Copyright (c) 2012 Dell Inc. All rights reserved.
#
# This tool is part of the PowerEdge C datacenter system management tools
# from http://poweredgec.com
#
# michael_stumpf@dell.com