A list of amazingly awesome PHP libraries, resources and shiny things.
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.
function isRetina(){ | |
return (('devicePixelRatio' in window && devicePixelRatio > 1) || | |
('matchMedia' in window && matchMedia("(-moz-device-pixel-ratio:1.0)").matches)) | |
} |
alias mongo.start="mongod run --config `brew --prefix mongodb`/mongod.conf" | |
alias apache.start="sudo /usr/sbin/apachectl start" | |
alias apache.stop="sudo /usr/sbin/apachectl stop" | |
# alias cake="${dev}/framework/cake/console/cake" | |
alias cakephp="${dev}/framework/cake/console/cake" | |
alias run.elasticsearch='elasticsearch -f -D es.config=/usr/local/Cellar/elasticsearch/0.18.5/config/elasticsearch.yml' |
@mixin ie6 { * html & { @content } } | |
#logo { | |
background-image: url("/images/logo.png"); | |
@include ie6 { background-image: url("/images/logo.gif"); } | |
} |
A list of amazingly awesome PHP libraries, resources and shiny things.
# | |
# After running cap deploy:cold, You'll need to remove all files from the | |
# domains/yourdomain.com/html directory and turn the html directory into a | |
# symlink that links to ./current which is also a symlink setup by capistrano. | |
# | |
# install the mt-capistrano gem, not sure if it is really needed in most situations | |
require 'mt-capistrano' | |
# Configure these |
require 'rubygems' | |
require 'railsless-deploy' | |
load 'config/deploy' |
<?php | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'phpdoc_indent' => true, | |
'binary_operator_spaces' => [ | |
'operators' => ['=>' => null] | |
], |
var sys = require('sys'), | |
spawn = require('child_process').spawn, | |
// args from command line | |
filename, servers; | |
if (process.ARGV.length < 4) { | |
return sys.puts("Usage: node remote-tail.js filename server1 [serverN]"); | |
} |