This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 --- |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7777950 137 $anon$1 com.normation.ldap.ldif.Slf4jLDIFLogger$class.fileName source-/home/fanf/java/workspaces/rudder-project/scala-ldap/src/main/scala/com/normation/ldap/ldif/LDIFFileLogger.scala,line-114,offset=3359 | |
7778548 932 ClassfileLoader java.util.Comparator NoPosition | |
7792344 824 ClassfileLoader scala.collection.parallel.mutable.package NoPosition | |
7793190 8 LazyTypeRef scala.collection.parallel.mutable.package NoPosition | |
7793210 34 LazyTypeRef scala.collection.parallel.mutable.package NoPosition | |
7791429 1878 PackageLoader scala.collection.parallel.mutable NoPosition | |
7791321 2027 LazyTypeRef scala.collection.mutable.ArrayOps NoPosition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test_shapeless | |
object DI { | |
import shapeless._ | |
trait Injecter[L <: HList, A] { | |
def apply(l: L) : A | |
} | |
trait InjecterAux[L <: HList, A] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" GPG config | |
" Don't save backups of *.gpg files | |
set backupskip+=*.gpg | |
" To avoid that parts of the file is saved to .viminfo when yanking or | |
" deleting, empty the 'viminfo' option. | |
set viminfo= | |
augroup encrypted | |
au! | |
" Disable swap files, and set binary file format before reading the file |
OlderNewer