Skip to content

Instantly share code, notes, and snippets.

View karrirasinmaki's full-sized avatar

Karri Rasinmäki karrirasinmaki

  • Helsinki, Finland
View GitHub Profile
@karrirasinmaki
karrirasinmaki / deshake.sh
Last active August 10, 2020 11:15
A little script to stabilize given video file
#!/bin/bash
##
# Deshake script.
#
# This script uses vidstab library with ffmpeg. You need a version of ffmpeg with vidstab.
# Read more about vid.stab and its params: https://github.com/georgmartius/vid.stab
#
# author: @karrirasinmaki
####
@karrirasinmaki
karrirasinmaki / proxies.sh
Last active March 24, 2021 13:16
Bash script to generate proxies from videos and audios.
#!/bin/bash
# helpful resource: http://macilatthefront.blogspot.com/2018/12/tutorial-using-ffmpeg-for-dnxhddnxhr.html
# Usage:
# proxies.sh -t audio -t video -s ./media-path -p ./proxy-path
quality="lb"
codec="dnxhr"
suffix_video="${SUFFIX_VIDEO:-mxf}"
suffix_audio="wav"
@karrirasinmaki
karrirasinmaki / LESS mixin for CSS arrow
Last active April 27, 2017 16:17 — forked from julienchazal/LESS mixin for CSS arrow
LESS mixin for CSS arrow
/* ------------------------ */
/* LESS mixin for CSS arrow */
/* ------------------------ */
/* https://github.com/HugoGiraudel/LESS-Mixin-for-CSS-arrows
Source: https://gist.github.com/karrirasinmaki/f5b665461e78ef76758cd7007a40cd25
Original source: https://gist.github.com/julienchazal/11044351
//Usage
<?php
class comment_walker extends Walker_Comment {
var $tree_type = 'comment';
var $db_fields = array( 'parent' => 'comment_parent', 'id' => 'comment_ID' );
// constructor – wrapper for the comments list
function __construct() { ?>
<section class="comments-list">
@karrirasinmaki
karrirasinmaki / Data-Binder.markdown
Last active January 3, 2016 01:29
A Pen by Karri Rasinmäki.

Data Binder

Data binding example. Makes a link between items, so changing data in one item changes every linked items' data.

A Pen by Karri Rasinmäki on CodePen.

License.