Skip to content

Instantly share code, notes, and snippets.

pythoninthegrass

  • Denver
Block or report user

Report or block pythoninthegrass

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pythoninthegrass
pythoninthegrass / create_iso.sh
Last active Apr 4, 2020 — forked from julianxhokaxhiu/create-iso.sh
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
View create_iso.sh
#!/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)
View mysql_cheat_sheet.md

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@pythoninthegrass
pythoninthegrass / scp-aws.md
Created Mar 25, 2020 — forked from stephaniemdavis/scp-aws.md
Syntax for using scp to to download a file from AWS to local disk
View scp-aws.md

The following line uses the secure copy protocol to copy a file from an aws instance to the current (".") folder of a local machine.

scp -i aws.pem username@awsip(or ALIAS):/path/to/file .

aws.pem is the key AWS provides you to gain access to the AWS instance you want to copy from.

awsip is the IP address or DNS alias of the AWS instance.

path/to/file is the file's path on aws.

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 obverse is true too; to upload FROM local folder to aws:

@pythoninthegrass
pythoninthegrass / scp-aws.md
Created Mar 25, 2020 — forked from stephaniemdavis/scp-aws.md
Syntax for using scp to to download a file from AWS to local disk
View scp-aws.md

The following line uses the secure copy protocol to copy a file from an aws instance to the current (".") folder of a local machine.

scp -i aws.pem username@awsip(or ALIAS):/path/to/file .

aws.pem is the key AWS provides you to gain access to the AWS instance you want to copy from.

awsip is the IP address or DNS alias of the AWS instance.

path/to/file is the file's path on aws.

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 obverse is true too; to upload FROM local folder to aws:

@pythoninthegrass
pythoninthegrass / reinit-sound.sh
Created Mar 25, 2020 — forked from akorobov/reinit-sound.sh
Fix(audio subsystem reinitialization) for no sound in osx 10.9(.2?) after sleep with headphones in
View reinit-sound.sh
sudo kextunload /System/Library/Extensions/AppleHDA.kext
sudo kextload /System/Library/Extensions/AppleHDA.kext
sudo killall -9 coreaudiod
View patch-edid.rb
#!/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
@pythoninthegrass
pythoninthegrass / jamfpro-docker-compose.yml
Created Mar 19, 2020 — forked from brysontyrrell/jamfpro-docker-compose.yml
A Docker Compose file for launching Jamf Pro
View jamfpro-docker-compose.yml
version: "3"
services:
mysql:
image: "mysql:5.7"
networks:
- jamfnet
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "jamfsw03"
View keychain_phoenix.sh
#!/usr/bin/env bash
# SOURCE:
# https://gist.github.com/pythoninthegrass/ca8074951cf32a6a064bda7e31b03d60
# activate verbose standard output (stdout)
set -v
# activate debugging (execution shown)
set -x
@pythoninthegrass
pythoninthegrass / install_chromedriver.sh
Last active Mar 11, 2020 — forked from natritmeyer/install_chromedriver.sh
Install chromedriver on fedora
View install_chromedriver.sh
#!/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
You can’t perform that action at this time.