Skip to content

Instantly share code, notes, and snippets.

@patrickwolf
patrickwolf / git_rebase_two_repos.txt
Created September 9, 2022 12:25
How to merge Git repos with common code BUT NO common ancestry
git init
git remote add new https://github.com/patrickwolf/sandbox_repoNew
git remote add old https://github.com/patrickwolf/sandbox_repoRoot
git fetch new
git fetch old
echo "first" > readme.md
git add readme.md
git commit -m "first"
git branch combined
git rebase --rebase-merges --onto 9086ffd 80ece84 combined
Verifying that "patrickmwolf.id" is my Blockstack ID. https://onename.com/patrickmwolf
@patrickwolf
patrickwolf / seq_lib_performance_test.py
Last active May 20, 2016 02:29
Quick script to compare performance of sequence detection libraries
'''
Quick script to compare performance of sequence detection libraries
Created on Aug 26, 2014
Refernced libraries:
https://github.com/4degrees/clique
http://pyseq.rsgalloway.com/
@author: patrick.wolf
'''
import time