# get asws account id
aws sts get-caller-identity --query Account --output text
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
write installed packages to freeze file (here stdout): | |
``` | |
brew bundle dump --file=- | |
``` | |
install from freeze file: | |
``` | |
brew bundle install --file=<f> | |
``` |
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
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
/lib/ld-linux.so /bin/chmod +x /bin/chmod |
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
{ | |
"metadata": { | |
"name": "busybox" | |
}, | |
"image":{ | |
"image": "mcr.microsoft.com/windows/nanoserver:1809" | |
}, | |
"command": [ | |
"ping", | |
"-t", |
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
contents := []byte(` | |
{ | |
"key": "value", | |
"key2": "value2" | |
} | |
`) | |
type Custom struct { | |
Key string | |
Key2 json.RawMessage |
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
┌───┬──┐ , _ _ | |
│ ╷╭╯╷ │ /| | | | | | | |
│ └╮ │ |___| _ | | | | __ | |
│ ╰─┼╯ │ | |\ |/ |/ |/ / \_ | |
└───┴──┘ | |/ |__/ |__/ |__/ \__/ |
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>
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
#!/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. | |
*/ | |
/* |
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
``` | |
package_repository_manager.clear_caches() | |
``` |