Skip to content

Instantly share code, notes, and snippets.

View ayr-ton's full-sized avatar
⛩️
In the zone

Ayrton ayr-ton

⛩️
In the zone
  • Thoughtworks
  • Belo Horizonte
View GitHub Profile
@ayr-ton
ayr-ton / rails.bat
Created October 8, 2016 00:06 — forked from diogolundberg/rails.bat
Workaround to Rails installer 3.2.0
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"%~dp0ruby.exe" "%~dp0rails" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"%~dp0ruby.exe" "%~dpn0" %*
@ayr-ton
ayr-ton / git-forget-blob
Created May 22, 2018 21:05
Completely remove a file from a git repository history
#!/usr/bin/env bash
# Completely remove a file from a git repository history
#
# Copyleft 2018 by Ayrton Araujo <root _a_t_ ayr-ton _d_o_t_ net>
# GPL licensed (see end of file) * Use at your own risk!
#
# Usage:
# git-forget-blob file_to_forget
# If you move this script to somewhere inside $PATH you could use the script like:
# git forget-blob file_to_forget
#! /bin/bash
# Inspired on:
# http://www.thegameengine.org/miscellaneous/streaming-twitch-tv-ubuntu/
# https://wiki.archlinux.org/index.php/Streaming_to_twitch.tv
if [ ! -f ~/.twitch_key ]; then
echo "Error: Could not find file: ~/.twitch_key"
echo "Please create this file and copy past your stream key into it. Open this script for more details."
exit 1;
@ayr-ton
ayr-ton / harmonia.ipynb
Last active October 26, 2019 00:21
Harmonia.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ayr-ton
ayr-ton / docker-compose.yml
Last active March 14, 2020 01:06
pi-hole with unbound and hsd
version: "3.3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
networks:
dns:
ipam:
config:
- subnet: 172.21.0.0/16
services:
pihole:
git checkout master
git fetch origin -p
git reset --hard origin/master
git branch --merged | xargs git branch -d
git checkout development
git reset --soft HEAD~1
git stash
git fetch origin
git reset --hard origin/development
git stash pop
git add .
git commit -m ...
@ayr-ton
ayr-ton / README.md
Created March 26, 2020 15:25
IR sobre bolsa de valores

IR sobre Bolsa de Valores

Imposto de Renda na Bolsa de Valores | Veja Tudo

Operações Normais

::Compra foi feita num pregão e vendidas em outro (dias diferentes)::

  • Isenção de até R$ 20.000,00 em vendas num mês;
  • 0,005% de imposto retido na fonte;
  • Alíquota: 15% sobre o ganho líquido;
  • Deduzir demais taxas da corretora.

Keybase proof

I hereby claim:

  • I am ayr-ton on github.
  • I am ping_ayrton (https://keybase.io/ping_ayrton) on keybase.
  • I have a public key ASBo_uZSyQ-YjPVyz-rI5kZPUbo_OUUZo_FMsNkojCyU1go

To claim this, I am signing this object:

@ayr-ton
ayr-ton / fabio.nomad
Created August 11, 2020 06:06
FabioLB Nomad Job
job "fabio" {
datacenters = ["dc1"]
type = "system"
group "fabio" {
task "fabio" {
driver = "docker"
config {
image = "fabiolb/fabio"