Skip to content

Instantly share code, notes, and snippets.

View elklein96's full-sized avatar

Evan Klein elklein96

View GitHub Profile
@elklein96
elklein96 / ffmpeg.sh
Created July 21, 2018 19:38
Various ffmpeg commands for converting video and audio files.
# This script contains examples for converting media files between various encodings.
## Copy a media file with the same codec
ffmpeg -i input.mkv -c copy output.mp4
## Combine a video and audio file into one file
ffmpeg -i video.mp4 -i audio.mp3 -c copy output.mkv
## Extract the audio from a video file
ffmpeg -i input.mp4 -q:a 0 -map a output.mp3
@elklein96
elklein96 / .eslintrc.json
Created April 16, 2018 21:12
An eslint configuration file
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true
},
@elklein96
elklein96 / self_signed_certs.md
Created February 14, 2018 04:32
A quick guide for creating self-signed certificates using OpenSSL

Creating a Self-Signed Certificate

Prerequisites

  • You'll need to install OpenSSL to create and sign certificates.
    • Linux: sudo apt-get install openssl
    • MacOS: brew install openssl

Getting Started

@elklein96
elklein96 / ubuntu_node_docker.sh
Last active July 19, 2018 20:46
Script for installing Node and Docker on Ubuntu
#!/bin/bash
sudo apt-get update
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
mkdir ~/.npm-packages
npm config set prefix ~/.npm-packages
@elklein96
elklein96 / .zshrc
Last active October 25, 2017 16:13
Zsh Config
# Path to Oh-My-Zsh installation
export ZSH=/Users/evanklein/.oh-my-zsh
# Plugins
plugins=(git)
source $ZSH/oh-my-zsh.sh
# Configure prompt
export ZSH_THEME_GIT_PROMPT_PREFIX="[git:"