http://nodemon.io/ - monitor for any changes and automatically restart server
1 cup each frozen blueberries, raspberries, milk.
1 Banana.
1 tablespoon ground Flax seed.
2 Tablespoons honey.
1 7oz tub Greek yogurt.
Blend and enjoy
<?php
require 'vendor/autoload.php';
$app = new \Slim\App();
// Executed last as it's first in (FILE)
$app->add(function ($request, $response, $next) {
// Execute the routes first
$ mysqldump -u root -p --opt --quote-names --skip-set-charset --default-character-set=latin1 [database name] > dump.sql
$ mysql -u root -p --default-character-set=utf8 [database name] < dump.sql
Source: http://www.garethsprice.com/blog/2011/fix-mysql-latin1-utf-character-encoding/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From http://vmassuchetto.github.io/2013/08/14/reducing-a-vagrant-box-size/ | |
# Added here as the published version transform text to uppercase and breaks commands | |
#!/bin/sh | |
# Install guest additions - https://andrewelkins.com/2014/03/08/install-virtualbox-guest-additions-command-line/ | |
## set the version number for easier updating | |
vbVersion=5.0.4 | |
## Get Guest Additions ISO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Current UTC time | |
DateTime timeUtc = DateTime.UtcNow; | |
Console.WriteLine("UTC is {0}", timeUtc); | |
// UTC offset as a +/- integer | |
Console.WriteLine("Enter an +/- integr to offset UTC:"); | |
int offset = Convert.ToInt32(Console.ReadLine()); | |
Console.WriteLine("Int offset is {0}", offset); | |
// Format UTC offset as hh:mm:ss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 TBLS Chilli powder | |
1 TS Cumin | |
1 TS Paprika | |
1 TBLS Grlic powder |
Create file /etc/apache2/users/{username}.conf
Add contents
<Directory "/Users/{username}/Sites/">
AllowOverride All
Options Indexes MultiViews FollowSymLinks
Require all granted
</Directory>