Skip to content

Instantly share code, notes, and snippets.

View notmandatory's full-sized avatar

Steve Myers notmandatory

View GitHub Profile
use bdk::blockchain::compact_filters::{Mempool, Peer};
use bitcoin::Network;
use std::sync::Arc;
use bdk::bitcoin::network::constants::ServiceFlags;
use trust_dns_resolver::config::*;
use trust_dns_resolver::Resolver;
// add to [dev-dependencies] trust-dns-resolver = "^0.20"
// fix peer version timeout to 5 seconds (from None) and handle unexpected response
git clone git@github.com:bitcoindevkit/BDWallet.git
cd BDWallet
git filter-repo --analyze
more .git/filter-repo/analysis/blob-shas-and-paths.txt
git filter-repo --force --invert-paths --path-glob '*.aar' --path-glob '*/mountain_cover.jpg' --path-glob '*/mountain_background.jpg' --path-glob '*/temp_graph.png'
git gc
git remote add origin git@github.com:bitcoindevkit/BDWallet.git
git push origin --force 'refs/heads/*'
## to fix fork git@github.com:notmandatory/BDWallet.git
@notmandatory
notmandatory / gh_manual_merge_pr.txt
Last active March 24, 2022 07:37
Manual merge PRs to preserve commit signatures
# from target repo clone directory
# make sure you're in sync with origin
git checkout master
git fetch --all
git pull upstream master
# fetch PR to FETCH_HEAD
git fetch upstream pull/<PR#>/head
# double check the changes
git diff master FETCH_HEAD
# merge to master and push to upstream (github)
@notmandatory
notmandatory / iCal-BDK-Team-Meeting-Recurring.ics
Created November 3, 2020 21:14
BDK Team Meeting Recurring Calendar File
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
VERSION:2.0
X-WR-CALNAME:BDK Team Meeting
METHOD:PUBLISH
PRODID:-//Apple Inc.//Mac OS X 10.15.7//EN
BEGIN:VEVENT
TRANSP:OPAQUE
DTEND:20201117T210000Z
RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=TU;WKST=SU