Skip to content

Instantly share code, notes, and snippets.

@trecloux
trecloux / keybase.md
Created June 2, 2015 15:56
keybase.md

Keybase proof

I hereby claim:

  • I am trecloux on github.
  • I am trecloux (https://keybase.io/trecloux) on keybase.
  • I have a public key whose fingerprint is 4C3F 3816 F28B EF68 CE69 A601 F137 375E CF82 E73B

To claim this, I am signing this object:

@trecloux
trecloux / gist:4348782
Created December 20, 2012 21:37
Java 8 lambda type inference question
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static java.util.Arrays.asList;
import static org.fest.assertions.Assertions.assertThat;
public class LambdaSample {
@trecloux
trecloux / Gruntfile.js
Last active December 18, 2015 08:39
Grunt proxy configuration
// Juts after var lrSnippet ....
var proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest;
/* ...... */
// Modify the connect task configuration : add proxies section and insert 'proxySnippet' in the middleware
connect: {
proxies: [
{
context: '/rest',
@trecloux
trecloux / pom.xml
Last active December 18, 2015 08:48
Maven yeoman plugin declaration
<!-- Declare the maven yeoman plugin to launch npm, grunt and bower during the build -->
<plugin>
<groupId>com.github.trecloux</groupId>
<artifactId>yeoman-maven-plugin</artifactId>
<version>0.1</version>
<executions>
<execution>
<goals>
<goal>build</goal>
</goals>
import hudson.model.*
import hudson.tasks.*
for(item in Hudson.instance.items) {
print("job "+item.name)
item.buildDiscarder = new LogRotator(-1, 5, -1, -1)
println (" configured")
}
for(item in Hudson.instance.items) {
print("job "+item.name)
@trecloux
trecloux / docker-compose.yml
Last active June 14, 2017 14:24
Simple docker-compose
version: '2.1'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
@trecloux
trecloux / mixer.sh
Created February 7, 2018 16:20
Ch'tiJUG video mixer
ffmpeg -i laptop.mov -i speaker.mov -i background.png -filter_complex "
nullsrc=size=1920x1080 [base];
[0:v] setpts=PTS-STARTPTS, scale=1280x720 [laptop];
[1:v] setpts=PTS-STARTPTS, scale=1280x720, crop=w=640:h=720:x=320:y=0 [speaker];
[2:v] scale=1920x1080 [background];
[base][background] overlay=shortest=0 [base+background];
[base+background][laptop] overlay=shortest=1:y=180 [background+laptop];
[background+laptop][speaker] overlay=shortest=1:x=1280:y=180
" -map 0:a output.mov
@trecloux
trecloux / feedly.user.js
Last active June 2, 2020 22:04 — forked from micbase/feedly.user.js
Feedly Tweak - Open feed item in background by pressing 'v'
// ==UserScript==
// @name Feedly Tweak - Open feed item in background by pressing 'v'
// @namespace http://micbase.com/feedly-tweak-open-item-background-tab-firefox
// @description Feedly Tweak - Open feed item in background by pressing 'v'
// @include http*://feedly.com/*
// @grant GM.openInTab
// ==/UserScript==
var x;
var link;