Skip to content

Instantly share code, notes, and snippets.

View waldyrious's full-sized avatar

Waldir Pimenta waldyrious

View GitHub Profile
@waldyrious
waldyrious / mako.py
Last active January 1, 2018 10:57 — forked from mwaskom/vernalis.py
Colormap with a similar aesthetic to viridis but with a broader luminance range.
# Data imported from https://github.com/mwaskom/seaborn/blob/master/seaborn/cm.py#L264-L521
from matplotlib.colors import ListedColormap
from numpy import nan, inf
cm_data = [
[ 0.04503935, 0.01482344, 0.02092227],
[ 0.04933018, 0.01709292, 0.02535719],
[ 0.05356262, 0.01950702, 0.03018802],
[ 0.05774337, 0.02205989, 0.03545515],
@waldyrious
waldyrious / tldr.sh
Last active December 20, 2018 18:10
simple shell client for tldr pages
#!/bin/bash
# shellcheck disable=SC2002
# 1) Put this file into your local clone of git://github.com/tldr-pages/tldr:
# curl -L https://gist.github.com/waldyrious/805d6357fa0b55135354ea4b996e0818/raw/ -o path/to/tldr-repo/tldr.sh
# 2) Mark it as executable:
# chmod +x path/to/tldr-repo/tldr.sh
# 3) symlink it into /usr/local/bin:
# sudo ln -s /absolute/path/to/tldr-repo/tldr.sh /usr/local/bin/tldr
@waldyrious
waldyrious / gist:86cc5a8b947e75d941383f481ace7601
Created August 22, 2016 22:15 — forked from joshhartman/randomPassword.php
Human Readable Password Generator
<?php
function randomPassword($len = 8){
/* Programmed by Christian Haensel
** christian@chftp.com
** http://www.chftp.com
**
** Exclusively published on weberdev.com.
** If you like my scripts, please let me know or link to me.
** You may copy, redistribute, change and alter my scripts as
** long as this information remains intact.