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|
I have moved this over to the Tech Interview Cheat Sheet Repo since a gist is too difficult to maintain as an open source endevaor and there is no way to version it. I have updated below, but I will not be able to keep this one up to date so please checkout the repo instead. The below is just for some preservation for those who stumble across here.
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