Skip to content

Instantly share code, notes, and snippets.

View brianddk's full-sized avatar

brianddk

View GitHub Profile
@brianddk
brianddk / tipjar.md
Last active May 3, 2023 23:56
Tip Jar

brianddk's TipJar

None of my work in this space is sponsored, so other priorities take precedence. If you've found some of my samples or posts useful, or wish to place a bounty on a specific request, donations are welcome. But if you just want to give a thumbs up without putting any money down, consider one of the donation addresses listed in the testnet / valueless section or simply use one of my referral links below.

Mainnet / Production Coins

If you don't see a coin you would like to contribute, simply open an issue requesting I add it and I will. If you want to tip BAT or DONUT, I am accepting both at my Ethereum ERC20 address.

BTC Lightning Network https://tippin.me/@dkbriand
@brianddk
brianddk / Notes.txt
Last active February 10, 2023 04:22
Extract Key Data from GPG
1) Create a key in Openssl (openssl genrsa)
2) Dump Key matter (https://www.openssl.org/docs/apps/asn1parse.html)
3) Import it into GpgSM (http://www.sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG%2C-OpenSsh-and-OpenSSL)
4) Import into gpg (gpg --edit-key addkey {from existing fingerprint})
5) Dump Key matter (gpg --export {keyid} | gpg --list-packets --debug-all)
6) Export to OpenSSL (http://www.sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG%2C-OpenSsh-and-OpenSSL)
7) Dump Key matter (https://www.openssl.org/docs/apps/asn1parse.html)
PublicKey: https://tools.ietf.org/html/rfc2313#section-7.1
PrivateKey: https://tools.ietf.org/html/rfc2313#section-7.2
@brianddk
brianddk / vbox-usb.md
Last active January 27, 2022 06:21
Win 10 21H1 + VirtualBox 6.1 + WSL-2 + usbipd-win v2

Win 10 21H1 + VirtualBox 6.1 + WSL-2 + usbipd-win v2

@brianddk
brianddk / trezor-wallet-search.py
Last active May 10, 2021 18:33
Trezor HW wallet search utility
#!/usr/bin/env python3
# [rights] Copyright Dan B. (brianddk) 2019 https://github.com/brianddk
# [license] Apache 2.0 License https://www.apache.org/licenses/LICENSE-2.0
# [repo] https://gist.github.com/brianddk/e655a2a30f68cd5d981b69ec4b709d9c
# [tipjar] LTC: LQjSwZLigtgqHA3rE14yeRNbNNY2r3tXcA or https://git.io/fh6b0
# [refered] https://www.reddit.com/r/TREZOR/comments/ak2mej/
# [erratta] https://github.com/pyusb/pyusb/issues/203
# - Must use libusb-1.0.dll v1.0.21
# https://github.com/ethereum/pyethereum/issues/888
# - Must install trezor[hidapi]
@brianddk
brianddk / bitcoin_for_kids.md
Last active February 10, 2021 09:30
Bitcoin For Kids

Assuming you have a willing parent or guardian, here's an example of how that would work for a minor in the US via CashApp. Ensure your upfront with the parent or guardian as to what your doing.

  1. Get a summer job with some source of direct deposit income.
  2. Ask your legal guardian to help you open a "Youth Spending" checking account also called UTMA.
  3. Ask for a debit card attached to the account.
  4. Have your summer job paychecks direct deposited to the account.
  5. Download the CashApp and link it to your phone number AND email.
  6. Link the CashApp to your Youth Spending Debit card and checking account.
  7. Attempt to transfer $25 from your debit card into your CashApp, assuming you have the money.
  8. Ask your guardian to fill in their SSN when prompted.
@brianddk
brianddk / +Readme.md
Last active January 16, 2021 20:57
Crypto Cost

Crypto Cost

@brianddk
brianddk / trezor_encrypt.py
Last active December 16, 2020 14:40
Trezor Offline Encrypt / Decrypt Sample Scripts
#!/usr/bin/env python3
# [rights] Copyright Dan B. (brianddk) 2019 https://github.com/brianddk
# [license] Licensed under Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0
# [repo] https://gist.github.com/brianddk/4d7c44c0cd97b62a810c1b5a9d50af8d
# [version] Version 0.2
# [tipjar] LTC: LQjSwZLigtgqHA3rE14yeRNbNNY2r3tXcA
# [erratta] https://github.com/pyusb/pyusb/issues/203
# - Must use libusb-1.0.dll v1.0.21
# - Must install trezor[hidapi] v11.1
# [test] dir | trezor_encrypt.py | trezor_encrypt.py -d
@brianddk
brianddk / 1_TxIds.txt
Last active December 7, 2020 01:27
Check which TX confirmed on their own, and which haven't
Transactions:
504658563f231e71f79312e96da2cc13e779875ac262269b1b8f9f04e527dfc9
a1faf7b6db5bb4ef4a39911ca54152df57758e128cd19fbf16178aea59e06c87
b1346f1ab63dc90cb592028e1f7283f02b54e46afb35b9145ad91ac2a55877be
e61458c302d75b8e0925d4bb0da5466c0a76d60dce506cc766b2d3f160b1d0a5
Addresses:
1BwJgbMKb7nz4GZ3uTDTbpovzznTrBbyJE
1DnJ4rzDpSG5GJsXNyXE7f17rky8wc1RLT
1Q6M9Vyuv5RyeuqpgJfCUCWrM2yrSb45BD
@brianddk
brianddk / adbremote.txt
Last active November 30, 2020 00:52
ADB Remote
http://marian.schedenig.name/2014/07/03/remote-control-your-android-phone-through-adb/
https://github.com/MajeurAndroid/Adb-Remote-Screen
https://github.com/oberien/adb-remote-control
https://android.gadgethacks.com/how-to/fully-control-your-android-device-from-any-computer-0164097/
GNURoot SH
https://gist.github.com/kbeflo/ccaf34f4515670d84b37719c067300c7