Skip to content

Instantly share code, notes, and snippets.

View jreeme's full-sized avatar

John Reeme jreeme

  • Sotera Defense Solutions
  • Austin, TX
View GitHub Profile
@jreeme
jreeme / gist:0384e444706d92f31caff5aa9cbf4a41
Created July 7, 2017 13:24
MySQL change root password
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'
IDENTIFIED BY 'password'
WITH GRANT OPTION;
FLUSH PRIVILEGES;
@jreeme
jreeme / _clone_UbuServ.sh
Last active January 9, 2017 19:42
Shell script to clone ESXi VM
#!/bin/sh
SRC_UBU_DIR=UbuServ-14.04.2-00
DST_UBU_DIR=UbuServ-14.04.2-01
mkdir /vmfs/volumes/datastore3/$DST_UBU_DIR
vmkfstools -i /vmfs/volumes/datastore3/$SRC_UBU_DIR/UbuServ-14.04.2-Base.vmdk -d thin /vmfs/volumes/datastore3/$DST_UBU_DIR/UbuServ-14.04.2-Base.vmdk
cp /vmfs/volumes/datastore3/$SRC_UBU_DIR/UbuServ-14.04.2-Base.nvram /vmfs/volumes/datastore3/$DST_UBU_DIR/
cp /vmfs/volumes/datastore3/$SRC_UBU_DIR/UbuServ-14.04.2-Base.vmsd /vmfs/volumes/datastore3/$DST_UBU_DIR/
cp /vmfs/volumes/datastore3/$SRC_UBU_DIR/UbuServ-14.04.2-Base.vmx /vmfs/volumes/datastore3/$DST_UBU_DIR/
cp /vmfs/volumes/datastore3/$SRC_UBU_DIR/UbuServ-14.04.2-Base.vmxf /vmfs/volumes/datastore3/$DST_UBU_DIR/
@jreeme
jreeme / default.json
Last active March 15, 2016 17:23
A nodejs pkginit JSON file
{
"name": basename.replace(/^node-/, ""),
"version": "0.0.1",
"description": prompt(),
"main": prompt("entry point","index.js"),
"scripts": {
"test": "./node_modules/.bin/jasmine-node test"
},
"repository": {
"type": "git",