Skip to content

Instantly share code, notes, and snippets.

View boboben1's full-sized avatar
🏠
Working from home

Ben boboben1

🏠
Working from home
  • Brecher Trading, LLC
View GitHub Profile
@boboben1
boboben1 / resolve-tsconfig-path-to-webpack-alias.js
Last active January 16, 2019 17:53 — forked from nerdyman/resolve-tsconfig-path-to-webpack-alias.js
Convert TypeScript tsconfig paths to webpack alias paths
const { resolve } = require('path');
/**
* Resolve tsconfig.json paths to Webpack aliases
* @return {object} - Webpack alias config
*/
function resolveTsconfigPathsToAlias({
tsconfigPath = './tsconfig.json',
webpackConfigBasePath = './'},
) {
@boboben1
boboben1 / install_ffmpeg_libfdkaac.sh
Last active December 20, 2017 01:07 — forked from rafaelbiriba/install_ffmpeg_libfdkaac.sh
Install FFmpeg with libfdk_aac support (For Ubuntu)
# Criando um script .sh para executar todos os comandos:
#root@servidor:~# vi script.sh
#root@servidor:~# chmod +x script.sh
#root@servidor:~# ./script.sh
apt-get update
apt-get -y install autoconf automake build-essential git-core libass-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libvdpau-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev libmp3lame-dev nasm gcc yasm && true
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
@boboben1
boboben1 / waitForKeyElements.js
Created March 22, 2017 13:44 — forked from BrockA/waitForKeyElements.js
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);