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
ryan@server:~$ curl -i -X POST https://swift.server.com/auth/v3/auth/tokens -d '{"auth":{"identity":{"methods":["password"],"password":{"user":{"name":"user","domain":{"name":"Default"},"password":"password"}}}}}' | |
HTTP/1.1 200 OK | |
X-Subject-Token: AUTH_txe5555555555555555555555555555555 | |
Content-Length: 1152 | |
Content-Type: application/json; charset=UTF-8 | |
X-Trans-Id: txe55555555555555555555-5555555555 | |
X-Openstack-Request-Id: txe55555555555555555555-5555555555 | |
Date: Tue, 24 Aug 2021 19:59:09 GMT | |
{ |
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
..[ryan@server] - [~/Downloads/dev] - [Thu Aug 05, 09:46] | |
..[$] <()> export VAULT_ADDR=https://vault.server.com:8200 | |
..[ryan@server] - [~/Downloads/dev] - [Thu Aug 05, 09:46] | |
..[$] <()> vault login -method=cert -client-cert=my-cert.pem -client-key=my-cert-key.pem | |
Error authenticating: Error making API request. | |
URL: PUT https://vault.server.com:8200/v1/auth/cert/login | |
Code: 400. Errors: | |
* error performing token check: failed to look up namespace from the token: no namespace |
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
curl -H "Accept: application/json" http://mysite.com/status/ | jq . | tee status.txt |
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
mongorestore --dryRun -v --gzip --uri="mongodb://user:[email protected]:27017,replicaset-1-1.com:27017,replicaset-1-2.com:27017/new_db_name?authSource=new_db_name&replicaSet=resp1&ssl=true" --nsInclude=old_db_name.* --nsTo=new_db_name.* --nsFrom=old_db_name.* --ssl --archive={filename from above} |
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
mongodump --gzip --archive=$(date +"%Y_%m_%d-%H_%M_%S")_dbname --ssl --uri="mongodb://user:[email protected]:27017,replicaset-1.com:27017,replicaset-2.com:27017/old_db_name?authSource=old_db_name&replicaSet=resp1&ssl=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
fatal: [host]: FAILED! => { | |
"changed": false, | |
"module_stderr": "Shared connection to host closed.\r\n", | |
"module_stdout": "Traceback (most recent call last):\r\n File \"/home/centos/.ansible/tmp/ansible-tmp-1573758290.699043-238093852151220/AnsiballZ_yum.py\", line 113, in \r\n ansiballz_main()\r\n File \"/home/centos/.ansible/tmp/ansible-tmp-1573758290.699043-238093852151220/AnsiballZ_yum.py\", line 105, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/home/centos/.ansible/tmp/ansible-tmp-1573758290.699043-238093852151220/AnsiballZ_yum.py\", line 48, in invoke_module\r\n imp.load_module('main_', mod, module, MOD_DESC)\r\n File \"/tmp/ansible_yum_payload_Pya32A/_main_.py\", line 320, in \r\n File \"/tmp/ansible_yum_payload_Pya32A/ansible_yum_payload.zip/ansible/module_utils/urls.py\", line 97, in \r\n File \"/usr/lib/python2.6/site-packages/requests/_init_.py\", line 114, in \r\n from .models import Request, Response, PreparedRequest\r\n File \" |
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
fly login -t team -c https://my-concourse.com -u user -p password -n name | |
for pipeline in $(cat pipelines.txt) | |
do | |
fly -t team pause-job --job "team - ${pipeline}/dc - env2" | |
done |
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
openstack volume list | grep -v -E "Attached to \w+" |
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
set -x | |
set -e | |
ping -c 4 %host.name% | |
curl -H "Accept: application/json" -H \ | |
http://%host.name%/GetStatus \ | |
| jq . | tee status.txt | |
res=$? |
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
{ | |
"timestamp": "2019-10-03T17:40:21.011942+0000", | |
"level": "info", | |
"message": "publishing check result", | |
"payload": | |
{ | |
"client": "myclient", | |
"check": | |
{ | |
"command": "/etc/sensu/plugins/check_haproxy.rb -S /tmp/haproxy.sock -A -W 70 -C 80", |