Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
|<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');|
|// Simple, single configuration file to override almost all paths and server settings. As used by @airways|
|// and @litzinger.|
|// Only check in the default as dist.config.php, set your version control system to ignore config.php so that|
|// local users and each instance (staging, production) can have their own settings.|
|// These config files are mainly meant to be used on a shared development server used by all developers,|
|// although it works almost as well for local development as well.|
|# Script for placing sudoers.d files with syntax-checking|
|# Making a temporary file to contain the sudoers-changes to be pre-checked|
|TMP=$(mktemp -t vagrant_sudoers)|
|cat /etc/sudoers > $TMP|
|cat >> $TMP <<EOF|
|# Allow passwordless startup of Vagrant when using NFS.|
|Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports|
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
Go to vmware vm files:
Defragment vm disk:
/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -d Virtual\ Disk.vmdk
Shrink vm disk:
/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -k Virtual\ Disk.vmdk