Skip to content

Instantly share code, notes, and snippets.

View sagarrakshe's full-sized avatar
🎯
Focusing

Sagar Rakshe sagarrakshe

🎯
Focusing
View GitHub Profile
@sagarrakshe
sagarrakshe / jq-cheetsheet.md
Created September 20, 2022 06:01 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@sagarrakshe
sagarrakshe / git-branch-protection.md
Created December 20, 2022 09:41 — forked from edudobay/git-branch-protection.md
Command-line script for protecting/unprotecting branches in a GitHub repository

(To be improved)

Requirements

  • httpie (which provides the http command) — pip install httpie

Setup

  • Save the git-branch-protection.sh as git-branch-protection somewhere in your path (something like ~/bin or ~/.local/bin if you already use it)
  • Generate a GitHub token and save it as ~/.config/github_token.
@sagarrakshe
sagarrakshe / dummy0.netdev
Created July 9, 2024 05:27 — forked from kquinsland/dummy0.netdev
How to get consul-agent and systemd.resolvd to co-exist peicefully and still be able to resolve *.consul hostsnames from within docker
# Creates a "dummy" network interface
# we'll configure this interface with a link-local address
# See: https://www.freedesktop.org/software/systemd/man/systemd.netdev.html
##
[NetDev]
Name=dummy0
Kind=dummy