Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| ## Here's the way to have Nginx return a robots.txt file that disallows all crawling by bots. | |
| ## This is useful for development and private sites. | |
| location = /robots.txt { | |
| return 200 "User-agent: *\nDisallow: /\n"; | |
| } |
| # Cookbook Name:: mongodb | |
| # Recipe:: default | |
| case node['platform'] | |
| when "ubuntu" | |
| execute "apt-get update" do | |
| action :nothing | |
| end | |
| execute "add gpg key" do |
| /* | |
| * This work is free. You can redistribute it and/or modify it under the | |
| * terms of the Do What The Fuck You Want To Public License, Version 2, | |
| * as published by Sam Hocevar. See the COPYING file for more details. | |
| */ | |
| /* | |
| * Easing Functions - inspired from http://gizma.com/easing/ | |
| * only considering the t value for the range [0, 1] => [0, 1] | |
| */ | |
| EasingFunctions = { |
| # This custom task for deploying a Symfony 2 application is set to run after deploy:setup | |
| # is executed. It interactively ask a user for database details to create a parameters.ini | |
| # thus avoiding having to manually on to the server and create it | |
| # | |
| # Helper function from http://stackoverflow.com/a/1662001/1041885 | |
| # | |
| # Interactive parameter.ini generation adapted from http://adurieux.blogspot.co.uk/2011/10/using-capistrano.html | |
| # ... | |
| # ... Your deployment settings/tasks |
| #!/bin/sh | |
| cd `dirname $0` | |
| if [ -d "../vendor/symfony/symfony" ]; then | |
| cd "../" | |
| fi | |
| ROOT=`pwd` | |
| cd vendor/symfony && ln -s symfony/src |
| require 'yaml' | |
| require "fileutils" | |
| require "zlib" | |
| #STDOUT.sync | |
| $error = false | |
| $pretty_errors_defined = false | |
| # Be less verbose by default | |
| #logger.level = Logger::IMPORTANT |
| <?php | |
| namespace Foo\CoreBundle\Form\EventListener; | |
| use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
| use Symfony\Component\Form\FormEvents; | |
| use Symfony\Component\Form\FormEvent; | |
| use Symfony\Component\Form\FormInterface; | |
| /** | |
| * Changes Form->bind() behavior so that it treats not set values as if they |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| #!/usr/bin/env php | |
| <?php | |
| use Symfony\Component\Console\Application; | |
| use Symfony\Component\Console\Input\ArrayInput as Input; | |
| use Symfony\Component\Console\Input\InputOption as Option; | |
| require_once __DIR__.'/../vendor/autoload.php'; | |
| /** Outputs and runs a command. */ |