Skip to content

Instantly share code, notes, and snippets.

View jaimemrjm's full-sized avatar

Jaime Martín jaimemrjm

View GitHub Profile
jaimemrjm / wsl_tips.txt
Created February 8, 2024 17:25
WSL tips
## Configurar .zshrc para que cambie el titulo de la terminal de Windows
function precmd () {
echo -ne "$window_title"
jaimemrjm / Arch Linux
Last active March 1, 2024 09:57
Arch Linux tips

Arch Linux tips



My favourite packages

nextcloud-client yakuake vim intel-media-driver linux-firmware libva-utils nextcloud-client solaar spotify stow ttf-bitstream-vera ttf-ancient-fonts ttf-carlito ttf-caladea audacious lame bleachbit baobab darktable soundconverter htop ttf-croscore texlive-fontsextra docker calibre korganizer pavucontrol-qt wireguird
jaimemrjm /
Last active January 21, 2023 20:43
Hacking the Lidl Silvercrest Zigbee Smart Home Gateway

Hacking the Lidl Zigbee Gateway from Linux

Connecting to the device by 3.3V TTL USB-Serial adapter

screen /dev/ttyUSB0 38400,cs8,-ixon,-ixoff

Connecting by SSH at first time

jaimemrjm / Raspberry Pi
Last active October 16, 2021 21:30
Raspberry Pi consejos y notas (desactualizado)

Backup SD of Raspberry Pi

sudo dd bs=4M if=/dev/sdb | gzip > ~/camelberry_image-`date +%d%m%y`.gz

To restore backup

sudo gzip -dc ~/camelberry_image-date.gz | dd bs=4M of=/dev/sdb

Bright Pi

Como root:

jaimemrjm /
Last active September 28, 2023 18:58
Checklist náutica para navegar en el Mediterráneo
  • Gafas de sol
  • Gorra PER
  • Carnet PER
  • Lentillas y Funda de gafas
  • Powerbank
  • Cargador estándar y cable USB
  • Funda transparente estanca
  • Pinzas de la ropa
  • Crema solar
  • Bañador
jaimemrjm /
Last active March 18, 2019 11:08
How to remove unwanted apps in Miui (Android)

How to remove unwanted apps in Miui (Android)


pm list packages 
pm uninstall -k -–user 0 <android_app>

<android_app> is the app package of the unwanted android app without package: prefix.

jaimemrjm /
Last active April 29, 2024 19:27
Android phone tips: SSH / FTP server (for backup, sync...), Samsung Dex

FTP Server in Android

SSH Server in Android

Termux in a powerful app to run a Linux environment, making possible your Android phone has some applications or tools like a desktop computer. So you could backup your phone content seamlessly without any propietary cloud. You can use the embedded ssh server running at 8022 port.

Install ssh server is easy in Termux: pkg install openssh

jaimemrjm /
Last active March 28, 2023 11:22
Syncthing, Apache/Nextcloud/Pi-hole, Plex Media Server and Home Assistant


How to add a new device

Install Syncthing-Fork when Android device. From the Android app, Device tab, add new device, scan the server Syncthing ID, enabled as Introductor device and wait for notification on the phone. Please, don't add the sync folders in Android app previously, because you will be notified in Android automatically to add the folders when the process finishes. If doesn't, open the Web UI from the Android app.


I will use 81 for Apache (Nextcloud)

  • Step 1:
jaimemrjm /
Last active November 29, 2023 14:54
my git tips

My git tips

Update repo and submodules

git pull && git submodule update --init

Update repo if error fatal: Cannot rebase onto multiple branches.

git pull origin <branch> --rebase 

Show remote repo

jaimemrjm / Home Assistant good
Last active November 10, 2023 22:16
Good ideas I have found to implement or configure in Home Assistant