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:
echo "Creating an SSH key for you..." | |
ssh-keygen -t rsa | |
echo "Please add this public key to Github \n" | |
echo "https://github.com/account/ssh \n" | |
read -p "Press [Enter] key after this..." | |
echo "Installing xcode-stuff" | |
xcode-select --install |
#!/bin/bash | |
## Install Golang Stable 64Bits on Linux (Debian|Ubuntu|OpenSUSE|CentOS) | |
## http://www.linuxpro.com.br/2015/06/golang-aula-1-instalacao-da-linguagem-no-linux.html | |
## Run as root (sudo su) | |
## Thank's @geosoft1 | @gwmoura | |
GO_URL="https://go.dev/dl" | |
GO_VERSION=$(curl -s 'https://go.dev/VERSION?m=text'|head -n1) | |
GO_FILE="$GO_VERSION.linux-amd64.tar.gz" |
version: '2' | |
services: | |
db: | |
image: mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=mypass | |
- constraint:node==node01 | |
networks: | |
- backend |
// | |
// An Observer class intended to show how KVO works on operations and queues | |
// | |
// Created by Barbara Rodeker on 3/3/16. | |
// | |
// This program is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// |
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
#!/usr/bin/env bash | |
graceful_exit() { | |
# include this line: trap graceful_exit TERM INT HUP | |
echo "Exit requested..." | |
local timeout=${1:-4} | |
local list="" | |
for c in $(ps -o pid= --ppid $$); do | |
# request children shutdown | |
kill -0 ${c} 2>/dev/null && kill -TERM ${c} && list="$list $c" || true |
Counting files in S3 buckets and folders is harder than it should be. But here's a way to get it done using s3cmd:
brew install s3cmd
From the command line, run s3cmd --configure
Add your credentials when prompted.