Skip to content

Instantly share code, notes, and snippets.

@douglascayers
douglascayers / github-cascade-backmerge.sh
Last active August 1, 2023 02:23
Iteratively backmerges pull requests in sequence using the GitHub and Git CLIs
#!/bin/bash
# For when you have a train of pull requests lined up like A -> B -> C -> D
# and you make a change to base D that you now want backmerged to C then B then A.
set -e
# ----------------------------------------------------------------------------
# List the pull request number (e.g. 42) in order that the backmerges
@pozil
pozil / async-basics.js
Created June 15, 2020 18:35
Asynchronous JavaScript Cheatsheet
function callbackExample() {
setTimeout(_callback, 1000);
console.log('This appears instantaneously');
}
function promiseExample() {
_longRunningOperation()
.then(() => {
console.log('This appears later');
@aeosys
aeosys / README.md
Last active June 15, 2022 08:33
Use GitHub in SourceTree with SSO enabled personal access token

Use GitHub in SourceTree with SSO enabled personal access token

Prerequisites

  • Git with credential manager
  • Do not add GitHub account to SourceTree

Steps

  1. Create new token in https://github.com/settings/tokens
  2. Select "repo" scope
  3. Create token and copy it to clipboard