Skip to content

Instantly share code, notes, and snippets.

View fanf's full-sized avatar

François Armand fanf

View GitHub Profile
This file has been truncated, but you can view the full file.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building scala-ldap 2.6.0-scala_2.10-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ scala-ldap ---
[INFO] Deleting /home/fanf/java/workspaces/rudder-project/scala-ldap/target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ scala-ldap ---
@fanf
fanf / update-all-master.zsh
Created February 2, 2012 10:23
A script to update all git master for Rudder Scala projects
#!/bin/zsh
#
# Save that file on the directory that contains all you Rudder projects.
# The script fetch all project's origin, checkout master and pull origin/master.
# Before using it, be sure to have commited all you modifications !
#
#change base to the path to the
BASE="/path/to/the/root/rudder-project"
@fanf
fanf / update-all-branche-2.3.zsh
Created November 28, 2011 10:31
Update all dev projects of Rudder on branch master or 2.3
#!/bin/zsh
BASE="/path/to/rudder-project/root"
REPOS="rudder-parent-pom rudder-commons scala-ldap ldap-inventory cf-clerk rudder rudder-policy-templates"
for i in $(echo ${REPOS})
do
P=${BASE}/${i}
echo "\e[0;32mUpdating ${P}\e[0m"
cd ${P}
import scala.xml._
import net.liftweb.http.js._
import JsCmds._
import JE._
import net.liftweb.util.Helpers._
/**
* Extract JS from a NodeSeq
* Useful when using Lift SetHtml/Replace and it doesn't run the embedeed JS
*
package net.liftweb.http
import net.liftweb.common._
/**
* That class allow to load and register a snippet for the context of
* a Lift request.
*
*
* Such snippet should not be reachable directly from the application,
/**
* Description of Unix file permissions DSL
* Only user", "group" and "other" (whitout setuid,
* setgid and sticky bit) permission are managed.
*
* The goal of these classes is to make their
* use as near as possible as Unix chmod, but in
* Scala.
*
* ## First, Perm objects: simple