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 aws = require('aws-sdk') | |
aws.config.update({accessKeyId: nconf.get('AWS_KEY'), | |
secretAccessKey: nconf.get('AWS_SECRET')}); | |
var STS = new aws.STS({apiVersion: '2011-06-15'}); | |
var tempCred = STS.getFederationToken( | |
{'Name': token, 'Policy': JSON.stringify(policy), 'DurationSeconds': 90000}, | |
function (err, data) { |
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/sh | |
# Refuse to commit files with the string NOCOMMIT, debugger, or merge markers present. | |
# | |
files=$(git diff-index --name-status --cached HEAD | grep -v ^D | cut -c3-) | |
if [ "$files" != "" ] | |
then | |
for f in $files | |
do |
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 | |
# Source of most of this code : http://stackoverflow.com/questions/5669621/git-find-out-which-files-have-had-the-most-commits | |
if [[ $# -ne 1 ]]; then | |
echo " | |
Usage : Please enter a single number argument to see this number of the highest contention ( most commited ) | |
files in the current git repository. | |
" | |
exit 4 |
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
After playing around a bit, I settled on : | |
0 0 5 29 2 Mon | |
Doing something like 30 of Feburary threw an error. | |
The next three occurrences of the above are : | |
29/02/2044 05:00:00 | |
29/02/2072 05:00:00 | |
29/02/2112 05:00:00 |