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
@trivoallan
trivoallan / vagrant.org
Created September 13, 2011 13:20 — forked from zellyn/vagrant.org
Setting up a CentOS 5.4 base box for Vagrant
function ajaxFunction(){
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
#!/bin/sh
VER=$1
REGEX='^[0-9]*\.[0-9]*\.[0-9]*$'
if echo "$VER" | grep -q $REGEX
then
echo 'YEAH RIGHT DUDE !'
else
echo ':('
fi
<?php
/**
* Replaces tokens in distribution files.
*/
class CI_Task_ConfigureDistTask extends sfBaseTask
{
/**
* @see sfTask
*/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<!-- Change this if you want to allow scaling -->
<meta name="viewport" content="width=default-width; user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Reprise-Illico</title>
#!/bin/sh
VERSION=0.1.1-rc2
ENVIRONMENT=preproduction
PROJECT=robusto
EMAIL=tristan.rivoallan@aramisauto.com
git remote update
git checkout develop && git pull origin develop
git checkout master && git pull origin master
#!/bin/sh
VERSION=$1
git flow release start $VERSION
git log --pretty --numstat --summary $VERSION.. | ~/bin/git2cl >> Changelog
git add Changelog
git commit -m "[] [release] Updated changelog"
git flow release finish $VERSION
git push --tags origin develop master
@trivoallan
trivoallan / ant-snippets.xml
Created January 27, 2011 10:25
Automatic "help" target
<target name="help" description="Displays project's help">
<java classname="org.apache.tools.ant.Main">
<arg value="-buildfile" />
<arg value="${ant.file}" />
<arg value="-projecthelp" />
</java>
</target>
<?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();
# 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: