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

Prereqs

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

Install nvm

brew install nvm

View bookmarklet.js
javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('src','https://cdn.rawgit.com/falsefalse/dc7bb726add8b19a741c/raw/bcb52121789465edc635ca9f244c21a997b00d04/share.js');document.body.appendChild(e)})())
View reagent_datascript.cljs
(ns reagent-test.core
(:require [reagent.core :as reagent :refer [atom]]
[datascript :as d]
[cljs-uuid-utils :as uuid]))
(enable-console-print!)
(defn bind
([conn q]
(bind conn q (atom nil)))
View frontendDevlopmentBookmarks.md
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 https://raw.github.com/gist/2181532/yandex-mail.archive.user.js
// @description Создаём кнопку «В архив» на web-почте Яндекса
// @include http*://mail.yandex*/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