Skip to content

Instantly share code, notes, and snippets.

View pasangsherpa's full-sized avatar

Pasang Sherpa pasangsherpa

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pasangsherpa on github.
  • I am pasangsherpa (https://keybase.io/pasangsherpa) on keybase.
  • I have a public key whose fingerprint is BAE0 36DB 2DCC 8429 54F6 14E1 F11D A66B B080 EF82

To claim this, I am signing this object:

@pasangsherpa
pasangsherpa / kibana.sh
Last active August 29, 2015 14:21 — forked from toricls/kibana.sh
#!/bin/sh
### BEGIN INIT INFO
# Provides: kibana
# Required-Start: $local_fs $remote_fs $network
# Should-Start: $time
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Kibana 4
var flattenObject = function(ob) {
/*
* @gdibble: Inspired by https://gist.github.com/penguinboy/762197
* input: { 'a':{ 'b':{ 'b2':2 }, 'c':{ 'c2':2, 'c3':3 } } }
* output: { 'a.b.b2':2, 'a.c.c2':2, 'a.c.c3':3 }
*/
var toReturn = {};
for (var i in ob) {
@pasangsherpa
pasangsherpa / .bashrc
Created January 19, 2015 06:46
Aliases
alias d='cd ~/Documents'
alias p='cd ~/Documents/personal'
alias w='cd ~/Documents/work'
alias o='cd ~/Documents/open-source'
alias ~='cd ~'
#go up any number of directories. eg: '. 3' goes up 3 parent directories, '.' or '. 1' goes up 1 directory
function . {
for i in `seq ${1-1}`; do
cd ..;
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management

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