I hereby claim:
- I am yarick on github.
- I am yarick (https://keybase.io/yarick) on keybase.
- I have a public key ASAwKpyFjVlNDo5CXpZ2knGffxAgpjTcqS-RH77O1Paftgo
To claim this, I am signing this object:
inspec exec ./test/integration/default -t azure:// -l=debug --diagnose | |
InSpec version: 2.2.20 | |
Train version: 1.4.15 | |
Command line configuration: | |
{"target"=>"azure://", "log_level"=>"debug", "diagnose"=>true} | |
JSON configuration file: | |
{} | |
Merged configuration: | |
{"reporter"=>{"cli"=>{"stdout"=>true}}, | |
"show_progress"=>false, |
-----> Starting Kitchen (v1.21.2) | |
-----> Creating <azure-demo-baseline-centos>... | |
>>>>>> ------Exception------- | |
>>>>>> Class: Kitchen::ActionFailed | |
>>>>>> Message: 1 actions failed. | |
>>>>>> Failed to complete #create action: [uninitialized constant MsRestAzure::AzureEnvironments::AzureUSGovernment | |
Did you mean? MsRestAzure::AzureEnvironments::AzureEnvironment] on azure-demo-baseline-centos | |
>>>>>> ---------------------- | |
>>>>>> Please see .kitchen/logs/kitchen.log for more details | |
>>>>>> Also try running `kitchen diagnose --all` for configuration |
### Powershell on OSX or win32 | |
$location = "USGov Virginia" | |
$resourceGroupName = "CAAS-MGMT-DEPARTMENT-01" | |
$vaultname = "CAAS-MGMT-VLT" | |
$secret = "super-secret-password-that-they-will-never-guess-2018-!" | |
$secretName = "CAAS-MGMT-INSTANCE-PASSWORD" | |
New-AzureRmResourceGroup -Name $resourceGroupName -Location $location | |
New-AzureRmKeyVault ` | |
-VaultName $vaultname ` |
#!/usr/bin/python2.7 | |
import re, mmap, os, contextlib, sys | |
#print "Usage: ./s1.py file regex(to print)" | |
# print "Example: ./s1.py /tmp/a.log 10.213.194.\S+:http://([^/]+)/" | |
myString = str(sys.argv[2]) | |
print "Searching file: " , str(sys.argv[1]) | |
fn = sys.argv[1] | |
size = os.stat(fn).st_size |
for i in $(ls *.txt); do python -c "import sys; lines = sys.stdin.readlines(); print ''.join(sorted(set(lines)))" < $i > $i.sorted.de_dupped; done |
# View Markdown | |
ConvertFrom-Markdown -Path '.\_posts\2018-8-1-PowerShell-Markdown.md' -AsVT100EncodedString | Show-Markdown |
find baseline/controls/* -name *\.rb -type f -exec sed -i '' 's/"4"\]/"Rev_4"\]/' {} \; |
#!/bin/bash | |
for i in {1..10}; do | |
echo $i | |
curl -s "https://api.github.com/orgs/mitre/repos?page=$i&per_page=100" | ruby -rrubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone --recurse-submodules --recurse #{repo["ssh_url"]} ]}' | |
done |
#!/bin/bash | |
for i in $(aws s3api list-buckets --query "Buckets[].Name"| grep \"| awk -F\" '{print $2}'); do echo; echo $i; aws s3api list-objects --bucket $i --query "Contents[?contains(Key, 'i-my_super_secret_result_filie.json')]" ; done |
I hereby claim:
To claim this, I am signing this object: