Instantly share code, notes, and snippets.

View gist:526e6cba8abcc9ce2651

FFMpeg Commands for Transcoding MTS video (from AVCHD-Lite Cameras, like Panasonic DMC-TS1/2)

Encoding parameters as for static ffmpeg-2.6.1-static build

720p -> H.264 (x264) video + AAC 128kbps audio:

Medium quality 720p:

ffmpeg -i 00001.MTS -threads 3 -y -vcodec libx264 -qscale 0 -acodec libvo_aacenc -ab 128k -ar 44100 -ac 2 -s 1280x720 -b 1M output.mp4

High quality 720p:

View gist:bd3d38587676aa707816


  • OSX 10.10.2
  • homebrew
  • development branch of pepyatka-server/pepyatka-html

Install nvm

brew install nvm

View bookmarklet.js
View reagent_datascript.cljs
(ns reagent-test.core
(:require [reagent.core :as reagent :refer [atom]]
[datascript :as d]
[cljs-uuid-utils :as uuid]))
(defn bind
([conn q]
(bind conn q (atom nil)))
View errors.clj
(ns example.errors)
(defn clean-address [params]
"Ensure (params :address) is present"
(if (empty? (params :address))
[nil "Please enter your address"]
[params nil]))
(defn clean-email [params]
"Ensure (params :email) matches *@*.*"
View yandex-mail.archive.user.js
// ==UserScript==
// @name «Yandex Mail Archive button»
// @namespace gurugray
// @author Sergey sergeev (gurugray)
// @version 0.2.4
// @homepage_url
// @description Создаём кнопку «В архив» на web-почте Яндекса
// @include http*://*/neo2/*
View vim.rb
# To use this recipe you have to:
# $ brew install python --framework
# $ mkdir ~/Frameworks
# $ ln -s "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework" ~/Frameworks
# $ brew install ./vim.rb
require 'formula'
require 'open-uri'
class Vim < Formula