Skip to content

Instantly share code, notes, and snippets.

@CedricGatay
CedricGatay / AbstractCDIWicket_IT.java
Last active December 18, 2015 00:09
Base test class for Wicket with CDI using Arquillian
/*
* Copyright 2013 Code-troopers.com
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
[INFO] --- merge-properties-maven-plugin:1.0:merge (merge) @ i18n ---
[INFO] Found propertyFileName without prefix checking, including... [src/main/resources/l10n/Global_en.properties]
[INFO] Found propertyFileName without prefix checking, including... [src/main/resources/l10n/Global_fr.properties]
[INFO] => Final file language.properties [en] contains 10624 entries
[INFO] => Final file language.properties [fr] contains 10647 entries
[INFO] Found propertyFileName without prefix checking, including... [src/main/resources/help/Global_en.properties]
[INFO] Found propertyFileName without prefix checking, including... [src/main/resources/help/Global_fr.properties]
[INFO] => Final file help.properties [en] contains 371 entries
[INFO] => Final file help.properties [fr] contains 376 entries
@CedricGatay
CedricGatay / install_vagrant_sudoers.sh
Last active August 29, 2015 13:55 — forked from GUI/install_vagrant_sudoers.sh
Script for placing sudoers.d files with syntax-checking, from https://gist.github.com/GUI/2864683, adapted to work with Vagrant 1.4.x under OS X / Linux
#!/bin/bash
# Script for placing sudoers.d files with syntax-checking
# From https://gist.github.com/GUI/2864683, adapted to work
# with Vagrant 1.4.x under OS X / Linux
# Making a temporary file to contain the sudoers-changes to be pre-checked
TMP=$(mktemp -t vagrant_sudoers.XXX)
cat /etc/sudoers > $TMP
# Does not reedit file
@CedricGatay
CedricGatay / gist:10872358
Created April 16, 2014 13:11
distassembly
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>ui-dist</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>

Keybase proof

I hereby claim:

  • I am CedricGatay on github.
  • I am cedricgatay (https://keybase.io/cedricgatay) on keybase.
  • I have a public key whose fingerprint is 8093 1796 FBFE 2411 B963 2CBD 44FA BF6E 6113 22F8

To claim this, I am signing this object:

@CedricGatay
CedricGatay / strip_play_services.gradle
Last active August 29, 2015 14:09 — forked from dmarcato/strip_play_services.gradle
Keep track of previous run to prevent restripping if nothing has changed
// adapted from https://gist.github.com/dmarcato/d7c91b94214acd936e42
def toCamelCase(String string) {
String result = ""
string.findAll("[^\\W]+") { String word ->
result += word.capitalize()
}
return result
}
@CedricGatay
CedricGatay / gist:055877128a3bf554f3f6
Created February 26, 2015 09:09
gcm-repository-maven-fragment.xml
<repositories>
<repository>
<id>gcm-server-repository</id>
<url>https://github.com/slorber/gcm-server-repository/raw/master/releases/</url>
</repository>
</repositories>
@CedricGatay
CedricGatay / 85-typematrix.rules
Created September 1, 2015 12:03
Colemak via udev
ACTION=="add", ATTR{idVendor}=="1e54", ATTR{idProduct}=="2030", RUN+="/usr/local/bin/set_typematrix_colemak_mapping"

Keybase proof

I hereby claim:

  • I am CedricGatay on github.
  • I am cedricgatay (https://keybase.io/cedricgatay) on keybase.
  • I have a public key whose fingerprint is 262E B7FB 9A44 F248 EA73 0362 3F06 F893 DF33 D566

To claim this, I am signing this object:

@CedricGatay
CedricGatay / isilis_be_cfonb.cfonb
Created March 27, 2017 08:10
Isilis BE test cfonb file
CFONB FILE