Skip to content

Instantly share code, notes, and snippets.

View jebeaudet's full-sized avatar

Jacques-Etienne Beaudet jebeaudet

  • Coveo
  • Quebec, Canada
View GitHub Profile
ffmpeg -i rtsp://192.168.XXX.XXX:554/unicast -b 900k -vcodec copy -r 60 -y MyVdeoFFmpeg.avi
@jebeaudet
jebeaudet / gist:f433ccd80fdc235b0931d998dab2e08b
Created May 31, 2017 01:23
Rename directory and folders recursive windows powershell
Get-ChildItem -Recurse | Rename-Item -NewName { $_.name -replace "ô","o" -replace "é","e" -replace "è","e" -replace "à","a" -replace "À"."A" -replace "È","E" -replace "Î","I" -replace "î","i" }
@jebeaudet
jebeaudet / gist:325fdb7ebe5bce621bde8da112f340e8
Created May 30, 2017 12:38
Live docker logs by attaching to the container
# Don't forget the sig-proxy option otherwise your ctrl-c will be passed to the running container!
docker attach --sig-proxy=false authorization_server
@jebeaudet
jebeaudet / gist:6c3934bad750fde4d13572af56ee9618
Created May 30, 2017 12:35
Colored grep that highlight pattern
grep --color -E "pattern|$"
import org.eclipse.jetty.http.HttpHeader;
import org.springframework.cloud.netflix.zuul.filters.ProxyRequestHelper;
import org.springframework.stereotype.Component;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
@Component
public class XForwardedHeadersPreFilter extends ZuulFilter
{