Skip to content

Instantly share code, notes, and snippets.

View brianddk's full-sized avatar

brianddk

View GitHub Profile
@brianddk
brianddk / ubuntu16-electrum-git-build.sh
Last active December 9, 2018 07:05
Build script to install electrum on Ubuntu 16.04 from git master branch
#!/bin/bash
# [rights] Copyright Dan B. (brianddk) 2018 https://github.com/brianddk
# [license] Licensed under Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0
# [repo] https://gist.github.com/brianddk/d6d4354938cd571bafa8d2abc023c62a
# [regards] https://stackoverflow.com/questions/53673562/
# [tipjar] LTC: LQjSwZLigtgqHA3rE14yeRNbNNY2r3tXcA
#
set -e
set -o pipefail
sudo apt-get -y remove cython3
@brianddk
brianddk / simple_trezor_offline_txn.py
Last active February 25, 2019 21:21
Simple Offline Trezor Transaction (req trezorlib v0.11.0)
#!/usr/bin/env python3
# [rights] Copyright Dan B. (brianddk) 2018 https://github.com/brianddk
# [license] Licensed under Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0
# [repo] https://gist.github.com/brianddk/fd3312175dd4622c140f137645cf27f3
# [tipjar] LTC: LQjSwZLigtgqHA3rE14yeRNbNNY2r3tXcA
#
from trezorlib import btc, coins, messages as proto, tools, ui
from trezorlib.client import TrezorClient
from trezorlib.transport import get_transport
from trezorlib.tx_api import json_to_tx
@brianddk
brianddk / simple_trezor_txn.py
Last active February 24, 2019 23:49
A very simple one-to-one TXN for python trezor v0.11.0
#!/usr/bin/env python3
# [rights] Copyright Dan B. (brianddk) 2018 https://github.com/brianddk
# [license] Licensed under Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0
# [repo] https://gist.github.com/brianddk/e57a4ef04e2a7fc24da29a4baf91b343
# [tipjar] LTC: LQjSwZLigtgqHA3rE14yeRNbNNY2r3tXcA
#
from trezorlib import btc, coins, messages as proto, tools, ui
from trezorlib.client import TrezorClient
from trezorlib.transport import get_transport
@brianddk
brianddk / install-electrum-ftc.sh
Last active December 5, 2018 07:55
Lubuntu-16: Test install of Electrum-FTC for Trezor
#!/bin/bash
# [rights] Copyright Dan B. (brianddk) 2018 https://github.com/brianddk
# [license] Licensed under Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0
# [repo] https://gist.github.com/brianddk/0d4d073a7430835b296de1260c8b49c5
# [tipjar] FTC: 6mx5WVXsTEdsh9UCainpdAHDrDwH4mZQTD
#
cd /tmp
sudo apt-get install curl gnupg2 git libssl-dev python3-pip python3-pyqt5 pyqt5-dev-tools libudev-dev libusb-1.0.0-dev
userJson="$(curl -s https://api.github.com/users/toxeus/gpg_keys)"
userKey="$(sed 's#"#\\r\\n#g' <<< "$userJson")"
@brianddk
brianddk / SwimAThon.md
Created March 23, 2018 21:38
Swim-A-Thon

Hello, my friends! This is it...it's time to commit to Swim-A-Thon, our annual one-hour swim challenge and fundraiser. We are raising money to sponsor kids who otherwise couldn't pay for lessons to learn to swim this summer. This challenge will be held at the Langham Creek YMCA (https://www.google.com/maps/ place/Langham+Creek+Family+ YMCA/@29.8987901,-95.685217, 14z/data=!4m5!3m4! 1s0x8640d6dfe5d464c9: 0x52c602a00ced2373!8m2!3d29. 8987855!4d-95.6677075) on Friday, March 23. There is a morning session (arrive before 9:15, swim begins at 9:30, victory breakfast at 10:45) or an evening session (arrive before 6 pm, swim begins 6:15, dinner afterward at Chuy's). I have created a sign-up sheet at the following web address. Please use your sign-up genius account or create one. If you don't want to swim, please considering signing up to lap count. Or lap count one session and swim the other! Whatever you decide, please participate because we want to hang out with you! Every lap counts--as a team over the y

@brianddk
brianddk / README.md
Last active September 29, 2017 17:09
Clean Root

Clean Root

This discribes how to clean root a device without downloading some hackish mediafire binary.

Basic steps:

  1. Use key combo to boot to bootloader
  2. Use fastboot to unlock bootloader (wipes data)
  3. Use fastboot to boot TWRP recovery temporarily
  4. From recovery apply SuperSU
  5. Verify Root
  6. Install Ubuntu (optional)
@brianddk
brianddk / complex_quadradic.hp35s
Last active April 23, 2016 19:02
hp32s Algebra Programs
; [rights] Copyright Dan B. (brianddk) 2016 https://github.com/brianddk
; [license] Licensed under Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0
; [repo] https://gist.github.com/brianddk/43f00476eb30716dec8481814fdae073
; [tips] 18MDTTiqPM8ZEo29Cig1wfGdkLNtvyorW5
;
; hp35s Quadradic complex root solver
; Form: Ax^2 + Bx + C = 0
; Consumes/clears:
; var 'I'
; flag 10
@brianddk
brianddk / mcpe_zip.py
Last active October 27, 2015 18:21
Zip the last MCPE savegame
#!/usr/bin/env python2
#-*-coding:utf8;-*-
#qpy:2
#qpy:kivy
from __future__ import print_function
import os
import sys
import zipfile
if 'qpyplus' in os.__file__:
@brianddk
brianddk / Readme.md
Last active September 1, 2015 03:40
Gnu Privacy Guard on OS X without Administrator

Install GnuPG on OS X without Admin privilege

The current GnuPG installer requires Admin privilege to gain access to various system level directories. The goal of the HowTo is walk through the steps to get GnuPG into user space.

Steps from OS X terminal

  1. Move to home directory
  2. cd ~
  3. Download GnuPG
  4. curl -LO http://downloads.sourceforge.net/project/gpgosx/GnuPG-2.1.7.dmg
  5. curl -LO http://downloads.sourceforge.net/project/gpgosx/GnuPG-2.1.7.dmg.sig