-
Install Powershell 6.x on Mac
brew cask install powershell
-
Install the .NET Core 2.1 SDK (not runtime)
-
Install the AWSLambdaPSCore module.
Install-Module AWSLambdaPSCore -Scope CurrentUser
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
AWSTemplateFormatVersion: "2010-09-09" | |
Description: A Schedule to invoke a Lambda | |
Parameters: | |
LambdaArn: | |
Type: String | |
Description: ARN of the lambda to be invoked | |
Resources: | |
InvokeLambdaRole: | |
Type: AWS::IAM::Role | |
Properties: |
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
$lambda = 'test-ps-lambda' | |
Install-Module -Name AWS.Tools.Installer, AWSLambdaPSCore | |
Install-AWSToolsModule -Name Common, CloudWatchLogs, Lambda -Cleanup | |
New-AWSPowerShellLambda -Template Basic -ScriptName TestLambda -Directory testlambda | |
# Publish Lambda | |
$publishParams = @{ | |
ScriptPath = ".\TestLambda.ps1" |
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
FROM mcr.microsoft.com/powershell:6.2.3-alpine-3.8 | |
RUN apk add --no-cache icu-libs | |
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \ | |
LC_ALL=en_US.UTF-8 \ | |
LANG=en_US.UTF-8 | |
# Install .NET Core SDK | |
ENV DOTNET_SDK_VERSION 2.1.803 |
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
#Requires -Module @{ModuleName="AWSPowerShell";ModuleVersion="3.3.450.0"} | |
Write-Output -InputObject 'Delete all Default VPCs' | |
$AllRegions = Get-EC2Region | |
ForEach ($region in $AllRegions.RegionName) { | |
Write-Output -InputObject "Searching $region" | |
$defaultVpc = Get-EC2VPC -Filter @{name='isDefault'; Value='true'} -Region $region | |
if ($defaultVpc) { | |
Write-Output -InputObject "Found default VPC $($defaultVPC.VpcId) $($defaultVPC.CidrBlock) ... deleting" | |
$VPCFilter = New-Object -TypeName Amazon.EC2.Model.Filter |
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
[Unit] | |
Description=Ephemeral disk and swap setup script | |
[Service] | |
ExecStart=/usr/local/sbin/mount-instance-store.sh | |
[Install] | |
WantedBy=multi-user.target |
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
<# | |
.Synopsis | |
Creates an custom ErrorRecord that can be used to report a terminating or non-terminating error. | |
.Description | |
Creates an custom ErrorRecord that can be used to report a terminating or non-terminating error. | |
.Parameter Exception | |
The Exception that will be associated with the ErrorRecord. | |
An option for photos one has already uploaded in LRCC even after editing without loosing the non-destructive changes.
It's a nice work around, but I would prefer to have a re-naming function in LRCC of course.
Note that any image deleted from Lightroom CC shared on a web album with comments will lose the comments. In this case I put the comments into the description.
This idea was from Hans on the Photoshop Feedback site.
Based upon https://www.scanyourentirelife.com/member/courses/organizing-digitals/naming-your-scanned-photos/
YYYY-MM-DD-People_Name-Event-Location-(Scanner Software-RAW-DPI-Color Bit-Filters/Settings)-FILM-XXXXX.tif
- Dash Separates Items in description
- Spaces replaced with Underscores
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 | |
# Open the following URL in your Browser, and log in using your account: https://www.dropbox.com/developers/apps | |
# Click on "Create App", then select "Dropbox API app" | |
# Now go on with the configuration, choosing the app permissions and access restrictions to your DropBox folder | |
# Enter the "App Name" that you prefer | |
# Now, click on the "Create App" button. | |
# When your new App is successfully created, please click on the Generate button | |
# under the 'Generated access token' section, then copy and paste the new access token here: |