Skip to content

Instantly share code, notes, and snippets.

View bokobza's full-sized avatar
📖
head down

Jeremy Bokobza bokobza

📖
head down
View GitHub Profile
@bokobza
bokobza / Pull, build and run PRs.ps1
Last active December 23, 2018 22:34
Pull, build and run well-known Stratis FullNode forks
# all the branches: https://github.com/bokobza/StratisBitcoinFullNode/network/members
$stratis="https://github.com/stratisproject/StratisBitcoinFullNode.git","stratis"
$aleksei="https://github.com/kogot/StratisBitcoinFullNode.git","aleksei"
$andy="https://github.com/majikandy/StratisBitcoinFullNode.git","andy"
$apro="https://github.com/Aprogiena/StratisBitcoinFullNode.git","aprogiena"
$carlton="https://github.com/carlton355/StratisBitcoinFullNode.git","carlton"
$danger="https://github.com/dangershony/StratisBitcoinFullNode.git","danger"
$dangould="https://github.com/dangould/StratisBitcoinFullNode.git","dangould"
$devotion="https://github.com/dev0tion/StratisBitcoinFullNode.git","devotion"
@bokobza
bokobza / Build and run a Stratis node.ps1
Last active April 23, 2018 12:37
Build and run a Stratis node
$Repo = "https://github.com/stratisproject/StratisBitcoinFullNode.git"
$Configuration = "release" # or "debug"
$Folder_name = "StratisBitcoinFullNode3" # can be any name that you want, this will create a folder and put the code in it
$Network = "stratis" # replace with "bitcoin" for bitcoin
Write-Host "Cloning the repo..." -foregroundcolor "magenta"
git clone $Repo $Folder_name
cd $Folder_name
Write-Host "Getting submodule dependencies..." -foregroundcolor "magenta"
@bokobza
bokobza / update submodule to new branch.ps1
Last active March 13, 2021 22:58
Powershell script to update git submodule in repo and create new branch
# This script will update a submodule imported in a repo to its latest commit and push the updated repo to a new branch.
# Following that, you should be able to create a pull request and merge into your main branch.
# start configurable variables
$upstream_repo = "https://github.com/stratisproject/Breeze.git" # the repo containing the submodule
$branch = "master" # the branch to clone
$submodule_name = "StratisBitcoinFullNode" # the name of the repo that is imported as a submodule
$temp_branch_name = "submodule-update" # the name of the new branch that will be created (can leave it as is)
$temp_folder = 'submodule-update-temp-branch' # the folder where the work will be done (can leave it as is)
@bokobza
bokobza / expand-pull-requests.js
Created March 23, 2017 13:25
Expand Pull Request files so that the entire files are visible during comparison on GitHub
/* ================================================================
This code expands the files in pull requests on GitHub so that
the comparison can be made on the entire files and not just on the
lines of code that has changed.
Open developer tools in your browser and paste the following code.
This snippet look for diff expanders and clicks on them.
It takes a few seconds to run. Enjoy!
=================================================================== */
a = setInterval(function () {
var items = document.getElementsByClassName("diff-expander");