Skip to content

Instantly share code, notes, and snippets.

Dhruva Sagar dhruvasagar

Block or report user

Report or block dhruvasagar

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
View dirsh.zsh
#!/bin/bash
# GistID: 87c59acf3b53cf1911bc6e3a8055afbf
_call_func () {
declare -f -F "$1" && $1
}
typeset -A _dirsh_cache
_dirsh_hook () {
View keybase.md

Keybase proof

I hereby claim:

  • I am dhruvasagar on github.
  • I am dhruvasagar (https://keybase.io/dhruvasagar) on keybase.
  • I have a public key ASBD9lLidgpCJG8sfmBDLu6RRxz15Kn6koyCJspFa_jQWgo

To claim this, I am signing this object:

@dhruvasagar
dhruvasagar / zshrc
Last active Apr 14, 2019
Simple trick to profile ZSH
View zshrc
if [[ "$ZPROF" = true ]]; then
zmodload zsh/zprof
fi
# ... your ZSHRC with all your scripts
if [[ "$ZPROF" = true ]]; then
zprof
fi
View kube-on-aws.sh
if [ ! -x "$(command -v aws)" ]; then
echo 'Please install following dependencies: '
echo '* jq'
echo '* cfssl'
echo '* aws cli'
exit 1
fi
usage () {
echo "Usage: $0 [tag]"
View pairify.vim
if exists('g:loaded_pairify')
finish
endif
let g:loaded_pairify = 1
let g:pairs = {
\ "left": {
\ "[": "]",
\ "(": ")",
\ "{": "}",
View WebRTC Outline.md
  • Introduction to WebRTC
  • Why WebRTC ?
  • WebRTC underpinnings : Signaling, STUN, TURN
  • Open Source Libraries & Tools available
  • Building your own Signaling Server
  • Demo
View .gitcommit_template
# Why is this change necessary ?
# How does it address the issue ?
# What side effects does this change have ?
# References
View mappings.vim
nnoremap g> <ESC>vap:Twrite bottom-right<CR>
xnoremap g> :Twrite bottom-right<CR>
View 116
{
"customer_name": "Girish ",
"customer_phone_number": "8345657321",
"amount": 199,
"placement_date": "16/06/2016",
"line_items": [
{
"variant_sku": "TIWD2571_M",
"quantity": 1,
"lmdn_enabled": true,
You can’t perform that action at this time.