Skip to content

Instantly share code, notes, and snippets.

@azanium
azanium / .vimrc
Created November 2, 2018 01:53
Vim Config
" 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'
@azanium
azanium / .zshrc
Last active March 15, 2022 03:55
# 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"
@azanium
azanium / busboy-UploadS3
Last active July 8, 2018 13:22 — forked from andrepadez/gist:9132454
Streamed Upload to S3 using busboy
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) {
@azanium
azanium / jwtRS512.sh
Last active May 15, 2024 18:03 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS512 key
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
@azanium
azanium / ffmpeg-install.sh
Last active June 9, 2018 04:35 — forked from clayton/ffmpeg-install.sh
Install FFMPEG on OS X with HomeBrew to convert Mp4 to WebM
# 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