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 response = JSON.parse(pm.response.text()); | |
var jwt = response.access_token; | |
pm.collectionVariables.set("access_token", jwt); | |
var cryptoJS = require('crypto-js') | |
function base64UrlDecode(base64Url) { | |
let base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/'); | |
switch (base64.length % 4) { |
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
cd repo2 | |
git checkout master | |
git remote add r1remote **url-of-repo1** | |
git fetch r1remote | |
git merge r1remote/master --allow-unrelated-histories | |
git remote rm r1remote | |
#https://stackoverflow.com/a/17373088 |
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
$targetFolders = @('bin', 'obj', 'packages') | |
$startPath = "." | |
# Recursively get all directories that match the target folder names, case-sensitively. | |
Get-ChildItem -Path $startPath -Directory -Recurse | Where-Object { | |
$dirName = $_.Name | |
$targetFolders.Contains($dirName) | |
} | ForEach-Object { | |
Write-Host "Deleting $($_.FullName)" |
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
dotnet build .\ASM.sln --restore --nologo -v q --property WarningLevel=0 /clp:ErrorsOnly |
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
rd \\?\"C:\path\to\folder\..." /s |
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
for /d /r . %%d in (bin,obj) do @if exist "%%d" rd /s/q "%%d" |
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
ghp_RiWwNlzPq1jpgpxPtNr2Fmmd1Ng3mH1kgHVe |
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
https://octopus.com/blog/automate-developer-machine-setup-with-chocolatey |
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 container id | |
docker ps | |
$container = <container_id> | |
# backup here the database name is neo4j, replace it with the name of your databse | |
docker exec $container neo4j-admin dump --database=neo4j --to path/to/create/dump-file.dump | |
# this will stop the database inc case the dump fails. | |
docker $container neo4j stop | |
# restore database | |
neo4j-admin load --from=path/to/your/dump-file.dump --database=graph.db --force |
NewerOlder