This file contains hidden or 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
| var hashKey = "id"; | |
| var rangeKey = null; | |
| var tableName = "alert"; | |
| var scanParams = { | |
| TableName: tableName, | |
| }; | |
| docClient.scan(scanParams, function(err, data) { | |
| if (err) ppJson(err); // an error occurred |
This file contains hidden or 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
| /* | |
| In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
| server, but for some reason omit a client connecting to it. I added an | |
| example at the bottom. | |
| Save the following server in example.js: | |
| */ | |
| var net = require('net'); |
This file contains hidden or 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
| *.tmp | |
| # Word temporary | |
| ~$*.doc* | |
| # Excel temporary | |
| ~$*.xls* | |
| # Excel Backup File | |
| *.xlk |
This file contains hidden or 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
| # Create a new repository on the command line | |
| touch README.md | |
| git init | |
| git add README.md | |
| git commit -m "first commit" | |
| git remote add origin https://github.com/c0ldlimit/vimcolors.git | |
| git push -u origin master | |
| # Push an existing repository from the command line |
This file contains hidden or 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
| #/bin/bash | |
| red=`tput setaf 1` | |
| green=`tput setaf 2` | |
| yellow=`tput setaf 3` | |
| upstream=$1 | |
| branch=$2 | |
| # checks if there is a remote repo called upstream | |
| check_upstream() { |
This file contains hidden or 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
| 1. Copy 'git-sync-fork' script code from gist | |
| 2. Create a file called 'git-sync-fork' in any 'bin' directory in your $PATH | |
| 3. Paste script into this new file 'git-sync-fork' and save | |
| 4. Make the file executable `chmod +x git-sync-fork` | |
| 5. Run the script inside your locally forked git repo | |
| Example: | |
| git-sync-fork upstream origin |