Skip to content

Instantly share code, notes, and snippets.

View ankushagarwal's full-sized avatar
💭
🙄

Ankush Agarwal ankushagarwal

💭
🙄
  • Facebook
  • San Francisco
View GitHub Profile
@ankushagarwal
ankushagarwal / osx.md
Last active August 29, 2015 13:56 — forked from g3d/gist:2709563
Mac OS X setup
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@ankushagarwal
ankushagarwal / ruby tutorial.md
Last active August 29, 2015 13:57
Rubies and Rvm

Managing rubies and rvm on OSX

Get rid of rvm

Unistall rvm ( if there exists one )

rm -rf ~/.rvm

Fresh install rvm

@ankushagarwal
ankushagarwal / hello.py
Created March 12, 2014 01:36
Python Hello World
print "Hello, World!"

Keybase proof

I hereby claim:

  • I am ankushagarwal on github.
  • I am ankushio (https://keybase.io/ankushio) on keybase.
  • I have a public key whose fingerprint is 1010 0385 B018 8F88 7028 5D8E AA51 4AED F0C7 E266

To claim this, I am signing this object:

@ankushagarwal
ankushagarwal / sleepsort.bash
Created December 26, 2014 06:58
Sleep Sort!!
#!/bin/bash
function f() {
sleep "$1"
echo "$1"
}
while [ -n "$1" ]
do
f "$1" &
shift
done

Keybase proof

I hereby claim:

  • I am ankushagarwal on github.
  • I am ankush (https://keybase.io/ankush) on keybase.
  • I have a public key whose fingerprint is 9A19 8C3D 67BA BF7E 5351 1F7B EDB0 8506 732B 28D9

To claim this, I am signing this object:

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
apiVersion: v1
kind: Pod
metadata:
name: cluster-test-maintenance
labels:
app: cluster-test
spec:
nodeSelector:
nodeType: clustertest
restartPolicy: Never
apiVersion: v1
kind: Pod
metadata:
name: task-pv-pod
spec:
volumes:
- name: task-pv-storage
persistentVolumeClaim:
claimName: storage-volume-libra-testnet-prometheus-server-0
containers: