Skip to content

Instantly share code, notes, and snippets.

View pringlized's full-sized avatar

Jim Pringle pringlized

View GitHub Profile
@pringlized
pringlized / restartCities.sh
Last active August 29, 2015 14:21
Start or Gracefully restart Cities Skylines while coding and compiling a mod
#!/bin/bash
# Check if the CSL app is running
pid=$(ps -ax | grep -m1 'Cities_Skylines/Cities.app' | grep -v grep | awk '{print $1}')
if [[ $pid ]]
then
echo "Cities is running under pid: $pid"
echo "Quitting Cities.."
osascript -e 'quit app "Cities"'
sleep 4
@pringlized
pringlized / DbmigrateController.php
Last active August 29, 2015 14:15 — forked from bruceoutdoors/DbmigrateController.php
MySQL database script for full schema migrations in Laravel 5. Unlike the gist this was forked from, this script will write out each table to an individual file.
<?php namespace App\Http\Controllers;
/* * **
*
* MySQL database script for full schema migrations in Laravel 5.
*
* 1. Place this file inside app/Http/controllers/
*
* 2. In this file, edit the index() method to customize this script to your needs.
* - inside $migrate->ignore(), you pass in an array of table