Skip to content

Instantly share code, notes, and snippets.

@abhijeetchopra
abhijeetchopra / bash_strict_mode.md
Created February 9, 2022 17:27 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@abhijeetchopra
abhijeetchopra / curl.md
Created January 27, 2020 09:26 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@abhijeetchopra
abhijeetchopra / gist:a93d477fbd1f71a0b967fb262c66cf79
Created January 27, 2020 06:36 — forked from joemiller/gist:4048941
ssh-agent handler for bashrc/profile
# ~/.profile, ~/.bashrc, (or ~/.bash_profile in cygwin and others)
##########
## joe miller, ssh-agent handling stuff
##
SSH_ENV="$HOME/.ssh/environment"
SSH_KEY_PRIVATE="$HOME/.ssh/id_rsa"
SSH_KEY_PUB="$HOME/.ssh/id_rsa.pub"
function start-agent {