Skip to content

Instantly share code, notes, and snippets.

View haydonryan's full-sized avatar

Haydon Ryan haydonryan

View GitHub Profile
# TODO:
# Add HTTP listener
# Add ssh listener
# Add Websockets Listener
export LOCATION="westus"
export RESOURCE_GROUP="pcfmarketplace"
export VNET="pcf-net"
export SUBNET="AppGatewaySubnet" # Note this can't have anything in the back of it.
@haydonryan
haydonryan / convert pem to pfx.txt
Created April 5, 2017 15:42
convert cert and private key to PFX (AZURE)
openssl pkcs12 -export -out certificate.pfx -inkey sys.azure.hnrglobal.com.key -in sys.azure.hnrglobal.com.crt
@haydonryan
haydonryan / gist:944cce1a9a86f1465e21
Created November 14, 2014 21:45
drop all bales in database
SET FOREIGN_KEY_CHECKS = 0;
SET @tables = NULL;
SELECT GROUP_CONCAT(table_schema, '.', table_name) INTO @tables
FROM information_schema.tables
WHERE table_schema = 'database_name'; -- specify DB name here.
SET @tables = CONCAT('DROP TABLE ', @tables);
PREPARE stmt FROM @tables;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;