Skip to content

Instantly share code, notes, and snippets.

View flaviotoribio's full-sized avatar

Flavio Toribio flaviotoribio

View GitHub Profile
@flaviotoribio
flaviotoribio / asdf.zsh
Created February 27, 2023 17:57
ohmyzsh asdf nodejs version macovsky theme
# ~/.ohmyzsh/custom/asdf.zsh
# get the asdf tool version
# example: asdf_prompt_info nodejs
function asdf_prompt_info() {
if [[ -n $1 ]]; then
which asdf &>/dev/null || return
local asdf_prompt
if asdf_prompt=$(asdf current "$1" 2>/dev/null); then
local asdf_tool_version=$(echo "$asdf_prompt" | awk '{print $2}')
@flaviotoribio
flaviotoribio / vimeo.sh
Created June 21, 2017 08:24
Vimeo.com 4K DASH downloader and merger shell script
#!/bin/bash
# Vimeo.com 4K DASH downloader and merger shell script
# by Flavio Toribio (github.com/flaviotoribio)
# Tested on Ubuntu/Debian and Windows (Cygwin)
# Needs Python 2.7, wget and ffmpeg
# Usage:
# ./vimeo.sh <url to the master.json file of the vimeo video>
@flaviotoribio
flaviotoribio / materializecss_datepicker_pt-br.js
Created August 19, 2016 20:43
MaterializeCSS 0.97.7 Datepicker Portuguese Brazil (PT-BR) Language I18N Calendário
var datePickerPtBr = {
selectMonths: true,
selectYears: 15,
labelMonthNext: 'Próximo mês',
labelMonthPrev: 'Último mês',
labelMonthSelect: 'Selecione o mês',
labelYearSelect: 'Selecione o ano',
monthsFull: [ 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro' ],
monthsShort: [ 'Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez' ],
weekdaysFull: [ 'Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado' ],
@flaviotoribio
flaviotoribio / durtree.sty
Created April 12, 2016 00:19
(LaTeX only) dirtree/durtree with sane pagebreaks v0.32
% This file was durtree.sty from this link:
% http://tex.stackexchange.com/a/6514/102958
% It was modified by TH from that link to support pagebreaks nicely,
% but it was for an older version (0.1) of the package.
% It is now updated to version 0.32 by Flavio Toribio.
%
% This file was dirtree.tex. It was modified by TH. to support
% splitting the tree at pagebreaks sanely. It has been renamed to
% durtree.sty. It will now only work with LaTeX. It is meant as a
% quick hack to solve the problem at hand. Any bugs in it are my own,