Skip to content

Instantly share code, notes, and snippets.

@05nelsonm
05nelsonm / WebViewProxyOverride.md
Last active October 7, 2021 15:23
WebViewProxyOverride

Class that uses the androidx.webkit library to override device WebView's proxy settings such that application with Tor bundled into it can connect to hidden services for serving html.

/*
 *  Copyright 2021 Matthew Nelson
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
@05nelsonm
05nelsonm / HelpfulCoroutineResources.md
Created June 25, 2020 13:40
My list of helpful resources as it relates to using Kotlin Coroutines

Helpful Coroutine Resources (for me anyway)

@05nelsonm
05nelsonm / dagger_library_encapsulation.kt
Last active May 24, 2020 22:16
Library Dagger Implementation
//////////// Library user's Application class ////////
class App: Application() {
override fun onCreate() {
initMyLibrary()
}
#### Move your bitcoind data from the Dojo's bitcoind docker container, to outside of the container on your host machine ####
## Written for use with Ubuntu Desktop 18.04 LTS & Dojo v1.0.0 ##
## Start Dojo
$ cd /path/to/docker/my-dojo/ && sudo ./dojo.sh start
## Login to the bitcoind docker container as root
$ sudo docker exec -u root -it bitcoind /bin/bash
#### Move over block data to your Dojo ####
## If you wanted to copy over the data instead of moving it, see --> https://gist.github.com/05nelsonm/96ad8da7724de3a66f44d6c2d70b361c
## Written for Ubuntu Desktop 18.04 LTS & Dojo v1.0.0 ##
## Start Dojo
$ cd /path/to/docker/my-dojo/ && sudo ./dojo.sh start
## Login to the bitcoind docker container as root
## Getting LND working with Dojo
## Written for use with Ubuntu Desktop 18.04 LTS & Dojo v1.0.0 ##
## Start Dojo
$ cd /path/to/docker/my-dojo/ && sudo ./dojo.sh start
## Login to the bitcoind docker container as root
$ sudo docker exec -u root -it bitcoind /bin/bash
All credit goes to Mark Engelberg (https://github.com/Engelberg) for figuring this out!
His original writeup can be found at:
https://gist.github.com/Engelberg/aac9da2f27b723683982d187bd4d5ea4
Thought I'd just write more of a follow along tutorial for the less technical
## Written for use with Ubuntu Desktop 18.04 LTS & Dojo v1.0.0 ##
## Stop your Dojo
@05nelsonm
05nelsonm / Copy bitcoind data to Dojo bitcoind container
Last active September 13, 2022 15:54
Samourai Dojo Copy Node Data
#### Copy over block data to your Dojo ####
## If you wanted to MOVE over the data instead of copying it, see --> https://gist.github.com/05nelsonm/5c3607a3ad7d138d908e8a3d985a0df0
## Written for use with Ubuntu Desktop 18.04 LTS & Dojo v1.0.0 ##
## On your machine running Dojo, open 2 terminals, we'll call them [terminal A] & [terminal Doc]
## In [terminal A] Check the size of your .bitcoin directory
$ df -hf ~/.bitcoin