Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
#!/usr/bin/python | |
''' | |
JCDS package upload script | |
by G Pugh | |
Developed from an idea posted at | |
https://www.jamf.com/jamf-nation/discussions/27869#responseChild166021 | |
Usage: |
#!/bin/bash | |
# Mixing in python with bash we can easily retrieve our passwords securely in our shell scripts. | |
# Read this first: https://live.gnome.org/GnomeKeyring/SecurityPhilosophy | |
# Make sure your distro has gnome-keyring-daemon installed and running at login, | |
# as well as python-keyring installed (sudo apt-get install python-keyring) | |
## | |
# Follow these steps to see what it does. Verify by looking in Seahorse for your password. | |
## |
#!/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) |
https://stackoverflow.com/questions/9441008/how-can-i-download-a-file-from-ec2
https://stackoverflow.com/questions/9441008/how-can-i-download-a-file-from-ec2
sudo kextunload /System/Library/Extensions/AppleHDA.kext | |
sudo kextload /System/Library/Extensions/AppleHDA.kext | |
sudo killall -9 coreaudiod | |
#!/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 |
version: "3" | |
services: | |
mysql: | |
image: "mysql:5.7" | |
networks: | |
- jamfnet | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: "jamfsw03" |