Skip to content

Instantly share code, notes, and snippets.

View DamionDamion's full-sized avatar

Damion Brown DamionDamion

View GitHub Profile
@DamionDamion
DamionDamion / .bashrc
Created July 23, 2018 01:01
Windows Subsystem for Linux ssh-agent bootstrap
##- WSL ssh-agent boostrap
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# ssh-agent configuration
if [ -z "$(pgrep ssh-agent)" ]; then
rm -rf /tmp/ssh-*
eval $(ssh-agent -s) > /dev/null
else
@DamionDamion
DamionDamion / stream.sh
Last active February 9, 2016 12:54
Linux stream to youtube via libav. (for distributions utilizing Aptitude)
#! /bin/bash
INRES="1366x768"
OUTRES="1366x768"
VBR="1800k"
FPS="30" # fps
QUAL="slow"
STREAM_KEY=$(cat ~/bin/youtube_key)
if [ $(dpkg-query -W -f='${Status}' libav-tools 2>/dev/null | grep -c "ok installed") -eq 0 ];