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
function pad(toPad, padBy = 2, padWith = '0') { | |
return ('' + toPad).length < padBy ? `${pad(padWith + toPad, padBy, padWith)}` : toPad; | |
} | |
function secondsToHMS(totalSeconds) { | |
var hours = totalSeconds / 3600 - totalSeconds % 3600 / 3600; | |
var minutes = ((totalSeconds % 3600 / 3600) * 60) - ((totalSeconds % 3600 / 3600) * 60) % 1; | |
var seconds = totalSeconds % 60; | |
return `${pad(hours)}:${pad(minutes)}:${pad(seconds)}`; | |
} |
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
make -rpn | sed -n -e '/^$/ { n ; /^[^ .#][^ ]*:/ { s/:.*$// ; p ; } ; }' | sort |
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
{ | |
"version": "0.2.0", | |
"inputs": [ | |
{ | |
"id": "echoPrompt", | |
"description": "Please enter a function name to test", | |
"default": "myFunction", | |
"type": "promptString" | |
} | |
], |
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
# Create a Take Ownership button in the mac right click menu in Finder under "Quick Actions" | |
# To create the automator script | |
# Open Automator by going to Finder -> Applications -> Automator.app | |
# Click "New Document" | |
# Select "Quick Action" then click "Choose" | |
# In the right panel make sure the following is selected: |
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
const AWS = require('aws-sdk'); | |
const ssm = new AWS.SSM(); | |
function getRegionFromServiceRegionResponse(ServiceRegionResponse) { | |
return ServiceRegionResponse.Parameters | |
.map((serviceRegion => serviceRegion.Value)); | |
} | |
function getServiceRegions(serviceName) { | |
let params = { |