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
#!/bin/bash | |
# Get open network connections | |
lsof -a -i4 -i6 -itcp | |
# Get listening ports | |
netstat -tunlp |
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
#!/bin/bash | |
# Check for latest release: https://github.com/github/codeql-cli-binaries/releases | |
_version='v2.4.1' | |
_arch='osx' | |
_zip_url="https://github.com/github/codeql-cli-binaries/releases/download/${_version}/codeql-${_arch}64.zip" | |
_dir='codeql-home' | |
_cores=2 | |
pushd "${HOME}" || exit |
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
ffmpeg -f lavfi -i 'testsrc[out0];sine[out1]' -t 30 -pix_fmt yuv420p colorbars_tone.mp4 |
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
ffmpeg -re -f lavfi -i 'testsrc[out0];sine[out1]' \ | |
-c:v libx264 -pix_fmt yuv420p -profile:v main \ | |
-preset veryfast -x264opts "nal-hrd=cbr:no-scenecut" \ | |
-minrate 3000 -maxrate 3000 -g 60 -c:a aac -b:a 160k \ | |
-ac 2 -ar 44100 -f flv \ | |
rtmps://$INGEST_ENDPOINT |
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
#!/bin/bash | |
# This will block users that are not root from accessing ec2 metadata | |
# Prevents users from grabbing the instance credentials | |
iptables -A OUTPUT -m owner ! --uid-owner root -d 169.254.169.254 -j DROP |
OlderNewer