Skip to content

Instantly share code, notes, and snippets.

View claudiobizzotto's full-sized avatar
🏴‍☠️

Claudio Bizzotto claudiobizzotto

🏴‍☠️
View GitHub Profile
@claudiobizzotto
claudiobizzotto / install-expect-on-ubuntu.md
Last active July 5, 2018 20:13
Install Expect on Ubuntu 16.04
@claudiobizzotto
claudiobizzotto / Left-handed-mouse.md
Created February 5, 2017 18:05
Quick, dirty and cheap way to get a left-handed mouse on Linux

Free left-handed mouse

Quick, dirty and cheap way to get a left-handed mouse on Linux (tested on Ubuntu only).

Installation

Just place this function in your ~/.bash_aliases file:

# Left-handed mouse buttons
@claudiobizzotto
claudiobizzotto / recursive-wget.md
Last active April 5, 2017 22:43
Recursive wget example

Recursive wget example

wget \
-e robots=off \
--force-directories \
--ignore-case \
--no-verbose \
--show-progress \
@claudiobizzotto
claudiobizzotto / downgrade-vbox-guest-additions.md
Last active November 3, 2022 07:39
Virtual Box conflicting guest additions ("Got different reports about installed GuestAdditions version") - Ubuntu 16.04

Downgrade Virtualbox guest additions in your virtual machine (Ubuntu 16.04)

Make sure your VM is running and ssh into it. From there, run the contents of downgrade-vbox-guest-additions.sh below.

Stop vagrant-vbguest automatic updates

From your host machine, if you have the vagrant-vbguest plugin installed, make sure you deactivate it for this specific VM. To do that, set auto_update to false in your Vagrantfile:

config.vbguest.auto_update = false
@claudiobizzotto
claudiobizzotto / export-import-thunderbird-filters.md
Last active May 6, 2024 04:44
Export/Import Thunderbird filters (Linux)

Export

Save all filters (msgFilterRules.dat files) in a zip file:

$ find .thunderbird/ -type f -name msgFilterRules.dat -print | zip thunderbird-filters -@

Import

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Signal/1.6.1 Chrome/59.0.3071.115 Electron/1.8.2 Safari/537.36 node/8.2.1 env/production
INFO 2018-03-19T18:30:20.666Z app ready
INFO 2018-03-19T18:30:20.725Z Location reset needed
INFO 2018-03-19T18:30:20.725Z Initializing BrowserWindow config: {"show":true,"width":800,"height":610,"minWidth":640,"minHeight":360,"autoHideMenuBar":false,"webPreferences":{"nodeIntegration":false,"preload":"/Applications/Signal.app/Contents/Resources/app.asar/preload.js"},"icon":"/Applications/Signal.app/Contents/Resources/app.asar/images/icon_256.png"}
INFO 2018-03-19T18:30:21.892Z Using OS-level spell check API with locale en_US
INFO 2018-03-19T18:30:22.092Z pre-main prep time: 1 ms
INFO 2018-03-19T18:30:22.130Z Build expires: 2018-06-13T23:25:52.000Z
INFO 2018-03-19T18:30:22.151Z background page reloaded
INFO 2018-03-19T18:30:22.151Z environment: production
INFO 2018-03-19T18:30:22.220Z migration 1.0

Keybase proof

I hereby claim:

  • I am claudiobizzotto on github.
  • I am claudiobizzotto (https://keybase.io/claudiobizzotto) on keybase.
  • I have a public key ASAq0V_2Ci1-zcJtf8czSzpDIQ-pl0UdhzzWhr_nsybIGwo

To claim this, I am signing this object:

@claudiobizzotto
claudiobizzotto / clean-up-boot-partition.md
Created May 22, 2018 21:56
Linux clean up /boot - remove old kernels

Linux clean up /boot - remove old kernels

Easiest and safest

sudo apt-get autoremove --purge

This command will usually keep the last 3 kernels in the partition, which is good in case anything goes wrong with the current kernel.

@claudiobizzotto
claudiobizzotto / .bash_aliases
Last active August 3, 2019 20:48
Some of my sweetest bash aliases
# General
alias diffall="diff --brief --recursive --new-file"
# Networking
alias myip='dig +short myip.opendns.com @resolver1.opendns.com'
# GPG
alias keys="gpg --list-secret-keys --keyid-format LONG"
# Python SimpleHTTPServer
@claudiobizzotto
claudiobizzotto / linux-academy.md
Created June 19, 2020 16:53
JavaScript hacks

Linux Academy

Hide sidebar when watching video

javascript:(function(){document.getElementsByClassName("video-sidebar")[0].style.display="none";})();