This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Info | |
b=$(tput bold) | |
n=$(tput sgr0) | |
help="Clones all repositories from Github of a given owner | |
\nchecking out specific branch and optionally filtering by a topic. | |
\n\n${b}Requires Github CLI (https://cli.github.com) to be installed!${n} | |
\n\n${b}USAGE${n}\n $0 [-h] -o OWNER -b BRANCH -t TOPIC -d DIR\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# !! Script depends on jq !! | |
# https://stedolan.github.io/jq/ | |
# Updates the default branch on all repositories on Codecov using the API (v4.6) | |
# https://docs.codecov.com/reference/authorization | |
token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx # Your API token here | |
platform=gh # { gh - Github | gl - Gitlab | bb - Bitbucket } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PSQL DB cursor mock | |
class Cursor: | |
def __init__(self): | |
print('cursor: BEGIN') | |
def commit(self): | |
print('cursor: COMMIT') | |
def rollback(self): | |
print('cursor: ROLLBACK') | |
def close(self): | |
print('cursor: CLOSE') |