Skip to content

Instantly share code, notes, and snippets.

View cjnewbs's full-sized avatar

Craig Newbury cjnewbs

View GitHub Profile
@cjnewbs
cjnewbs / setup.sh
Created February 18, 2018 21:01
Script to simply the creation of new MySQL databases
#!/bin/bash
echo "Please enter the name of the new DB to create:"
read NEW_DB
echo "Please enter the name of the new DB username:"
read NEW_USER
echo "Please enter the name of the new DB password:"
read -s NEW_PASS
echo "Please re-enter the name of the new DB password:"
read -s NEW_PASS_CONFIRM
<?php
session_start();
$state = $_SESSION['state'];
$incomingState = $_GET['state'];
$tempCode = $_GET['code'];