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
devices: ({ | |
name: "Wireless Mouse MX Master 2S"; | |
// A lower threshold number makes the wheel switch to free-spin mode | |
// quicker when scrolling fast. | |
smartshift: { on: true; threshold: 15; }; | |
hiresscroll: { hires: true; invert: false; target: false; }; | |
// Higher numbers make the mouse more sensitive (cursor moves faster), |
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
# inspired from http://nathanhoad.net/how-to-meld-for-git-diffs-in-ubuntu-hardy | |
# and http://gitguru.com/2009/02/22/integrating-git-with-a-visual-merge-tool/ | |
sudo apt-get install meld | |
# create a python script with the below content and name it diff.py | |
#!/usr/bin/python |
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
--Create Database | |
CREATE DATABASE wallet COLLATE 'utf8_general_ci'; | |
CREATE USER 'wallet'@'localhost' IDENTIFIED BY 'senha'; | |
GRANT ALL PRIVILEGES ON wallet.* TO 'wallet'@'localhost'; | |
FLUSH PRIVILEGES; | |
SHOW GRANTS FOR 'wallet'@'localhost'; |
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
Editar arquivo: | |
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf | |
Na sessão [mysqld] adicionar: | |
lower_case_table_names=1 |
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
shell$ sudo mysql -u root | |
[mysql] use mysql; | |
[mysql] update user set plugin='' where User='root'; | |
[mysql] flush privileges; | |
[mysql] \q |
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
$ free -g |