Skip to content

Instantly share code, notes, and snippets.

@behinddesign
behinddesign / vm_start.bat
Last active August 29, 2015 14:03
Autostart VMs - Make sure PfSense is running before launching anything else, then launch Plex and others if need be. Put files - C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup and C:\Windows\System32\GroupPolicy\Machine\Scripts\Shutdown (replace start with stop or suspend)
@setlocal enableextensions enabledelayedexpansion
@echo off
set vmware_path="C:\Program Files (x86)\VMware\VMware Workstation"
set vms_path=C:\Users\MY_USERNAME_HERE\Documents\Virtual Machines
set ip_of_pfsense="PFSENSE_IP_HERE"
echo Starting VMS
echo ============
echo - PFSense
@behinddesign
behinddesign / generate_codeigniter_autocomplete.php
Created June 1, 2014 18:47
Generate auto complete entries for Codeigniter. This works with the Jetbrains IDE and Netbeans - Use this to form basis of the output below. https://github.com/topdown/phpStorm-CC-Helpers
<?php
//Specify the CI root path
$root_path = "../";
//Lets just loop through everything to find controllers and models which we can use to build codeigniter code complete
$real_path = realpath($root_path);
if (!file_exists($real_path)) {
die("Cannot find " . $real_path);