Skip to content

Instantly share code, notes, and snippets.

View trivoallan's full-sized avatar
💭
♫ Join us now and share the software; You'll be free, hackers ♫

Tristan Rivoallan trivoallan

💭
♫ Join us now and share the software; You'll be free, hackers ♫
View GitHub Profile
module LdapTosca
def self.included(base)
RAILS_DEFAULT_LOGGER.info('included')
super(base)
if File.exist?(CONFIGURATION_FILE)
RAILS_DEFAULT_LOGGER.info('exists')
require 'ldap'
RAILS_DEFAULT_LOGGER.info(base)
base.extend(LdapToscaClassMethods)
module LdapTosca
def self.included(base)
RAILS_DEFAULT_LOGGER.info('included')
super(base)
if File.exist?(CONFIGURATION_FILE)
RAILS_DEFAULT_LOGGER.info('exists')
require 'ldap'
RAILS_DEFAULT_LOGGER.info(base)
base.extend(LdapToscaClassMethods)
s3cmd ls s3://bucket.example.com | s3cmd del `awk '{print $4}'
var s=document.createElement('script');
s.setAttribute('src','http://jquery.com/src/jquery-latest.js');
document.getElementsByTagName('body')[0].appendChild(s);
function jqueryWait() {
if(typeof window.jQuery == 'undefined') {
window.setTimeout(jqueryWait,100);
} else{
$ = window.jQuery;
doJQuery();
<div id="pourquoijedonnemesorganes">
<h2 class="surtout donate-1">Pourquoi faire un don ? </h2>
<p>
Et oui, qu\'allons-nous faire de vos espèces sonnantes et trébuchantes ?
</p>
<ul>
<li>Financer les coûts de location des différents serveurs (<a href="http://www.pastis-hosting.net">Pastis Hosting</a>) et logiciels qui permettent l\'hébergement de ce forum, de quelques projets affiliés (<a href="http://www.thisisradioclash.org/">This is Radioclash</a>, <a href="http://www.pardon-my-french.fr">Pardon My French</a> <a href="http://www.musiqueapproximative.net/">Musique Approximative</a>, <a href="http://www.daheardit-records.net/">Da ! Heard It Records</a>, etc) et d\'un certain nombre d\'autres sites (<a href="http://www.modelepuissance.com/">Modèle Puissance</a>, <a href="http://www.collectionrevue.com/">Collection Revue</a>, <a href="http://www.sidabitball.com">Sidabitball</a>, <a href="http://musikmekanikcirkus.org/">Musik Mekanik Cirkus</a>, etc)</li>
<li>Aider à se concrétiser les projets qui prennent vi
<?php
require_once('/usr/share/php/symfony/autoload/sfCoreAutoload.class.php');
sfCoreAutoload::register();
$handler = new sfDefineEnvironmentConfigHandler();
$conf = $handler->execute(array(dirname(__FILE__).'/config/maconf.yml'));
file_put_contents(dirname(__FILE__).'/cache/maconf.yml.php', $conf);
include(dirname(__FILE__).'/cache/maconf.yml.php');
var_dump(sfConfig::getAll());
<html>
<head>
<style>
#example1 .gradient {
background-image:-moz-linear-gradient(center bottom , rgba(0, 0, 0, 0.3) 49%, rgba(0, 0, 0, 0.25) 50%, transparent);
border:1px solid rgba(0, 0, 0, 0.5);
width: 250px;
height: 250px;
display: block;
Processing ErrorsController#create (for 174.129.85.194 at 2010-07-30 16:45:22) [POST]
Parameters: {"api_key"=>"a8a6bab33ff9d491cabcb1fa", "version"=>"0.1.0", "error"=>{"request"=>{"params"=>{"cookies"=>{"fbsetting_2fd56b12cd84ade791a9c3fbe6918094"=>"{\\\"connectState\\\":1,\\\"oneLineStorySetting\\\":3,\\\"shortStorySetting\\\":3,\\\"inFacebook\\\":true}", "lastaction"=>"6/18/2010 11:51:05 AM", "__utma"=>"23762216.810292298.1276861869.1276861869.1276861869.1", "edited_front_recette"=>"1dfa2f2beb4b5af91e151da924d310b5:760eafb71c027fb885cba18e9ce19a67f6883981", "sfRemember"=>"a095787bcdc220dccb05db751d802cfd", "2fd56b12cd84ade791a9c3fbe6918094_user"=>"659012078", "__utmz"=>"23762216.1276861869.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", "2fd56b12cd84ade791a9c3fbe6918094_ss"=>"l1x8A8pbM9IIMMEASJZbKg__", "guest"=>"-9368603", "edited_front"=>"75cbe094048d02ebc5fc9bd65395251f:3ea7d1462be2ce18e77b5ebff8eaef53ed078ff3", "2fd56b12cd84ade791a9c3fbe6918094"=>"2d830d5b327254f7b817c3edfa0a03bf", "2fd56b12cd84ade
# You can find more information about this file on the symfony website:
# http://www.symfony-project.org/reference/1_4/en/05-Factories
prod:
logger:
class: sfAggregateLogger
param:
level: info
loggers:
sf_syslog:
<?php
require_once('/usr/share/php/symfony/autoload/sfCoreAutoload.class.php');
sfCoreAutoload::register();
class ProjectConfiguration extends sfProjectConfiguration {}
class MyAppConfiguration extends sfApplicationConfiguration {}
$configCache = new sfConfigCache(new MyAppConfiguration('dev', true, dirname(__FILE__)));
$configCache->clear();