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.Posts
Use LanguageTool with neovim
2023.12.24
I do a lot of mistakes when typing. The use of a spellchecker in neovim is easy but not enough : I mostly do grammar mistakes.Create tabs in Svelte
2023.10.29
I often need to code some way to have multiple pages rendered in the same location : think about a configuration panel with several sub panels.Tuto: Password Creation in Svelte
2023.10.07
So, a few days ago, I saw a video showing a password creation form.
Each time the user types anything, there is an instant validation with icons indicating which constraint is fulfilled.Go Learning Resources
2023.10.04
This is a list of useful resources you can access freely on the web, to learn Go :
Go Playground : Try Go without installing nothing on your computer.Tuto: Setup a Svelte project using esbuild
2023.09.29
This article will show you how to set up a new Svelte project to develop a custom tag, using esbuild, with live reloading.Tuto: Tags in Svelte
2023.07.25
I want to code a simple tags input component in Svelte like the animation above.
An input text where I can type words.Is Go Object Oriented ?
2023.03.31
During a discussion on a Discord channel, a message puzzled me: Go is not an object-oriented language.
I knew Go didn’t have an inheritance mechanism.Make Microsoft Edge coexist with i386
2023.02.01
On my workstation, I manage both amd64 and i386 architecture.
When I try to install Microsoft Edge on my Linux, after the apt update, I have this message:Firefox tab less
2022.12.09
We can customize Firefox interface to hide the tabs bar :
First, we have to tell Firefox that we want to customize its interface.Sqlite Pure Go
2022.11.06
Would it be possible to embed a database to avoid managing a MySQL or Postgres instance?
Even better, can this database be queried in SQL?Experiment Nebula Mesh - Part 2
2022.09.10
In my previous post, I used Nebula to setup a secured network between 2 virtual machines.
This time, I’ll try to make a MySQL client and server communicate through a Nebula tunnel.Experiment Nebula Mesh - Part 1
2022.07.16
Is it possible to use the public network, namely Internet, to make 2 machines communicate securely ? And if possible something easier to install and configure than OpenVpn ?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 ?
Big clock in a terminal
2020.10.14
How to show a big clock on Linux without using an application or having a browser opened on time.is
?
Change local ownCloud sync directory
2020.09.12
To change the name of ownCloud main folder, there is a little trick you can do on Linux (may work as well on other platforms).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.Make your ubuntu LTS kernel up to date
2019.10.27
Install LTS Hardware Enablement Stack
sudo apt-get install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04 Clean
sudo apt purge --autoremove Reboot to load new kernelForce #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.
VS Code loses Go autocompletion on Linux
2018.03.27
On my Linux, just after upgrading Go to version 1.9, I lost autompletion functionality in VS Code.
:vscode_completion_not_working
This tip did not work for me.Docker from scratch, Go and Multipart upload
2018.01.26
To reduce docker container size we can built the image from scratch instead of using bloated images, like debian or worse ubuntu.Samba public share
2018.01.10
How to configure a Debian based Linux distribution to share a folder with anyone on the network, with read and write access ?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.Eve-style clock demo in Red, livecoded!
2017.01.04
Red is a next-gen programming language, strongly inspired by REBOL.
Consul 0.7.1 | HashiCorp
2017.01.04
Consul is a critical infrastructure service for organizations that rely on it for service discovery, key/value storage, and health checks.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.Cheyenne server and POST size limit
2016.10.03
By default, in Cheyenne, the header size limit for a post request is 102'400.
If you want to ajust this limit you can define the post-mem-limit parameter in the global context or in a specific webapp.Boot Linux in text console
2016.08.29
Get rid of graphic boot on Linux with a few modifications in grub configuration :
# edit your grub config sudo vi /etc/default/grub # remove splash, quiet, .French Git Log
2016.06.07
Git log in colors.
Allow invalid date in MySQL
2016.05.23
Just in case you absolutely have to insert a date in MySQL that does’nt exist, eg 2014-02-30, you can run MySQL server in a special mode that authorizes such dates :screencast with byzance on linux
2015.10.27
byzanz-record -c - duration=60 - x=80 - y=310 - width=800 - height=600 out.gifNot permitted to mount disk ?
2015.09.07
A few days ago, I started to have a very disturbing “Not permitted” message when trying to mount a usb disk from Thunar .How To Forward Outlook Emails With VB Script
2015.08.31
In Windows, create a certificate via Start > All Programs > Microsoft Office > Microsoft Office Tools > Digital Certificate for VBA Projects In Microsoft Outlook, open the VB editor and copy/paste the code below Replace your@email.Invisible code sticks forever
2015.08.24
A few months ago, I read an article about brain training by learning a new language : very interesting story about William Alexander who failed to learn french but strenghten his brain trying to.Tmux for the impatient
2015.07.08
Key shortcuts
If ssh client disconnect and freeze
2015.01.14
Add in your ~/.ssh/config :
Host * ServerAliveInterval 240 src = superuser.comGit delete remote branch/tag
2015.01.07
As of Git v1.7.0, you can delete a remote branch using :
git push origin --delete <branchName> And you can do exactly the same with a tagHorizontal rule in zsh prompt
2014.12.26
Put in your ~/.zshrc :
PS1=$'%U${(r:$COLUMNS:: :)}%u'$PS1 _src = superuser.com _Increase wordpress max file upload size
2014.12.05
On Ubuntu/Debian distro, edit the /etc/wordpress/htaccess and add this lines :
php_value upload_max_filesize 50M php_value post_max_size 50M php_value memory_limit 50MConvert multiple files to utf8 using vim
2014.12.03
The fastest and more efficient way to batch multiple files encoding conversion :
vim +"argdo se fileencoding=utf-8 | w | bnext" +"q" ` find .GIT - stop tracking files
2014.11.28
If you have some files that you need to have in your repo but don’t need to have updates, git allows it :Install minimum php (no apache)
2014.11.24
To code with php, no need to install apache and other dependencies, especially as php has a builtin web server.Add in ~/.config/gtk-3.0/settings.ini
Stretched background with IE8
2014.07.17
Side note : Microsoft has dropped support for IE8 last april 2014 :-(
There are still some clients that want their webapp to work perfectly on IE8.Speech Tasks : a voice driven todo webapp
2014.06.30
With the Go http server. (By the way, I love opensource community !)
Try the demo !
See the code !usb mount and policykit
2014.06.18
DWM is my tiled window manager. It’s fast, flexible and fun. My linux desktop is up and running after a few seconds… (ok, thanks also to the ssd :-) ).Earth viewed from ISS - Zen moment...
2014.05.26
src = NASAVideo background
2014.05.06
Forget large background image for your web site. Now, comes video time.
So you want to put a nice video as background of your site but don’t know how to do ?2048 Gremlins
2014.04.28
2048 : a very famous game where you have to slide the numbered tiles to join same numbers, and cumulate them to obtain 2048 !