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
# 例1) ディレクトリの移動 | |
PS D:\Tmp> Set-Location -Path D:\Tmp\share | |
PS D:\Tmp\share> |
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
# Archive-FileToS3 archives local files which is older than specified days in a path to S3bucket with verifying integrity of uploaded S3objects. | |
# The verification method is to check if an eTag of S3object matches an eTag value calculated from a local file. | |
# Get-S3ETagHash calculates an eTag for a local file that should match the S3 eTag of the uploaded file. | |
# Credit goes to Sean Bamforth (https://gist.github.com/seanbamforth/9388507) and chrisdarth(https://gist.github.com/chrisdarth/02d030b31727d70d2c63) | |
function Archive-FileToS3 { | |
[cmdletbinding()] | |
Param ( | |
[Parameter(Mandatory=$true)] |
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
mkdir /etc/vimrc.d |
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
# Archive-FileToS3 archives local files which is older than specified days in a path to S3bucket with verifying integrity of uploaded S3objects. | |
# The verification method is to check if an eTag of S3object matches an eTag value calculated from a local file. | |
# Get-S3ETagHash calculates an eTag for a local file that should match the S3 eTag of the uploaded file. | |
# Credit goes to Sean Bamforth (https://gist.github.com/seanbamforth/9388507) and chrisdarth(https://gist.github.com/chrisdarth/02d030b31727d70d2c63) | |
function Archive-FileToS3 { | |
[cmdletbinding()] | |
Param ( | |
[Parameter(Mandatory=$true)] |