This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is Git's per-user configuration file. | |
[color] | |
ui = auto | |
status = auto | |
diff = auto | |
branch = auto | |
interactive = auto | |
[user] | |
name = Jefferson Follmann | |
email = [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set curdir=%cd% | |
set VM_NAME="Ubuntu Server" | |
c: | |
cd\ | |
cd Program Files\Oracle\VirtualBox | |
:loop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global_config] | |
inactive_color_offset = 0.807692307692 | |
suppress_multiple_term_dialog = True | |
title_hide_sizetext = True | |
[keybindings] | |
[layouts] | |
[[default]] | |
[[[child1]]] | |
command = "" | |
directory = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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, |
OlderNewer