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:
-module(hello). | |
-export([hello/1]). | |
hello(robert) -> | |
io:format("Hello, Mike."); | |
hello(joe) -> | |
io:format("Hello, Robert."); | |
hello(mike) -> | |
io:format("Hello, Joe."). |
#!/usr/bin/env bash | |
set -x | |
term_handler() { | |
echo "Stopping the server process with PID $PID" | |
erl -noshell -name "[email protected]" -eval "rpc:call('[email protected]', init, stop, [])" -s init stop | |
echo "Stopped" | |
} | |
trap 'term_handler' TERM INT |
echo "$STRING" | iconv -t ascii//TRANSLIT | sed -r s/[^a-zA-Z0-9]+/-/g | sed -r s/^-+\|-+$//g | tr A-Z a-z |
#!/bin/env ruby | |
# Logs the number of queued and active connections on the unicorn socket to statsd. | |
# There's a cap on the number of queued connections. If we hit it then nginx will | |
# start serving 504 pages | |
# | |
# There is no visible output, but data is sent to statsd each second | |
# | |
# Props to Tim Lucas for the basic structure: | |
# |
I think you mean team... | |
I think you mean squad.. | |
I think you mean gang... | |
I think you mean pals... | |
I think you mean buds... | |
I think you mean posse... | |
I think you mean phalanx... | |
I think you mean crew... | |
I think you mean crüe... | |
I think you mean nerds... |
curl --silent 'https://www.wikidata.org/w/api.php?action=wbsearchentities&search=ch&format=json&language=en&type=item&continue=0' | python -m json.tool | |
{ | |
"search": [ | |
{ | |
"aliases": [ | |
"encyclopaedia", | |
"encyclop\u00e6dia" | |
], | |
"description": "type of reference work", | |
"id": "Q5292", |
defmodule MyBlog.Repo.Migrations.CreatePost do | |
use Ecto.Migration | |
def change do | |
create table(:posts, primary_key: false) do | |
add :id, :uuid, primary_key: true | |
add :body, :string | |
add :word_count, :integer | |
timestamps |
You got your hands on some data that was leaked from a social network and you want to help the poor people.
Luckily you know a government service to automatically block a list of credit cards.
The service is a little old school though and you have to upload a CSV file in the exact format. The upload fails if the CSV file contains invalid data.
The CSV files should have two columns, Name and Credit Card. Also, it must be named after the following pattern:
YYYYMMDD
.csv.
From f5908efac9f55216d5aabdee72687b2b47f1c89c Mon Sep 17 00:00:00 2001 | |
From: Chang Liu <[email protected]> | |
Date: Mon, 13 Apr 2015 09:36:31 +0000 | |
Subject: [PATCH] Add support for linux-musl in build system. Fix glibc | |
assumptions in code. | |
--- | |
autoconf/config.sub | 7 +++++-- | |
lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp | 2 +- | |
lib/Support/DynamicLibrary.cpp | 4 ++-- |