Skip to content

Instantly share code, notes, and snippets.

View jaimemrjm's full-sized avatar

Jaime Martín jaimemrjm

View GitHub Profile
@jaimemrjm
jaimemrjm / wsl_tips.txt
Created February 8, 2024 17:25
WSL tips
## Configurar .zshrc para que cambie el titulo de la terminal de Windows
DISABLE_AUTO_TITLE="true"
HOSTNAME=$(hostname)
function precmd () {
window_title="\033]0;${PWD##*/}@$HOSTNAME\007"
echo -ne "$window_title"
}
@jaimemrjm
jaimemrjm / Arch Linux tips.md
Last active March 1, 2024 09:57
Arch Linux tips

Arch Linux tips

Installer

EndeavourOS

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
jaimemrjm / Hacking_Lidl_Silvercrest_Gateway.md
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
jaimemrjm / Raspberry Pi tips.md
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
jaimemrjm / Checklist_nautica.md
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
jaimemrjm / remove_unwanted_apps_Miui_Android.md
Last active March 18, 2019 11:08
How to remove unwanted apps in Miui (Android)

How to remove unwanted apps in Miui (Android)

Steps

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
jaimemrjm / Android_tips.md
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
jaimemrjm / services_config.md
Last active March 28, 2023 11:22
Syncthing, Apache/Nextcloud/Pi-hole, Plex Media Server and Home Assistant

Syncthing

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.

Apache:

I will use 81 for Apache (Nextcloud)

  • Step 1:
@jaimemrjm
jaimemrjm / git_tips.md
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
jaimemrjm / Home Assistant good ideas.md
Last active November 10, 2023 22:16
Good ideas I have found to implement or configure in Home Assistant