This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# arp -ani en0 | |
# ^^ Get MAC addrs of other users on same network. | |
# Change en0 to your network interface. | |
# On macos, this can be seen through: | |
# networksetup -listallhardwareports | |
# sudo ifconfig en0 ether $MAC | |
# ^^ replace $MAC with an addr from above command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Elliot Schep | |
email = **** | |
[core] | |
excludesfile = ~/.gitignore | |
pager = diff-so-fancy | less --tabs=1,5 -R | |
editor = /usr/bin/atom | |
[credential] | |
helper = osxkeychain | |
[alias] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timeout = 1000; | |
this.stream = await navigator.mediaDevices.getUserMedia({ audio: true }); | |
const recorder = new MediaRecorder(this.stream); | |
recorder.addEventListener('dataavailable', ({ data }) => this.upload(data)); | |
recorder.addEventListener('stop', () => { | |
recorder.start(); | |
setTimeout(() => recorder.stop(), timeout); | |
}); | |
recorder.start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FFmpeg config args: | |
# Base CONFIG_ARGS | |
--target-os=none # use none to prevent any os specific configurations | |
--arch=x86_32 # use x86_32 to achieve minimal architectural optimization | |
--enable-cross-compile # enable cross compile | |
--disable-x86asm # disable x86 asm | |
--disable-inline-asm # disable inline asm | |
--disable-stripping # disable stripping | |
--disable-programs # disable programs build (incl. ffplay, ffprobe & ffmpeg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/bash -x | |
set -e -o pipefail | |
# I follow [this](https://emscripten.org/docs/getting_started/downloads.html) to install emscripten manually | |
# then source the env file | |
source ../emsdk/emsdk_env.sh | |
# I manually run these steps to compile x264 | |
# cd ~/ffmpeg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rootDir=~/code/svn-stash | |
function stash { | |
today=$(date +"%Y-%m-%d-%H-%M-%S") | |
patchName=$rootDir/$today.patch | |
newFiles=$(svn status --no-ignore | grep -E '(^\?)|(^\I)' | sed -e 's/^. *//') | |
echo 'Include unversioned files?' |