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
{ | |
"name": "GCP_Detections", | |
"versions": { | |
"attack": "14", | |
"navigator": "4.9.1", | |
"layer": "4.5" | |
}, | |
"domain": "enterprise-attack", | |
"description": "", | |
"filters": { |
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
{ | |
"name": "GCP_Detections", | |
"versions": { | |
"attack": "14", | |
"navigator": "4.9.1", | |
"layer": "4.5" | |
}, | |
"domain": "enterprise-attack", | |
"description": "", | |
"filters": { |
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
tar xvf VMware-vix-disklib-6.0.2-3566099.x86_64.tar.gz | |
cd vmware-vix-disklib-distrib/bin64 | |
sudo ln -s $(pwd)/vmware-vdiskmanager /usr/bin/vmware-vdiskmanager | |
ls -l /usr/bin/vmware-vdiskmanager | |
cd ../lib64/ | |
sudo ln -s $(pwd) /usr/lib/vmware | |
sudo bash -c "echo $(pwd) > /etc/ld.so.conf.d/vmware-vix-disklib.conf" | |
sudo ldconfig |
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
#!/usr/bin/python | |
""" | |
Referencing current branch in github readme.md[1] | |
This pre-commit hook[2] updates the README.md file's | |
Travis badge with the current branch | |
[1] http://stackoverflow.com/questions/18673694/referencing-current-branch-in-github-readme-md | |
[2] http://www.git-scm.com/book/en/v2/Customizing-Git-Git-Hooks | |
[3] https://docs.travis-ci.com/user/status-images/ |
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
update_shebangs: | |
grep -m1 -r -l '^#!.*python' venv/bin/ | while read -r filename; do \ | |
echo "$${filename}"; \ | |
head -n1 "$${filename}"; \ | |
sed -i -e '1 s|^#!.*python|#!/opt/rh/rh-python38/root/bin/python|' "$${filename}"; \ | |
head -n1 "$${filename}"; \ | |
done |
I hereby claim:
- I am dandye on github.
- I am dandye (https://keybase.io/dandye) on keybase.
- I have a public key ASA-gPRwMft8T6zm3iIHKh2VSVhf1naW-T-xvApafZesnQo
To claim this, I am signing this object:
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
python -c 'import yaml,sys;yaml.safe_load(sys.stdin)' < .travis.yml |
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
import re | |
import boto3 | |
import csv | |
from botocore.exceptions import ClientError | |
ec2 = boto3.client('ec2') | |
def get_snapshots(): | |
return ec2.describe_snapshots(OwnerIds=['self'])['Snapshots'] |
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
function splitDate(date) { | |
var rdate = /(\d+).(\d+).(\d+)/ | |
return rdate.exec(date) | |
} | |
var [ , year, month, day] = splitDate('2015-11-06') |
NewerOlder