Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
import re | |
from django import forms | |
from django.contrib.auth.models import User | |
from django.contrib.auth.forms import UserCreationForm | |
class UniqueUserEmailField(forms.EmailField): | |
""" | |
An EmailField which only is valid if no User has that email. | |
""" | |
def validate(self, value): |
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
-- -- | |
-- mysql -- | |
-- -- | |
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
-- | |
-- mysql <http://sqlfiddle.com/#!9/91afb5/2> | |
-- note: sqlfiddle is very stupid |
#!/bin/bash | |
# | |
# NVM lazy loading script | |
# | |
# NVM takes on average half of a second to load, which is more than whole prezto takes to load. | |
# This can be noticed when you open a new shell. | |
# To avoid this, we are creating placeholder function | |
# for nvm, node, and all the node packages previously installed in the system | |
# to only load nvm when it is needed. |
module A exposing (..) | |
import Json.Decode as JD | |
import Json.Encode as JE | |
type alias User = | |
{ id : Int | |
, theme : Theme | |
} |
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next
, right?
+ webpack@4.0.0-beta.2
#!/bin/sh | |
ON_OFF=$1 | |
SPOTIFY_PREFS="$HOME/Library/Application Support/Spotify/prefs" | |
PROXY_ON="network.proxy.mode=2" #HTTP Proxy | |
PROXY_OFF="network.proxy.mode=1" #No proxy | |
if [ ! -f "$SPOTIFY_PREFS" ]; then | |
echo "Spotify preference file not found. Exiting" | |
exit 1 |