Skip to content

Instantly share code, notes, and snippets.

View roelds's full-sized avatar
:shipit:
(╯°□°)╯︵ ┻━┻

RoelDS roelds

:shipit:
(╯°□°)╯︵ ┻━┻
  • 17:54 (UTC -05:00)
View GitHub Profile
@roelds
roelds / build_brotli_win.md
Created January 5, 2023 00:30
HowTo Build Brotli Windows
@roelds
roelds / get_latest_release_tagname.sh
Last active September 9, 2023 18:17
Shell - Get latest release tag name from GitLab or GitHub
# for GitHub:
# use this for name:
VERNAME=$(wget -q -O- https://api.github.com/repos/roelds/litaf/releases/latest | jq -r '.name')
# or this for tag name, if jq installed:
VERTAG=$(wget -q -O- https://api.github.com/repos/roelds/litaf/releases/latest | jq -r '.tag_name')
# or if jq not installed:
curl --silent "https://api.github.com/repos/roelds/litaf/releases/latest" | grep -Po "(?<=\"tag_name\": \").*(?=\")"
# latest release tag name, for GitLab:
curl -s https://gitlab.com/gitlab-org/cli/-/releases/permalink/latest | grep -m1 -Eo "releases/[^/]+\"" | awk 'BEGIN { FS="/" } {print $2}' | rev | cut -c2- | rev
@roelds
roelds / forkware.yaml
Created January 1, 2023 07:55
forkware - yaml : used by forkware - fish shell script
# forkware.yaml
# hosted is github or gitlab
# latest or tag, clone or fork
# n is new line after, r is replace line, b is new line before, i is insert, a is append
---
therepo: prometheus/prometheus
hosted: github
release: latest
method: clone
files:
@roelds
roelds / forkware.sh
Last active January 1, 2023 06:45
forkware - fish shell script : local clone latest git repo for line changes via yaml
#!/usr/bin/fish
#v1.0
echo $argv
set src (yq '.therepo' forkware.yaml)
set host (yq '.hosted' forkware.yaml)
set rel (yq '.release' forkware.yaml)
set meth (yq '.method' forkware.yaml)
echo $src
@roelds
roelds / keybase.md
Created December 4, 2022 01:59
keybase.md

Keybase proof

I hereby claim:

  • I am roelds on github.
  • I am roelds (https://keybase.io/roelds) on keybase.
  • I have a public key ASB7yu-JsK3LuohfgbPbkgUTq2Puwwp6xEM8cGVBZWGl8go

To claim this, I am signing this object: