Skip to content

Instantly share code, notes, and snippets.

View jfollmann's full-sized avatar
🏠
Working from home

Jefferson Follmann jfollmann

🏠
Working from home
View GitHub Profile
@jfollmann
jfollmann / .gitconfig
Last active January 3, 2020 12:34
Git configuration file
# This is Git's per-user configuration file.
[color]
ui = auto
status = auto
diff = auto
branch = auto
interactive = auto
[user]
name = Jefferson Follmann
email = jeff.follmann@gmail.com
@jfollmann
jfollmann / letsencrypt
Last active September 28, 2020 19:34
Geração de Certificado SSL com Let's Encrypt
Geração de certificado SSL com o Let's Encrypt
#1) Instalação
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot
#2) Geração de um novo certificado
@jfollmann
jfollmann / docker & docker-compose
Last active December 15, 2023 21:13
Docker/Compose - Comandos Comuns
- Instalação docker:
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
- Instalação docker-compose (Verificar nas referencias ultima versão¹):
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
- Instalação ctop (Opcional - Verificar nas referencias ultima versão²)
sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.1/ctop-0.7.1-linux-amd64 -O /usr/local/bin/ctop
sudo chmod +x /usr/local/bin/ctop
@jfollmann
jfollmann / vm.bat
Last active December 19, 2018 11:07
VirtualBox commands
@echo off
set curdir=%cd%
set VM_NAME="Ubuntu Server"
c:
cd\
cd Program Files\Oracle\VirtualBox
:loop
@jfollmann
jfollmann / upgrade-all.sh
Created December 11, 2018 10:24
Script SH para atualização do Ubuntu
# cat /usr/local/bin/upgrade-all.sh
# chmod +x /usr/local/bin/upgrade-all.sh
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt -y autoremove
sudo apt-get clean
@jfollmann
jfollmann / terminator .config
Last active July 18, 2019 20:00
Custom Layout terminator
[global_config]
inactive_color_offset = 0.807692307692
suppress_multiple_term_dialog = True
title_hide_sizetext = True
[keybindings]
[layouts]
[[default]]
[[[child1]]]
command = ""
directory = ""
@jfollmann
jfollmann / bluezswitch.sh
Created February 27, 2019 11:20
Auto-switching Bluetooth profiles to re-initialize PulseAudio
#https://askubuntu.com/questions/145935/get-rid-of-0-5s-latency-when-playing-audio-over-bluetooth-with-a2dp
#!/bin/bash
BLUEZCARD=`pactl list cards short | egrep -o bluez.*[[:space:]]`
#pactl set-card-profile $BLUEZCARD a2dp_sink
#pactl set-card-profile $BLUEZCARD headset_head_unit
pactl set-card-profile $BLUEZCARD a2dp_sink
@jfollmann
jfollmann / mysql-docker.sh
Created February 27, 2019 19:32 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@jfollmann
jfollmann / TOTVS - Printer-Addrs
Last active February 12, 2020 14:13
TOTVS - Printer-Addrs
1) sudo apt-get install smbclient
2) Additional Printer Settings
3) Add
4) Network Printer > Windows Printer via SAMBA
4.1) URL: smb://10.51.1.120/POACloudPrinter-Mono
4.2) User: poa01\jefferson.follmann
4.3) LexMark > MX510
@jfollmann
jfollmann / .zshrc
Last active July 26, 2021 19:34
zsh configs
# cat ~/.zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/${USER}/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,