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
Planning stack1 | |
Plan: 1 to add, 2 to change, 3 to destroy. | |
Planning stack2 | |
Plan: 4 to add, 5 to change, 6 to destroy. |
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
┌─[ryan@host] - [~] - [Thu Jun 22, 14:13] | |
└─[$] <> cat new-policy.hcl | |
path "secrets/data/env1/app1/*" { | |
capabilities = ["create", "read", "update", "delete", "list"] | |
} | |
path "secrets/data/env2/app2/*" { | |
capabilities = ["create", "read", "update", "delete", "list"] | |
} | |
┌─[ryan@host] - [~] - [Thu Jun 22, 14:13] |
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
┌─[ryan@host] - [~] - [Wed Oct 05, 16:58] | |
└─[$] <> pip install pipenv | |
Collecting pipenv | |
Downloading pipenv-2022.10.4-py2.py3-none-any.whl (3.3 MB) | |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 8.9 MB/s eta 0:00:00 | |
Requirement already satisfied: virtualenv-clone>=0.2.5 in ./.pyenv/versions/3.9.6/lib/python3.9/site-packages (from pipenv) (0.5.7) | |
Requirement already satisfied: setuptools>=36.2.1 in ./.pyenv/versions/3.9.6/lib/python3.9/site-packages (from pipenv) (57.5.0) | |
Requirement already satisfied: certifi in ./.pyenv/versions/3.9.6/lib/python3.9/site-packages (from pipenv) (2022.6.15) | |
Requirement already satisfied: virtualenv in ./.pyenv/versions/3.9.6/lib/python3.9/site-packages (from pipenv) (20.15.0) | |
Requirement already satisfied: filelock<4,>=3.2 in ./.pyenv/versions/3.9.6/lib/python3.9/site-packages (from virtualenv->pipenv) (3.7.1) |
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
┌─[ryan@host] - [~] - [Wed Oct 05, 16:58] | |
└─[$] <> pip uninstall pipenv | |
Found existing installation: pipenv 2022.9.20 | |
Uninstalling pipenv-2022.9.20: | |
Would remove: | |
/Users/ryan/.pyenv/versions/3.9.6/bin/pipenv | |
/Users/ryan/.pyenv/versions/3.9.6/bin/pipenv-resolver | |
/Users/ryan/.pyenv/versions/3.9.6/lib/python3.9/site-packages/pipenv-2022.9.20.dist-info/* | |
/Users/ryan/.pyenv/versions/3.9.6/lib/python3.9/site-packages/pipenv/* | |
Proceed (Y/n)? Y |
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
(my-app) ┌─[ryan@host] - [~/Documents/git/my-repo] - [Wed Oct 05, 14:29] | |
└─[$] pipfile2req Pipfile.lock > requirements.txt | |
Traceback (most recent call last): | |
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/bin/pipfile2req", line 8, in | |
sys.exit(main()) | |
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/lib/python3.9/site-packages/pipfile2req/init.py", line 112, in main | |
lines = convert_pipfile_or_lock( | |
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/lib/python3.9/site-packages/pipfile2req/init.py", line 96, in convert_pipfile_or_lock | |
lines = [ | |
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/lib/python3.9/site-packages/pipfile2req/init.py", line 97, in |
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
..[ryan@server] - [~/my-project] - [Wed May 11, 02:42] | |
..[$] <( (git)-[main]-)> terraform fmt -check -diff | |
tf_code.tf | |
--- old/tf_code.tf | |
+++ new/tf_code.tf | |
@@ -5,5 +5,5 @@ | |
resource "aws_s3_bucket" "tf_course" { | |
bucket = "tf-course-20220511" | |
acl = "private"acl = "private" |
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
Write-Host "$((get-date).ToString()) - Attempting to retrieve account $username on platform $platformID, address $Address in safe $Safename on $CyberArkHost" | |
$Account_URI = "https://$CyberArkHost/PasswordVault/api/Accounts?search=$username $platformID $Safename" | |
$AccountHeader = @{'accept'='application/json';'content-type'='application/json';'Authorization'=$Token} | |
$getAccountResponse = Invoke-WebRequest -Uri $Account_URI -Method GET -Body $Account_Body -Headers $AccountHeader -UseBasicParsing | |
return $getAccountResponse |
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
Add-Type -AssemblyName System.Web | |
Write-Host "$((get-date).ToString()) - Attempting to create account $username on platform $platformID, address $Address in safe $Safename on $CyberArkHost" | |
$Account_URI = "https://$CyberArkHost/PasswordVault/api/Accounts" | |
$AccountHeader = @{'accept'='application/json';'content-type'='application/json';'Authorization'=$Token} | |
$Account_Body="{ | |
""address"":""$address"", |
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
Add-Type -AssemblyName System.Web | |
$cred = Get-Credential -Message "Please enter the credentials for logging into CyberArk host cyberarkhost.com" -UserName $env:UserName | |
$AUTH_URI = "https://cyberarkhost.com/PasswordVault/API/auth/LDAP/Logon" | |
$Headers = @{'accept'='application/json';'content-type'='application/json'} | |
$body=@{ | |
username = "$($cred.UserName)" | |
password= "$($cred.GetNetworkCredential().password)" | |
} |
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
ld_db_name.collection to disk: error reading collection: Failed to parse: { find: "collection", skip: 0, snapshot: true, $db: "old_db_name" }. Unrecognized field 'snapshot'. |