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”
Get rid of graphic boot on Linux with a few modifications in grub configuration : Continue reading “Boot Linux in text console”
New session : tmux
Attach to a session : tmux a
Detach : Ctrl+b d
Scroll : Ctrl+b PgUp/PgDown (quit with q) also can use mouse after first page up or down
Copy mode : Ctrl+b [ (quit with q)
Split horizontally : Ctrl+b “
Split vertically : Ctrl+b %
Switch pane : Ctrl+b arrow key
Resize pane : Hold Ctrl+b + arrow keys
install xclip so buffer copied insied tmux are also available to X : sudo apt-get install xclip
Assume 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 ? Welcome guessnet !
Continue reading “Wireless auto configuration with guessnet on Linux”
Put in your ~/.zshrc :
src = superuser.com
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 50M
For example, to substitute foo with bar
for f in `grep -lR foo`; do
echo -n ">> $f";
sed 's/foo/bar/g' $f > $f.tmp ;
mv $f.tmp $f ;
echo " done.";
- 1) for loops on all files containing the text “foo”, grep -l only show the file name with corresponding text inside.
- 3) sed replace foo with bar in all file
- 4) mv save the modification (delete if you don’t want to overwrite the original files, the modified files is named with .tmp at the end)
- 2) & 5) echo: which file is treated
The fastest and more efficient way to batch multiple files encoding conversion :
vim +"argdo se fileencoding=utf-8 | w | bnext" +"q" ` find . -type f -name "*.rsp" `
+”argdo” : execute the following vim commands for each file (filencode, save and next buffer)
+”q” : quit after last one
find : get all files with corresponding name