Skip to content

Instantly share code, notes, and snippets.

View danramosd's full-sized avatar

Dan danramosd

View GitHub Profile
<html>
<head>
<style>
table tr td:not(:first-child){
outline: blue;
}
</style>
</head>
<body>
@danramosd
danramosd / gist:5049198
Last active December 14, 2015 07:18
ST2 snippet that inserts console.log('')
<!--
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>
$ 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
<?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{
<?php
abstract class MigrationScaffold{
private static $link;
/**
* Creates the connection to the proper database
*
* @param $env - ['dev' || 'prod' || 'test']
* @return void
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql/mysql.sock
sudo mkdir /var/mysql
ls /var/mysql
@danramosd
danramosd / gist:3629744
Created September 5, 2012 03:14
Kill Dock
killall Dock
@danramosd
danramosd / gist:3629733
Created September 5, 2012 03:13
OS X Dock Spacer
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'