Skip to content

Instantly share code, notes, and snippets.

View FlowFX's full-sized avatar

Florian Posdziech FlowFX

View GitHub Profile
@FlowFX
FlowFX / ffmpeg.md
Created February 20, 2020 07:12 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@FlowFX
FlowFX / capybara_authlogic.md
Created December 5, 2018 06:40 — forked from bhalash/capybara_authlogic.md
Capybara, RSpec and AuthLogic

RSpec, Capybara and AuthLogic

This gist is dedicated to all of my fellow clueless n00bs who are frightened by the combination of [RSpec][1], [Capybara][2] and [Authlogic][3].

This gist will not tell you how to install Ruby, Rails, RSpec, Capybara or Authlogic. For the most part, you can install any of these by running either:

brew install <packagename>
bundle install <packagename>

At the point in time that you reach this gist, you should have all of them installed.

@FlowFX
FlowFX / test_django_template_syntax.py
Last active July 5, 2017 14:53 — forked from magopian/tests.py
Unit test to validate django templates
"""Test templates for syntax errors."""
import os
import glob
from importlib import import_module
from django.conf import settings
from django.template import TemplateSyntaxError, Template