Skip to content

Instantly share code, notes, and snippets.

View symm's full-sized avatar
🦄

Gareth Jones symm

🦄
View GitHub Profile
@symm
symm / deploy.rb
Last active October 12, 2015 16:58
Capifony config for Symfony 2.1 Project Deployment
set :application, "symfony"
set :domain, "#{application}.yourdomain.com"
set :deploy_to, "/www/#{domain}"
set :app_path, "app"
set :user, "yourusername"
set :repository, "file:///local/path/to/project/repo"
set :scm, :git
set :deploy_via, :copy
@symm
symm / composer.json
Created November 8, 2012 20:43
Returns the episode titles a certain American Podcast series
{
"require":
{
"symfony/dom-crawler": "2.2.x-dev",
"symfony/css-selector": "2.2.x-dev"
}
}
@symm
symm / gist:3260113
Created August 4, 2012 21:39
PHP url validation bug
<?php
/*
* FILTER_VALIDATE_URL Validates value as URL (according to » http://www.faqs.org/rfcs/rfc2396)
* http://php.net/manual/en/filter.filters.validate.php
*/
$check = filter_var('http://google.com/', FILTER_VALIDATE_URL);
var_dump($check);
// $check = string(18) "http://google.com/"