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 / Fedora Linux tips.md
Last active November 29, 2024 19:53
Fedora Linux tips
@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 October 4, 2024 10:23
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 February 24, 2025 18:55
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 22, 2024 22:23
Good ideas I have found to implement or configure in Home Assistant