After almost 2 years of using Telegram, I finally discovered that it is possible to enter emoji using its name after “:” character. Unfortunately I couldn’t find any complete list of available emojis anywhere, so I had to dig deep into the Telegram desktop source code to generate it. It was far more complicated than…
Category: Tricks
Documentations, Tricks
Applicazioni da remoto
Oh, dimenticavo di aver già scritto di waypipe, a proposito dei giochi 3d. Quasi 5 anni fa! Ora la parte noiosa. Spesso mi collego (con ssh, ça va san dire) alle mie macchine di casa da remoto dove è già attiva una sessione “desktop” che oggigiorno è Wayland. Così qualsiasi programma Gnome o che usa…
Tricks
Network transparency with Wayland (bis)
Oh, I forgot I already wrote about waypipe, regarding 3d games. Almost 5 years ago! Now the boring part. If you log into a machine where a Wayland session is already active – I often log into my home machines remotely – any Gtk program will show on the Wayland desktop. So you use “waypipe…
Tricks
How to download all PDF files linked from a single page using wget
Tricks
imagemagick reduce size of pdf
convert -density 150 -quality 60 -compress jpeg Test.pdf Test-150-060-jpeg.pdf Source: imagemagick reduce size of pdf – Stack Overflow
Tricks
How to add a directory to your PATH
How to add a directory to your PATH? I naïvely answered export PATH=A_DIRECTORY:$PATH Well, after reading How to add a directory to your PATH written by Julia Evans I know that it is not as simple as it seems!
Tricks
How to Share Virtual Extended Screen
How to Share Virtual Extended Screen in Ubuntu 22.04 | 24.04
Documentations, Ethics, Tricks
Guida ad Internet per tiranni
Cassandra Crossing 256/ Guida ad Internet per tiranni riporta un collegamento a http://assets.pwd.io/pwd/media/Guida_per_dittatori.pdf e http://assets.pwd.io/pwd/media/Guida_per_dittatori.txt conservato su archive.org. Ora siccome archive.org è sempre fin troppo oberato mi sembra opportuno copiare qui
How to copy a file or directory from another GIT repository while preserving its history?
Internet is full of magic formulas each one more complex.
Here I’m proposing a much simpler and faster one that is to make a git format-patch for the entire history of the file or subdirectory that we want and then import it into the destination repository.
mkdir /tmp/mergepatchs cd ~/repo/org export reposrc=myfile.c #or mydir git format-patch -o /tmp/mergepatchs $(git log $reposrc|grep ^commit|tail -1|awk '{print $2}')^..HEAD $reposrc cd ~/repo/dest git am /tmp/mergepatchs/*.patchSimple and fast
Source synaptic fault http://blog.neutrino.es/2012/git-copy-a-file-or-directory-from-another-repository-preserving-history/
Tricks
Audio oh, audio
As I tend to meddle a lot more than necessary with my strange machine which is stable/testing/unstable and somehow experimental I tend to mess it up. So today I had to issue to get audio back on my Gnome desktop
