This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Retrieve a data field from a specific DOM element. | |
// <label id="userid_1" data-userid="[email protected]"> Selected email: </label> | |
$("#userid_1").data('userid'); | |
// Use of localStorage key-value pairs | |
localStorage.setItem("gh_user", $("#gh_user_index").val()); | |
localStorage.getItem("gh_user"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Encrypt using someone's public key. You should have earlier added the | |
# recipient's public key to your ring. | |
$ gpg --output output-file.gpg --encrypt --recipient [email protected] input-file.txt | |
# Decrypting a file encrypted with your public key | |
$ gpg --output doc --decrypt doc.gpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd && rsync -av --progress stuff /Volumes/Karra\ Passport/ # Backup stuff to external hdd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Branch manipulation commands | |
git checkout -b newbranch # create a new branch | |
git push -u origin newbranch # Push the branch to remote origin | |
git branch --track branch-name origin/branch-name # start tracking new remote branch | |
git checkout master | |
git merge newbranch # merge branch to master | |
git rebase master newbrach # bring newbranch uptodate with changes in master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hari: https://github.com/interviewstreet/hackerrank/issues/assigned/sp2hari?labels=&milestone=18&page=1&state=open | |
Isaac: https://github.com/interviewstreet/hackerrank/issues/assigned/isaacjohnwesley?labels=&milestone=18&page=1&state=open | |
Akshay: https://github.com/interviewstreet/hackerrank/issues/assigned/akshay3004?labels=&milestone=18&page=1&state=open | |
Anil: https://github.com/interviewstreet/hackerrank/issues/assigned/anilgulecha?labels=&milestone=18&page=1&state=open |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// A bunch of functions to explore the small world database. This is | |
// meant to be loaded into the mongo shell so that objects can be | |
// explored with minimal typing . | |
// | |
// Usage: There are two ways to use this: | |
// | |
// 1. Eval the script at mongo launch time itself: | |
// | |
// $ mongo sw.js --shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/webpy/webpy/blob/master/web/utils.py#L52 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch test/gold/data/bb/99-bbdb.v6.utah.non-utf8' --prune-empty --tag-name-filter cat -- --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find test -type f -print0 | xargs -0 sed -i .bak 's/GNU Affero General Public License/GNU Affero GPL (GNU AGPL)/g' |