1password CLI changed their schema significantly between v1 and v2.
This can cause a lot of scripts to break.
The official upgrade guide actually recommend running them in parallel.
#!/usr/bin/env python3 | |
# Usage: ./phrase_gen.py [number of words, default=5] [seperator, default='-'] | |
import random | |
import sys | |
def generate_phrase(num_choices, seperator): | |
return seperator.join(random.choices(WORDS, k=num_choices)) | |
# WORD LIST FROM http://web.archive.org/web/20091003023412/http://tothink.com/mnemonic/wordlist.txt | |
WORDS=[ |
1password CLI changed their schema significantly between v1 and v2.
This can cause a lot of scripts to break.
The official upgrade guide actually recommend running them in parallel.
Watch bitbucket pipelines until it completes or the first step fails.
Uses OSX osascript for notifications so it only works on OSX.
Requires app password: https://bitbucket.org/account/settings/app-passwords/
Using a diff patch is often times overlooked as a merge strategy because not many people know it exists. This is really useful when you have two branches that have diverged commit wise or if you only want to merge/revert diff from specific files but not cherry-pick the entire commit.
You want can use git diff of the exact things you want to merge/revert.
# eg. `AWS_PROFILE=production wait_stack create api-servers` | |
wait_stack () { | |
STEP_NAME=$1 | |
STACK_NAME=$2 | |
aws cloudformation wait stack-${STEP_NAME}-complete --stack-name ${STACK_NAME} && \ | |
osascript -e "display notification \"stack-${STEP_NAME}-complete ${STACK_NAME}\"" | |
} |
Install the JIRA CLI
brew install go-jira
If you cannot install this via brew or is on another OS than MacOS. Look at the install instructions on https://github.com/go-jira/jira
#!/usr/bin/env python | |
import csv | |
import sys | |
if len(sys.argv) < 2: | |
print("usage: csv <filename> <opt: col1,col2,...>") | |
sys.exit(1) | |
filename = sys.argv[1] |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.function.Function; | |
public class JavaLambdaCompilerExample { | |
interface ImplicitLambda1 { | |
String whatever(); | |
} | |
interface ImplicitLambda2 { |