Change screen input programatically on Linux
2024.02.20
I have a keyboard/mouse/screen switch to connect 2 PCs: one running Linux and one running Windows.
When I connect all the ports, it works, but every time I switch to the Windows laptop, the screen reconfigures, my windows are moved, and it annoys me.howto
Udev Webcam
2022.04.01
You can change the device link so your webcam will be always accessible at the same location /dev/video99. You can also persist some settings via the v4l-ctl command.Console Font Size
2022.03.29
This days, with 4K monitors, the linux console is unreadable : the font is too small. So how can we scale the font size in the console after boot ?Git Rebase From Upstream
2020.11.08
How to apply new commits in your forked repo from the parent (upstream) repo ?
Local git
2019.12.02
Define a repo somewhere in your file system with a bare init
mkdir -p /somewhere/repo/test_project cd /somewhere/repo/test_project git init --bare Now create a local folder for your work with init onlyMysql prompt tip
2019.11.25
You can change the mysql prompt client so you know where you are.
Very usefull when you manage a lot of mysql databases and you forget which one :-)Disable tabs in Firefox
2019.11.18
If you use a tiled window manager like me, Suckless DWM for example, and have Firefox as your browser, you may be interested by not showing the tabs.Force #wifi interface name on #Ubuntu 18.04
2018.09.07
Using Udev, you can change the wifi interface name.
First, you need to get the mac address.
Convert PDF to PNG with enough resolution
2017.03.28
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.Don't forget master infos in your MySQL dump
2017.02.20
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.MySQL import from csv
2016.10.12
To import a local CSV file into MySQL, use the syntax below :
LOAD DATA LOW_PRIORITY LOCAL INFILE '/path/tofile.csv' INTO TABLE database.MySQL export to csv
2016.10.12
To export a mysql results in CSV format, use the syntax below :
SELECT field1, field2, ... FROM table WHERE condition INTO OUTFILE '/tmp/toto.