Skip to content

Instantly share code, notes, and snippets.

Max Kleucker mkleucker

Block or report user

Report or block mkleucker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
pwaldhauer /
Created Sep 15, 2014
Create HTML5 <video> tag-ready videos and a poster screenshot.
echo "MP4"
#ffmpeg -i $1 -vcodec libx264 -vprofile slow -vprofile baseline -b:v 1500k -b:a 64k -g 30 $1.mp4
ffmpeg -i $1 -vcodec libx264 -vprofile slow -vprofile baseline -b:v 1500k -an -g 30 $1.mp4
echo "webm (VP8 / Vorbis)"
#ffmpeg -i $1 -b:v 1500k -b:a 64k -vcodec libvpx -acodec libvorbis -f webm -g 30 $1.webm
ffmpeg -i $1 -b:v 1500k -b:a 64k -vcodec libvpx -an -f webm -g 30 $1.webm
staltz /
Last active Nov 12, 2019
The introduction to Reactive Programming you've been missing
paulrouget /
Last active Mar 11, 2019 — forked from operatorjen/
Hacking Firefox
mikaa123 / havesome
Last active Aug 29, 2015
Makes your browser drink
View havesome
"THE BEER-WARE LICENSE" (Revision 42):
<> wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return. -Michaël Sokol
dmFyIGpxID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnc2NyaXB0Jyk7CmpxLnNyYyA9ICIvL2N \
View apache-and-tomcat-logs.json
"title": "Apache and Tomcat Logs",
"services": {
"query": {
"list": {
"0": {
"query": "apache !tomcat !static",
"alias": "",
"color": "#7EB26D",
"id": 0,
Saeven / gist:7832090
Last active Nov 6, 2017
RAW Curl Post to AWS Kinesis with PHP
View gist:7832090
Host: kinesis.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
LeaVerou / dabblet.css
Created Nov 23, 2013
(C)Leanest CSS spinner ever
View dabblet.css
* (C)Leanest CSS spinner ever
@keyframes spin {
to { transform: rotate(1turn); }
.progress {
position: relative;
mkleucker / gist:5233150
Created Mar 24, 2013
Hide the iTerm2 Dock icon.
View gist:5233150
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/
piscisaureus /
Created Aug 13, 2012
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

View gist:2597326

Moving from jQuery


// jQuery
$(document).ready(function() {
  // code
You can’t perform that action at this time.