Skip to content

Instantly share code, notes, and snippets.

View mertant's full-sized avatar

T. Mertanen mertant

View GitHub Profile
@mertant
mertant / github_cli_tips.sh
Last active March 1, 2024 12:39
GitHub CLI cheat sheet
## Install (MacOS); Check version is >= 2.43 as the --json option was added in https://github.com/cli/cli/pull/8474
brew install gh
gh --version
## Run in repo root...
# Browse drafts
gh release list --limit 25 --json tagName,createdAt,isDraft
# List drafts older than 1 week (tags only, oldest first)
@mertant
mertant / fs2-kafka-scalapb.scala
Last active January 22, 2024 20:10
FS2 Kafka + ScalaPB example
/* Dependencies:
Seq(
"co.fs2" %% "fs2-core" % "3.9.4",
"com.github.fd4s" %% "fs2-kafka" % "3.2.0",
"com.thesamet.scalapb" %% "compilerplugin" % "0.11.15",
"com.thesamet.scalapb" %% "scalapb-runtime" % "0.11.15",
)
*/
#### Zsh general utils/aliases
#
# Add to your .zshrc, or other terminal config file (may or may not be compatible with non-Zsh shells)
#
#### Constants
# Your text editor program. Replace with kate or whatever application you prefer.
#### Git command aliases
#
# Add to your .zshrc or other terminal config file
#
## Frequently used commands:
alias gis="git status"
alias gif="git fetch"
alias girbom="git rebase origin/master"