This file contains hidden or 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
| " be iMproved, it's 21st Century ;-) | |
| " | |
| set nocompatible | |
| " no need filetype to load plugins | |
| filetype off | |
| " specify a directory for plugins | |
| " | |
| " - Avoid using standard Vim directory names like 'plugin' |
This file contains hidden or 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
| # export ANDROID_HOME=/Users/suhendra/Library/Android/sdk | |
| # export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home | |
| # export DRONE_SERVER=https://drone-dev.auto.pink.cat | |
| # export DRONE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXh0IjoiYXphc3RybyIsInR5cGUiOiJ1c2VyIn0.k8ljaYTXSlfKCucFtmJ9i_5QJqwPamKfQ2_03-7yLGI | |
| # export KUBECONFIG=~/.kube/sso_nonprod_config | |
| export LDFLAGS="-L/usr/local/opt/openssl/lib -undefined dynamic_lookup $LDFLAGS" | |
| export CXXFLAGS="-I/usr/local/opt/openssl/include $CXXFLAGS" | |
| export CFLAGS="-I/usr/local/opt/openssl/include $CFLAGS" | |
| SPACESHIP_CHAR_SYMBOL=" \uf0e7" |
This file contains hidden or 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
| var Busboy = require('busboy'); //A streaming parser for HTML form data: https://github.com/mscdex/busboy | |
| var generateId = require('time-uuid'); | |
| //** Handler to recive file uploads via stream | |
| module.exports.boUpload = { | |
| method: 'POST', | |
| path: '/upload/', | |
| config:{ | |
| payload: 'stream' | |
| }, | |
| handler: function (request) { |
This file contains hidden or 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
| ssh-keygen -t rsa -b 4096 -e SHA512 -f jwtRS512.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS512.key -pubout -outform PEM -out jwtRS512.key.pub | |
| cat jwtRS512.key | |
| cat jwtRS512.key.pub |
This file contains hidden or 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
| # Installation | |
| brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid | |
| # Easy Peasy | |
| ffmpeg -i video.mp4 video.webm | |
| # Encode to aac with mp4 container | |
| ffmpeg -i taha.mp3 -c:a libfdk_aac -b:a 128k taha.m4a | |
| # Encode to vorbis |
NewerOlder