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
pwaldhauer / make_webvideo.sh
Created Sep 15, 2014
Create HTML5 <video> tag-ready videos and a poster screenshot.
View make_webvideo.sh
#!/bin/bash
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
staltz / introrx.md
Last active Nov 12, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
@paulrouget
paulrouget / ff.md
Last active Mar 11, 2019 — forked from operatorjen/ff.md
Hacking Firefox
View ff.md
@mikaa123
mikaa123 / havesome
Last active Aug 29, 2015
Makes your browser drink
View havesome
-----------------------------------------------------------------------------
"THE BEER-WARE LICENSE" (Revision 42):
<misokol123@gmail.com> 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
-----------------------------------------------------------------------------
eval(atob("\
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
Saeven / gist:7832090
Last active Nov 6, 2017
RAW Curl Post to AWS Kinesis with PHP
View gist:7832090
<?php
/*
POST / HTTP/1.1
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
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
mkleucker / gist:5233150
Created Mar 24, 2013
Hide the iTerm2 Dock icon.
View gist:5233150
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist
@piscisaureus
piscisaureus / pr.md
Created Aug 13, 2012
Checkout github pull requests locally
View pr.md

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 = git@github.com:joyent/node.git

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

Events

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