Skip to content

Instantly share code, notes, and snippets.

@ibiqlik
ibiqlik / bumpme
Last active August 19, 2019 13:17
concourse testing
Mon Aug 19 13:17:37 UTC 2019
@ibiqlik
ibiqlik / whoami.yaml
Last active September 1, 2020 07:07
whoami k8s
---
kind: Deployment
apiVersion: apps/v1
metadata:
namespace: default
name: whoami
labels:
app: whoami
spec:
@ibiqlik
ibiqlik / downloadLatestRelease.md
Created October 7, 2020 07:14
Download latest GitHub release

Required:

  • curl
  • jq
REPO="actions/runner" \
IDENTIFIER="linux-x64" \
curl -O -Ls $(curl -s "https://api.github.com/repos/${REPO}/releases/latest" | jq -r '.assets[] | select(.name | contains("'"${IDENTIFIER}"'")) | .browser_download_url')
@ibiqlik
ibiqlik / makefile
Created November 5, 2020 22:00
Makefile bump git tag and push
RELEASE_TYPE ?= patch
LATEST_TAG ?= $(shell git ls-remote -q --tags --sort=-v:refname | head -n1 | awk '{ print $2 }' | sed 's/refs\/tags\///g')
LATEST_SHA ?= $(shell git rev-parse origin/main)
NEW_TAG ?= $(shell docker run -it --rm alpine/semver semver -c -i $(RELEASE_TYPE) $(LATEST_TAG))
release:
git tag "v$(NEW_TAG)" $(LATEST_SHA)
git push origin "v$(NEW_TAG)"
@ibiqlik
ibiqlik / oneliners.md
Last active January 13, 2022 16:09
Oneliners

Docker/K8s

Speedtest

docker run -it --rm --entrypoint sh node -c "npx -y speed-cloudflare-cli"

Install K9s

wget https://github.com/derailed/k9s/releases/download/v0.24.9/k9s_Linux_x86_64.tar.gz && tar xzvf k9s_Linux_x86_64.tar.gz && sudo mv k9s /usr/local/bin/k9s