Skip to content

Instantly share code, notes, and snippets.

saurabh hirani saurabh-hirani

Block or report user

Report or block saurabh-hirani

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@saurabh-hirani
saurabh-hirani / sample-aws-credentials.sh
Created May 18, 2018
File path: ~/.aws/credentials
View sample-aws-credentials.sh
[profile_1]
aws_access_key_id = profile_1_access_key
aws_secret_access_key = profile_1_secret_key
[profile_2]
aws_access_key_id = profile_2_access_key
aws_secret_access_key = profile_2_secret_key
[profile_3]
aws_access_key_id = profile_3_access_key
@saurabh-hirani
saurabh-hirani / _set-aws-keys.sh
Created May 18, 2018
File path: ~/.oh-my-zsh/completions/_set-aws-keys
View _set-aws-keys.sh
#compdef set-aws-keys
_set-aws-keys() {
local curcontext="$curcontext" state line
typeset -A opt_args
_arguments '1: :->csi'
case $state in
csi)
@saurabh-hirani
saurabh-hirani / _set-aws-profile.sh
Created May 18, 2018
File path: ~/.oh-my-zsh/completions/_set-aws-profile
View _set-aws-profile.sh
#compdef set-aws-profile
_set-aws-profile() {
local curcontext="$curcontext" state line
typeset -A opt_args
_arguments '1: :->csi'
case $state in
csi)
View zsh_autocomplete_commands.sh
aws-profiles() {
cat ~/.aws/credentials | grep '\[' | grep -v '#' | tr -d '[' | tr -d ']'
}
set-aws-profile() {
local aws_profile=$1
set -x
export AWS_PROFILE=${aws_profile}
set +x
}
View set-aws-profile
#compdef set-aws-profile
_set-aws-profile() {
local curcontext="$curcontext" state line
typeset -A opt_args
_arguments '1: :->csi'
case $state in
csi)
View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
View sample-updated.tex
\documentclass[9pt]{beamer}
\usepackage[latin1]{inputenc}
\usepackage{colortbl}
\usepackage[english]{babel}
\newcommand{\myblue} [1] {{\color{blue}#1}}
\newcommand{\newauthor}[4]{
\parbox{0.26\textwidth}{
View sample.tex
\documentclass[9pt]{beamer}
\usepackage[latin1]{inputenc}
\usepackage{colortbl}
\usepackage[english]{babel}
\newcommand{\myblue} [1] {{\color{blue}#1}}
\newcommand{\newauthor}[4]{
\parbox{0.26\textwidth}{
View sample.slide
Title
Speaker name
speaker.email@id.com
* First slide
- first point
- second point
- third point
View TerraformMakefile
.PHONY: all plan apply destroy
all: help
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show this help
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
You can’t perform that action at this time.