http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html https://www.youtube.com/watch?v=_wiGpBQGCjU
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/bin/env bash | |
# SOURCE: https://gist.github.com/CraigLindsey/16ee404f132dbc38f7e83c30d108400b | |
# activate verbose standard output (stdout) | |
set -v | |
# activate debugging (execution shown) | |
set -x | |
# logs |
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/bin/env bash | |
logged_in_user=$(logname) | |
cd "/home/$logged_in_user/Downloads" | |
url='https://chromedriver.storage.googleapis.com/80.0.3987.16/chromedriver_linux64.zip' | |
curl -LJO "$url" | |
unzip chromedriver_linux64.zip | |
sudo mv chromedriver /usr/bin/chromedriver | |
sudo chown root /usr/bin/chromedriver | |
sudo chmod +x /usr/bin/chromedriver |
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
version: "3" | |
services: | |
mysql: | |
image: "mysql:5.7" | |
networks: | |
- jamfnet | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: "jamfsw03" |
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/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
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
sudo kextunload /System/Library/Extensions/AppleHDA.kext | |
sudo kextload /System/Library/Extensions/AppleHDA.kext | |
sudo killall -9 coreaudiod | |
The following line uses the secure copy protocol to copy a file from an aws instance to the current (".") folder of a local machine.
It is extremely important to add the period after the /path/to/file. Note the blank space between the /path/to/file and the period.
https://stackoverflow.com/questions/9441008/how-can-i-download-a-file-from-ec2
The following line uses the secure copy protocol to copy a file from an aws instance to the current (".") folder of a local machine.
It is extremely important to add the period after the /path/to/file. Note the blank space between the /path/to/file and the period.
https://stackoverflow.com/questions/9441008/how-can-i-download-a-file-from-ec2
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/bin/env bash | |
# SOURCE: | |
# https://gist.github.com/julianxhokaxhiu/6ed6853f3223d0dd5fdffc4799b3a877 | |
# TODO: error handling | |
# activate verbose standard output (stdout) | |
set -v | |
# activate debugging (execution shown) |