Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Recloux trecloux

View GitHub Profile
@trecloux
trecloux / mixer.sh
Created Feb 7, 2018
Ch'tiJUG video mixer
View mixer.sh
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 / docker-compose.yml
Last active Jun 14, 2017
Simple docker-compose
View docker-compose.yml
version: '2.1'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
@trecloux
trecloux / feedly.user.js
Last active Jun 2, 2020 — forked from micbase/feedly.user.js
Feedly Tweak - Open feed item in background by pressing 'v'
View feedly.user.js
// ==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;
View jenkins-cleanup.groovy
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)
View 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 / pom.xml
Last active Dec 18, 2015
Maven yeoman plugin declaration
View pom.xml
<!-- 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>
@trecloux
trecloux / Gruntfile.js
Last active Dec 18, 2015
Grunt proxy configuration
View Gruntfile.js
// 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 / gist:4348782
Created Dec 20, 2012
Java 8 lambda type inference question
View gist:4348782
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 {
You can’t perform that action at this time.