Make Microsoft Edge coexist with i3862023.02.01On my workstation, I manage both amd64 and i386 architecture.
When I try to install Microsoft Edge on my Linux, after the apt udpate, I have this message:Read moreFirefox tab less2022.12.09We can customize Firefox interface to hide the tabs bar :
First, we have to tell Firefox that we want to customize its interface.Read moreSqlite Pure Gotechnicalgosqlite2022.11.06Would it be possible to embed a database to avoid managing a MySQL or Postgres instance?
Even better, can this database be queried in SQL?Read moreExperiment Nebula Mesh - Part 2technicallinux2022.09.10In 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.Read moreExperiment Nebula Mesh - Part 1technicallinux2022.07.16Is 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 ?Read moreUdev Webcamlinuxhowto2022.04.01You 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.Read moreConsole Font Sizelinuxconsolehowto2022.03.29This 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 ?Read moreGit Rebase From Upstreamgithowto2020.11.08This note explains how to apply new commits in your forked repo from the parent (upstream) repo. If not already done, add a “remote” to the parent’s repo like this :Read moreBig clock in a terminallinuxshellterminal2020.10.14This note explains how to show a big clock on Linux without using an application or having a browser opened on time.Read moreChange local ownCloud sync directorylinuxowncloud2020.09.12To change the name of ownCloud main folder, there is a little trick you can do on Linux (may work as well on other platforms).Read moreLocal gitdevgithowto2019.12.02Define 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 onlyRead moreMysql prompt tiphowtomysqlprompt2019.11.25You 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 :-)Read moreDisable tabs in FirefoxdwmFirefoxhowtolinux2019.11.18If 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.Read moreMake your ubuntu LTS kernel up to datekernellinuxubuntu2019.10.27Install 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 kernelRead moreInstall iso on USB key using #Linux console onlyconsolehowtolinuxusb2018.11.08How to flash any iso (think about your favorite distro) on an USB key without graphical IHM ?
sudo dd if=/path/to/image.Read moreForce #wifi interface name on #Ubuntu 18.04consolehowtolinuxnetworkshellubuntuudevwifi2018.09.07Using Udev, you can change the wifi interface name.
First, you need to get the mac address.
$ ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: **wlp1s0**: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000 link/ether **9c:b6:d0:8a:71:11** brd ff:ff:ff:ff:ff:ff My wifi interface is name wlp1s0 and its mac address is just after the keyword “link/ether” : 9c:b6:d0:8a:71:11.Read moreVS Code loses Go autocompletion on Linuxbugdevgolinux2018.03.27On 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.Read moreDocker from scratch, Go and Multipart uploadconsoledevdockergohowtominimalscratchubuntu2018.01.26To reduce docker container size we can built the image from scratch instead of using bloated images, like debian or worse ubuntu.Read moreSamba public shareconsolehowtolinuxsambashell2018.01.10How to configure a Debian based Linux distribution to share a folder with anyone on the network, with read and write access ?Read moreConvert PDF to PNG with enough resolutionconsolehowtoImageMagicklinuxshell2017.03.28As ‘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.Read moreDon't forget master infos in your MySQL dumpdevhowtomysql2017.02.20I 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.Read moreEve-style clock demo in Red, livecoded!2017.01.04Demo
Red is a next-gen programming language, strongly inspired by REBOL. Main features are:
Homoiconic (Red is its own meta-language and own ** data-format **) Functional, imperative, ** reactive ** and symbolic programming Prototype-based object support **Gradual and multi-**typing ** Macros ** system Rich set of built-in datatypes (50+) Both statically and JIT- compiled to native code Cross-compilation right .Read moreConsul 0.7.1 | HashiCorp2017.01.04Consul is a critical infrastructure service for organizations that rely on it for service discovery, key/value storage, and health checks.Read moreDocker - Build, Ship, and Run Any App, Anywhere2017.01.04Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud.Read moreMySQL import from csvdevhowtomysql2016.10.12To import a local CSV file into MySQL, use the syntax below :
LOAD DATA LOW_PRIORITY LOCAL INFILE '/path/tofile.csv' INTO TABLE database.Read moreMySQL export to csvdevhowtomysql2016.10.12To export a mysql results in CSV format, use the syntax below :
SELECT field1, field2, ... FROM table WHERE condition INTO OUTFILE '/tmp/toto.Read moreCheyenne server and POST size limitcheyennehowto2016.10.03By 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.Read moreBoot Linux in text consolebootconsolehowtolinuxtext2016.08.29Get 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, .Read moreFrench Git Loggit2016.06.07Git log in colors.
git log --pretty='format:%Cblue%h%Creset %ad %Cred%<(8,trunc)%an%Creset%Cgreen%d%Creset %s' --date=short Shows how to use pretty format in Git with colors and fixed with columns (trunc) :Read moremysql client : don't show columns names and grid2016.05.30Default mysql client behaviour is to show column names and grid when returning results but how to get rid of this decorations ?Read moreAllow invalid date in MySQLdevmysql2016.05.23Just 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 :Read morescreencast with byzance on linux2015.10.27byzanz-record -c - duration=60 - x=80 - y=310 - width=800 - height=600 out.gifRead moreNot permitted to mount disk ?2015.09.07A few days ago, I started to have a very disturbing “Not permitted” message when trying to mount a usb disk from Thunar .Read moreHow To Forward Outlook Emails With VB Scriptoutlookwindows2015.08.31In 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.Read moreInvisible code sticks foreverJavascriptweb2015.08.24A 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.Read moreTmux for the impatientlinuxtmux2015.07.08tmux Create a new session (the first time) tmux a Attach to an existing session Ctrl+b d Detach Ctrl+b PgUp/PgDown Scroll (quit with q) also can use mouse after first page up or down (see tips below to activate normal mouse scrolling) Ctrl+b [ Copy mode (quit with q) Ctrl+b " Split horizontally Ctrl+b % Split vertically Ctrl+b arrow key Switch pane Hold Ctrl+b + arrow keys Resize pane Ctrl+b + z Toggle zoom in pane Tips Copy/pasting sudo apt-get install xclip Install xclip so buffer copied inside tmux are also available to X Shift + mouse selection Select text to copy Ctrl + Shift + C Copy Ctrl + Shift + V Paste Use the mouse for scrolling set -g mouse on put this command in ~/.Read moreWireless auto configuration with guessnet on Linuxhowtolinuxubuntu2015.05.17Assume we have access to the wifi at work and at home. How can I configure my laptop to automatically connect to the right network without using a graphical network manager ?Read moreIf ssh client disconnect and freeze2015.01.14Add in your ~/.ssh/config :
Host * ServerAliveInterval 240 src = superuser.comRead moreGit delete remote branch/tagdevgit2015.01.07As 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 tagRead moreHorizontal rule in zsh promptlinuxpromptshellzsh2014.12.26Put in your ~/.zshrc :
PS1=$'%U${(r:$COLUMNS:: :)}%u'$PS1 _src = superuser.com _Read moreIncrease wordpress max file upload sizelinuxphpwordpress2014.12.05On 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 50MRead moreSubstitute a text only in files where it appearslinuxshell2014.12.03For example, to substitute foo with bar
for f in `grep -lR foo`; do echo -n ">> $f"; sed 's/foo/bar/g' $f > $f.Read moreConvert multiple files to utf8 using vimlinuxshellvim2014.12.03The fastest and more efficient way to batch multiple files encoding conversion :
vim +"argdo se fileencoding=utf-8 | w | bnext" +"q" ` find .Read moreGIT - stop tracking filesdevgit2014.11.28If you have some files that you need to have in your repo but don’t need to have updates, git allows it :Read moreZSH, nohup and background process that lasts...linuxzsh2014.11.27When I switched to ZSH, and let BASH behind, I missed some behaviour : one of them was the ability to quit my terminal while some jobs are still alive.Read moreInstall minimum php (no apache)2014.11.24To code with php, no need to install apache and other dependencies, especially as php has a builtin web server.Read moreGet rid of the Desktop icon in Nautilus 3.10 side bar2014.11.07Add in ~/.config/gtk-3.0/settings.ini
gtk-shell-shows-desktop=0 Remove all entries in ~/.config/user-dirs.dirs but let this one :
XDG_DESKTOP_DIR="$HOME/" If you remove this too, each time nautilus is launched, it will create a ~/Desktop folder.Read moreStretched background with IE82014.07.17Side note : Microsoft has dropped support for IE8 last april 2014 :-(
There are still some clients that want their webapp to work perfectly on IE8.Read moreSpeech Tasks : a voice driven todo webappangular lightannyanggohtmlJavascriptspeech recognitionweb speech apiwebapp2014.06.30With the Go http server. (By the way, I love opensource community !)
Try the demo !
See the code !Read moreusb mount and policykitdbusdesktopdwmgnome-settings-daemonlinuxpolicykitstorageubuntuusb2014.06.18DWM 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 :-) ).Read moreEarth viewed from ISS - Zen moment...spacezen2014.05.26src = NASARead moreVideo backgroundbackgroundcsscss3htmlHTML5video2014.05.06Forget 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 ?Read more2048 GremlinsJavascriptweb2014.04.282048 : a very famous game where you have to slide the numbered tiles to join same numbers, and cumulate them to obtain 2048 !Read more