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
$regions = aws ec2 describe-regions --query Regions[*].[RegionName] --output text | |
foreach ($region in $regions) { | |
Write-Output "Terminating Instances in region: '$region'..." | |
aws configure set region $region | |
$ids = aws ec2 describe-instances --query "Reservations[*].Instances[*].{ID:InstanceId}" --output text --region $region | |
$idArray = $ids.Split([Environment]::NewLine) | |
foreach($id in $idArray) { | |
aws ec2 modify-instance-attribute --no-disable-api-termination --instance-id $id --region $region |
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
// Sprite Generator (Tested on CS5) | |
// Written by Beau August 2017. | |
// DESCRIPTION: | |
// This script will take the width and height of your document, and generate | |
// a sprite based on the number of images inside the document. The images | |
// will be automatically aligned. An alignment layer will be placed behind | |
// each image in the sprite, in case one needs to be changed, modified or | |
// removed. |
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
// Export Ratioed Images (Tested on CS5) | |
// Written by Beau August 2016. | |
// DESCRIPTION: | |
// This script will hunt through second-level nested groups, looking for those that have a ratio for a name | |
// * A new folder will be created on the Desktop to house the images | |
// * It will duplicate each ratio-named group to a new document | |
// * It will do a "Reveal all" on the new document to make sure that the image will be trimmed correctly | |
// * The transparent pixels will then be trimmed | |
// * The file is saved to the Desktop folder at max quality in JPEG format. |