e.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.hypervisor</key>
<true/>
</dict>
#!/usr/sbin/dtrace -s | |
/* | |
* newproc.d - snoop new processes as they are executed. DTrace OneLiner. | |
* | |
* This is a DTrace OneLiner from the DTraceToolkit. | |
* | |
* 15-May-2005 Brendan Gregg Created this. | |
*/ | |
/* |
e.xml
:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.hypervisor</key>
<true/>
</dict>
┌───┬──┐ , _ _ | |
│ ╷╭╯╷ │ /| | | | | | | |
│ └╮ │ |___| _ | | | | __ | |
│ ╰─┼╯ │ | |\ |/ |/ |/ / \_ | |
└───┴──┘ | |/ |__/ |__/ |__/ \__/ |
contents := []byte(` | |
{ | |
"key": "value", | |
"key2": "value2" | |
} | |
`) | |
type Custom struct { | |
Key string | |
Key2 json.RawMessage |
{ | |
"metadata": { | |
"name": "busybox" | |
}, | |
"image":{ | |
"image": "mcr.microsoft.com/windows/nanoserver:1809" | |
}, | |
"command": [ | |
"ping", | |
"-t", |
/lib/ld-linux.so /bin/chmod +x /bin/chmod |
MacOS quicklook for unknown text files (qlstephen
), code (qmcolorcode
), markdown (qlmarkdown
), etc
brew install qlcolorcode qlstephen qlmarkdown quicklook-json qlimagesize suspicious-package apparency quicklookase qlvideo
xattr -d -r com.apple.quarantine ~/Library/QuickLook
qlmanage -r
killall Finder
# get asws account id
aws sts get-caller-identity --query Account --output text
write installed packages to freeze file (here stdout): | |
``` | |
brew bundle dump --file=- | |
``` | |
install from freeze file: | |
``` | |
brew bundle install --file=<f> | |
``` |
when creating a S3 bucket with CDK it is per default protected from getting deleted with cdk destroy
.
To remove this protection for faster testing:
RemovalPolicy: awscdk.RemovalPolicy_DESTROY
= destroy if emptyAutoDeleteObjects: jsii.Bool(true)
= destroy even if not emptypackage main