Among the editors and IDEs that I use the old stand by vim is always there. It's literally the first thing I install on a server. One of the great features of vim is the vast plugin library. This becomes even better when someone wraps a lot of the extremely …
In order to use rsync with a ssh key I used the -e flag on the rsync command. It will allow rsync over ssh local to a remote server. [ps] [\$ \~] rsync -avz -e "ssh -i .ssh/id_key.pem" /opt/stuff/here/ [email protected]:/opt/stuff/here/ [/ps …
The environment is based on url matches. You'll find that configuration in /bootstrap/start.php [ps] \$env = \$app->detectEnvironment(array( 'local' => array('your-machine-name'), )); [/ps] Now say you are developing locally and use the prefix/postfix local. E.g: my-new-site.local or local.my-new-site [ps] \$env = \$app->detectEnvironment(array( 'local' => array …
Simple no persistant storage. Starting up, setting up, etc are all great, but without persistance storage I'm forced to use S3 or the like. If I'm doing a very simple app or a WordPress install it's not worth the effort. Does AppFog have a persistent file system? Not yet. We're …
In an audit of my system I needed to find all the files owned by apache. [ps] find ./ -name apache [/ps] Simple! Here's the group and user example: [ps] find ./ -group apache -name apache [/ps]
In order to run a custom command from the command line utility called artisan you need to do two things: Create a new CustomCommand file Register that command with artisan Here's a sample Command file called FooCommand.php which should be placed in *app/commands/ * [php]
Typically when Laravel 4 artisan is run from the command line (cli) it uses the production configuration files. This can be changed by using a flag when running the command. [ps]php artisan migrate --env=local[/ps] However, adding --env-=local each time while running a script can slow down …
I typically use a library folder in my projects to group of files that you want to use in different projects but don't want to use Satis to manage the contained files. This folder could also be a helper folder for functions that are static and are mainly generic helpers …
After working within a screen session on a CentOS server I had forgotten how to close the screen session that I was done with. It's a rather simple command. exit Perfect, exit means exit. Of note if you just want to disconnect use. ctrl+a (press) d That'll disconnect you …
I previously posted on setting a static ip address in vmware fusion 4. This also still works for VMWare Fusion 5. Steps are the same. First on your linux vm in terminal run the following command ifconfig Then copy the HWaddr it varies from vm to vm so you need …