This file contains hidden or 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/sh | |
for FILE in $( ls public); do | |
jhead -exifmap "public/"$FILE | grep "Orientation" >/dev/null | |
if [ $? -eq 0 ] | |
then | |
echo "public/"$FILE | |
jhead -autorot "public/"$FILE | |
fi | |
done |
This file contains hidden or 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 com.cestpasdur; | |
import java.io.FileOutputStream; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import org.dbunit.database.DatabaseConnection; | |
import org.dbunit.database.IDatabaseConnection; | |
import org.dbunit.database.QueryDataSet; | |
import org.dbunit.dataset.xml.FlatXmlDataSet; |
This file contains hidden or 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
find -name "*.iml" -exec rm {} \; |
This file contains hidden or 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
//Affiche les index positionnés sur ma table | |
SHOW INDEX FROM MA_TABLE | |
SELECT | |
* | |
FROM | |
tblA, | |
tblB, |
This file contains hidden or 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 static com.google.common.collect.Maps.filterEntries; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import org.junit.Assert; | |
import org.junit.Test; |
This file contains hidden or 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
//Trouver une exception dans un répertoire | |
find . -name "*" | xargs grep ClassCastException | |
//Compresser un répertoire | |
tar cvzf plop.tgz lerepertoire |
This file contains hidden or 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
new File("D://myPath/").eachDirRecurse() { dir -> | |
dir.eachFileMatch(~/.*.properties/) { file -> | |
file.eachLine{ln -> | |
if ( ln =~/\.bat$/) { | |
path = ln.split("=")[1] | |
if (path.startsWith("D:/")){ | |
if (!new File(path).exists()){ | |
println file.path+" => "+ ln | |
} | |
} |
This file contains hidden or 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
#{extends 'main.html' /} | |
#{set title:'Home' /} | |
<script src="@{'/public/javascripts/require-1.0.4.js'}" type="text/javascript" charset="${_response_encoding}"></script> | |
<script> | |
require([ | |
"/public/javascripts/order.js!/public/javascripts/json2.js", | |
"/public/javascripts/order.js!/public/javascripts/jquery-1.7.1.min.js", |
This file contains hidden or 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
@Grab('org.fluttercode.datafactory:datafactory:0.8') | |
@GrabConfig(systemClassLoader=true) | |
import org.fluttercode.datafactory.impl.DataFactory; | |
@Grab('org.elasticsearch:elasticsearch:0.19.0') | |
@GrabConfig(systemClassLoader=true) | |
import org.elasticsearch.client.Client; | |
import org.elasticsearch.node.Node; | |
import org.elasticsearch.action.bulk.BulkRequestBuilder; |
This file contains hidden or 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 com.google.common.util.concurrent.*; | |
import org.junit.Test; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.util.concurrent.Callable; | |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.Executors; | |
public class FutureTest { |
OlderNewer