Skip to content

Instantly share code, notes, and snippets.

@mburgs
mburgs / README.md
Last active August 31, 2024 19:48
Migrate cards from Trello to Github issues

Trello -> Github Issue Migration

  • create API token and paste into file
  • update repo owner and repo name values
  • download JSON export of trello board
  • move export to same directory as script, name it trello.json
  • run script - it will create issues from each card. Fields supported:
    • card name -> issue title
    • description
    • labels (only name, not colors)
  • state
@mburgs
mburgs / gist:eb4132d834aca01cde16
Created January 25, 2015 18:17
SSH different color based on host from config
ssh() {
#get last argument
for HOST; do true; done
#if it's not an alias just use white
if [[ $HOST == *"@"* ]]; then
COLOR=7
else
#read in config to find color for alias
@mburgs
mburgs / gist:8850656
Last active August 29, 2015 13:56 — forked from odrotbohm/gist:3215345

Base off this gist: https://gist.github.com/olivergierke/3215345 a small extension to avoid writing the checkout command, we store the hash in a variable then checkout the other branch and proceed with the cherry-picking:

[alias]
  last = !git log -n 1 --pretty=format:%H $1
  cp-last-to = "!sh -c 'HASH=`git last` && git checkout \"$0\" && git cherry-pick $HASH'"

So you can just do: