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.

class ServicesAgreementWizardGeneralInformation(ServicesAgreementWizard):
"""Step 1 of the ServicesAgreement wizard."""
form_class = GeneralInformationForm
def form_valid(self, form):
"""..."""
obj = self.object
if not obj.contractor:
$( function() {
// init Isotope
var $container = $('#container');
// init
$container.isotope({
// options
itemSelector: '.item',
// layoutMode
masonry: {
columnWidth: '.item'/2
@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

Keybase proof

I hereby claim:

  • I am flowfx on github.
  • I am flowfx (https://keybase.io/flowfx) on keybase.
  • I have a public key whose fingerprint is E493 8659 B54B B6B7 26E1 7D97 9DFE 19DE 5F6B FA2A

To claim this, I am signing this object: