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
| MIT License | |
| Copyright (c) 2020 Rithvik Vibhu | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
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
| 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 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
| make -rpn | sed -n -e '/^$/ { n ; /^[^ .#][^ ]*:/ { s/:.*$// ; p ; } ; }' | sort |
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
| { | |
| "version": "0.2.0", | |
| "inputs": [ | |
| { | |
| "id": "echoPrompt", | |
| "description": "Please enter a function name to test", | |
| "default": "myFunction", | |
| "type": "promptString" | |
| } | |
| ], |
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 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 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
| 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 = { |