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
<html> | |
<head> | |
<style> | |
table tr td:not(:first-child){ | |
outline: blue; | |
} | |
</style> | |
</head> | |
<body> |
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
<!-- | |
Directions: In ST2 go to Tools -> New Snippet... | |
Replace the contents with this file. | |
Save the file as quicklog.sublime-snippet under ~/Library/Application Support/Sublime Text 2/Packages | |
Activate the snippet by typing "cl"+tab | |
--> | |
<snippet> | |
<content><![CDATA[ | |
console.log("${1}") | |
]]></content> |
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
$ php migrate.php create CreateUsersTable #Just a descriptive name of your changes | |
$ php migrate.php run 1347492199:up # 1347492199 is the id prepended to the migration file followed by the function you want to run :up or :down |
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
<?php | |
/** | |
* This is the command line script that deals with running the migrations | |
* | |
*/ | |
if( !isset($argv[1]) ){ | |
echo "Hi, seems you forgot to pass me a parameter. Why dont you try one of the following: create : up : down. \n"; | |
} | |
else{ |
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
<?php | |
abstract class MigrationScaffold{ | |
private static $link; | |
/** | |
* Creates the connection to the proper database | |
* | |
* @param $env - ['dev' || 'prod' || 'test'] | |
* @return void |
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
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql/mysql.sock |
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
sudo mkdir /var/mysql |
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
ls /var/mysql |
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
killall Dock |
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
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' |
NewerOlder