This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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] |
NewerOlder