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 / 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
@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 / 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

# display VPC ID, CIDR Block and Name
aws ec2 --output text --query 'Vpcs[*].{VpcId:VpcId,Name:Tags[?Key==`Name`].Value|[0],CidrBlock:CidrBlock}' describe-vpcs
@sagarrakshe
sagarrakshe / .vimrc
Created July 2, 2021 09:56 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@sagarrakshe
sagarrakshe / install-comodo-ssl-cert-for-nginx.rst
Created December 12, 2017 04:53 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@sagarrakshe
sagarrakshe / introrx.md
Created July 29, 2017 07:35 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@sagarrakshe
sagarrakshe / tech-lead.txt
Created July 12, 2017 09:48
Books on technical leadership
http://www.amazon.com/Leading-Geeks-Manage-Deliver-Technology/dp/0787961485
http://www.amazon.com/The-Geek-Leaders-Handbook-Backgrounds/dp/0971246823
http://www.amazon.com/Technical-Minds-Leading-Getting-Technically-Minded/dp/145158315X
http://www.amazon.com/Frustration-Free-Technical-Management-Techniques/dp/1609100352
http://www.amazon.com/Managing-Humans-Humorous-Software-Engineering/dp/159059844X
http://www.amazon.com/Becoming-Technical-Leader-Problem-Solving-Approach/dp/0932633021
http://www.amazon.fr/Talking-Tech-Leads-Novices-Practitioners/dp/150581748X
https://www.amazon.com/Chief-Technology-Officer-Responsibilities-Technical/dp/0982304048
https://www.amazon.com/CTOs-at-Work-Scott-Donaldson/dp/1430235934
@sagarrakshe
sagarrakshe / frontendDevlopmentBookmarks.md
Last active August 29, 2015 14:27 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.