On my Linux, just after upgrading Go to version 1.9, I lost autompletion functionality in VS Code.
Continue reading “VS Code loses Go autocompletion on Linux”
How to configure a Debian based Linux distribution to share a folder with anyone on the network, with read and write access ?
Continue reading “Samba public share”
As ‘man convert’ states :
The convert program is a member of the ImageMagick suite of tools. Use it to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
Continue reading “Convert PDF to PNG with enough resolution”
I tried to resync a slave MySQL after it disconnected from the master. But the binary log was already deleted on master, so the only solution was to restore from the last backup. To avoid lock tables on the master and remember the binary log name and position to put them on the slave configuration, there is a tip to take care of all that : the “–master-data” option in mysqldump. Continue reading “Don’t forget master infos in your MySQL dump”
Consul is a critical infrastructure service for organizations that rely on it for service discovery, key/value storage, and health checks.
Source : Consul 0.7.1 | HashiCorp
Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud.
Source : Docker – Build, Ship, and Run Any App, Anywhere
To import a local CSV file into MySQL, use the syntax below :
LOAD DATA LOW_PRIORITY LOCAL INFILE '/path/tofile.csv'
INTO TABLE database.table
FIELDS TERMINATED BY ';' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES
To export a mysql results in CSV format, use the syntax below :
SELECT field1, field2, ...
INTO OUTFILE '/tmp/toto.csv'
FIELDS TERMINATED BY ';'
ENCLOSED BY '"'
LINES TERMINATED BY '\n' ;