Skip to content

Instantly share code, notes, and snippets.

View devmatteini's full-sized avatar
🔧
Automating stuff

Cosimo Matteini devmatteini

🔧
Automating stuff
View GitHub Profile
@devmatteini
devmatteini / ubuntu-epson-xp-2200-drivers.md
Last active December 15, 2023 17:16
Ubuntu drivers for Epson printer XP-2200

Ubuntu drivers for Epson printer XP-2200

⚠️ The drivers versions could be different from the following examples

Printer driver

  1. Go to epson download center and search for XP-2200 and Linux as Operating System
  2. Click Download on Epson Inkjet Printer Driver (ESC/P-R) for Linux item in the list
  3. Click Accept > Click Package Download Page Download > Download the asset for your architecture
  4. Run cd ~/Downloads/ && sudo apt install ./epson-inkjet-printer-escpr_1.7.26-1lsb3.2_amd64.deb to install the driver (and its dependencies)
@devmatteini
devmatteini / install-node.sh
Created October 23, 2021 15:39
Install node on Raspberry Pi Zero
#!/bin/bash
if [ -z "$1" ];then
echo "Usage: $(basename "${BASH_SOURCE[0]}") <version>"
exit 1
fi
version=$1
archive="node-${version}-download"
folder="node-${version}"
#!/bin/bash
# Keychron K2 Level Battery
# https://github.com/Kurgol/keychron/blob/master/k2.md#battery
# All information about the keyboard
upower --dump | grep keyboard -A 7
# Show only battery low percentage
upower --dump | grep keyboard -A 7 | grep percentage | sed -e 's/^[ \t]*//'