Skip to content

Instantly share code, notes, and snippets.

View edubarbieri's full-sized avatar

Eduardo Barbieri edubarbieri

View GitHub Profile
@edubarbieri
edubarbieri / logid.cfg
Created December 20, 2020 23:22
Logitech logid config for mx master s2
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),
# 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
@edubarbieri
edubarbieri / create.sql
Created October 28, 2016 13:46
Create new database and user Mysql
--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';
@edubarbieri
edubarbieri / mysqld.cnf
Last active October 28, 2016 13:46
Mysql Case insensetive linux
Editar arquivo:
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
Na sessão [mysqld] adicionar:
lower_case_table_names=1
@edubarbieri
edubarbieri / mysql
Last active January 20, 2018 02:10
Mariadb login without sudo
shell$ sudo mysql -u root
[mysql] use mysql;
[mysql] update user set plugin='' where User='root';
[mysql] flush privileges;
[mysql] \q
@edubarbieri
edubarbieri / Memoria livre linux
Last active July 29, 2016 16:56
Memoria livre linux
$ free -g