Skip to content

Instantly share code, notes, and snippets.

View craigboman's full-sized avatar

Craig Boman craigboman

View GitHub Profile
@craigboman
craigboman / ffmpeg.md
Created April 30, 2019 18:14 — 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:

from configparser import ConfigParser
from base64 import b64encode
import requests
import json
import re
# get the api paramaters from the configuration file
# config file looks like this:
# [api]
# base_url = https://sierra-test.library.org/iii/sierra-api/v5
@craigboman
craigboman / [FEDORA] gitkraken
Created August 14, 2017 19:28 — forked from aelkz/[FEDORA] gitkraken
How to install gitkraken on Fedora 25 + launcher icon
#!/bin/bash
# Download GitKraken
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz
# copy the downloaded file into /opt directory
cp gitkraken-amd64.tar.gz /opt/gitkraken
cd /opt
@craigboman
craigboman / rstudio-cc.yml
Last active April 25, 2017 00:04 — forked from mdlincoln/rstudio-cc.yml
cloud-config script to setup Rstudio server and Shiny server on Ubuntu 14.04 on Digital Ocean
#cloud-config
# In order to access RStudio server via the web interface, you must log on with
# a user account that allows password access. This script does not add that user
# by default. You may either ssh as root into the server and `adduser` as
# normal, or script a user addition here:
# users:
# - name: # username #
# lock-passwd: false # allow login with password