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
Get-Process "Process Name" | Format-List Path |
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
package storage | |
import ( | |
"context" | |
_ "github.com/aws/aws-sdk-go-v2/feature/s3/manager" | |
"github.com/aws/aws-sdk-go-v2/service/s3" | |
"github.com/aws/aws-sdk-go-v2/service/s3/types" | |
_ "github.com/aws/aws-sdk-go-v2/service/s3/types" | |
) |
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
#!/bin/bash | |
set -e | |
GVERSION="1.17" | |
GFILE="go$GVERSION.linux-amd64.tar.gz" | |
GOPATH="$HOME/projects/go" | |
GOROOT="/usr/local/go" | |
if [ -d $GOROOT ]; then | |
echo "Installation directories already exist $GOROOT" |
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
APPNAME=app | |
## build: build application binary. | |
build:build-windows build-linux build-macOS | |
@echo "Build done!" | |
build-windows:build-windows-32 build-windows-64 | |
@echo "Windows Build done!" | |
build-windows-64: |
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
db.File.find({}).forEach(function(document) { | |
if (document.PublicLink.startsWith("http")) { | |
document.PublicLink = document.PublicLink.replace("http", "https") | |
} | |
db.File.save(document) | |
}) |
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
var moment = require('moment'); | |
var tokenExpirationDate = pm.collectionVariables.get("token-expiration-date"); | |
var currentTime = moment().format(); | |
if ( (tokenExpirationDate === "") || (currentTime >= tokenExpirationDate) ){ | |
pm.sendRequest({ | |
url: pm.collectionVariables.get("local-url") + '/login', | |
method: 'POST', |