Skip to content

Instantly share code, notes, and snippets.

View zandao's full-sized avatar
💭
I will be slow to respond.

Alexandre "Zandao" Drummond zandao

💭
I will be slow to respond.
  • Belo Horizonte - Brazil
  • X @zandao
View GitHub Profile
@zandao
zandao / README_petcare_quarkus.md
Last active March 23, 2022 15:59 — forked from faermanj/README.md
TDC 2022 - Aplicacoes Seguras com Quarkus

Aplicações Seguras com Quarkus e Keycloak

Julio @faermanj
https://faermanj.me
https://caravana.cluoud
https://gist.github.com/faermanj/270a8a8ab817f95fc2e350ec2d481bd2

Agenda

Aplicação estilo "microserviços" ("PetCare")

@zandao
zandao / gist:231cdb73ab2c35eaa29302c424777a4e
Created February 18, 2022 13:48 — forked from yuezhu/gist:47b15b4b8e944221861ccf7d7f5868f5
Generate self-signed certificate for HAProxy
# Generate a unique private key (KEY)
sudo openssl genrsa -out mydomain.key 2048
# Generating a Certificate Signing Request (CSR)
sudo openssl req -new -key mydomain.key -out mydomain.csr
# Creating a Self-Signed Certificate (CRT)
openssl x509 -req -days 365 -in mydomain.csr -signkey mydomain.key -out mydomain.crt
# Append KEY and CRT to mydomain.pem
@zandao
zandao / list_noto_font_languages.sh
Created July 16, 2021 21:46
Prints the list of languages supported by the Noto fonts installed in the system/user
#!/usr/bin/env bash
noto_font_directories=$(fc-list | grep -E '\/Noto[A-Z]' | awk -F '/Noto' '{$NF=""; print $0}' | sort | uniq | tr "\n" " ")
echo $noto_font_directories | xargs ls |
awk -F '-' '{print $1}' |
awk '{ gsub("/^NotoSerif|^NotoSans|^NotoColorEmoji.+|^NotoMusic.+|.+Symbols.*|.+Math.*|.+Gothic.+|Noto|Mono|CJK|Serif","");
if ($0 ~ /^[A-Za-z]/) { print}}' |
sort | uniq | tr "\n" " "
@zandao
zandao / old_freebsd_workstation_setup.sh
Last active July 16, 2021 20:33 — forked from JeremyMorgan/workstationsetup.sh
Setup for my FreeBSD Workstation
# This may be runnable as a script, but keep in mind -y is not always acknowledged.
# These are the drop dead basics
pkg -y install vim
pkg -y install git
pkg -y install chromium
pkg -y install gimp
pkg -y install sudo
# Install Rust
@zandao
zandao / cli.py
Created April 12, 2012 18:06
CLI autocomplete for those who miss ipython autocomplete features in python REPL
import os
import sys
import string
class cli:
prompt = '# '
def __init__(self):
try:
import readline