Skip to content

Instantly share code, notes, and snippets.

View thistac's full-sized avatar

Thiago Magalhães de Estacio thistac

View GitHub Profile
@thistac
thistac / config
Last active September 2, 2022 15:33
~/.ssh/config Configuration ssh file github (OpenSSH)
# If you don't already have an SSH key:
# ssh-keygen -t ed25519 -C "example@email.com"
# Generating public/private ed25519 key pair.
# Enter file in which to save the key (/home/user/.ssh/id_ed25519): /home/user/.ssh/[save-name]
# ......
# Then copy pub to github config page:
# cat /home/user/.ssh/[save-name].pub | xclip -i
# In /home/user/.ssh/config put:
@thistac
thistac / .zshrc
Last active March 8, 2021 19:35
ZSH Basic Config Ubuntu
#sudo passwd $USER
#sudo apt-get install git zsh chroma zsh-autosuggestions zsh-syntax-highlighting command_not_found locales
#sudo locale-gen pt_BR.UTF-8
#sudo dpkg-reconfigure locales
#sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
@thistac
thistac / docker-compose.yml
Created March 7, 2021 02:12
Simple Traefik with cloudflare, letsencrypt dns-chalange using secrets
version: "3.9"
services:
traefik:
image: "traefik:v2.4"
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
@thistac
thistac / conf.d_rrdtoolcgi.conf
Last active July 27, 2020 00:07
Lighttpd mod rrdtool with rrdcgi on the fly
## Modules
server.modules += ( "mod_cgi" )
server.modules += ( "mod_rrdtool" )
rrdtool.binary = "/usr/bin/rrdtool"
rrdtool.db-name = "/rrd/lighttpd/lighttpd.rrd"
##rrdcgi
cgi.assign += ( ".rrdcgi" => "/usr/bin/rrdcgi")
##Files
@thistac
thistac / parse-tcpdump-udp-port-53.php
Created December 16, 2016 01:25 — forked from jtai/parse-tcpdump-udp-port-53.php
Quick and dirty script to parse output of /usr/sbin/tcpdump -vvv -s 0 -l port 53
<?php
// quick and dirty argument parsing
foreach ($argv as $arg) {
if ($arg == '-f') {
define('FOLLOW', true);
}
if ($arg == '-h') {
define('HISTOGRAM', true);
}