Skip to content

Instantly share code, notes, and snippets.

View jaimemrjm's full-sized avatar

Jaime Martín jaimemrjm

View GitHub Profile
@jaimemrjm
jaimemrjm / Android_tips.md
Last active March 22, 2026 23:30
Android phone tips: SSH / FTP server (for backup, sync...), Samsung Dex

Restore apps when new Android phone

  1. Install termux, rsync and copy your SSH key and restore your files with rsync (see next section).
  2. Copy your keepassx database via adb, Telegram or Google Drive.
  3. Open the keepassx database, config your Nextcloud app.
  4. Config keepassx2Android to use Nextcloud app.
  5. Install the latest Macrodroid helpers by using adb and set manually Android system permissions for Macrodroid (pending to document).
  6. Login in all my authorization/identification/securized apps:
  • Authy
  • Cl@ave
@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 27, 2025 17:26
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 March 20, 2026 17:26
Good ideas I have found to implement or configure in Home Assistant
@jaimemrjm
jaimemrjm / Multimedia tips for Linux.md
Last active May 12, 2025 22:01
Multimedia tips for Linux about format conversions, removing noise, etc.

Video tips for Linux

Convert any video file to HEVC

HEVC

Convert any video file to HEVC (H.265) keeping audio tracks:

ffmpeg -i <input_file> -c:v libx265 -x265-params crf=23 -c:a copy <output_file>

AVC

KDE Neon tips

My favourite packages

dolphin-nextcloud yakuake keepassxc gcc make vim mpv nfs-common ttf-bitstream-vera ttf-ancient-fonts fonts-crosextra-carlito fonts-crosextra-caladea rar gimp nfs-common git va-driver-all vainfo audacious lame bleachbit baobab exfat-fuse darktable pavucontrol-qt soundconverter htop fonts-croscore fonts-freefont-otf fonts-liberation

How to keep updated

pkcon refresh && pkcon update
@jaimemrjm
jaimemrjm / Pretty Desktop Linux.md
Last active March 7, 2025 16:40
Pretty Desktop Linux
# disable vaapi if AMD computer
USE="alsa clang client colord dbus dropbox fftw flickr fuse hs2-0 -ipv6
gphot2 gnome-keyring gnome-online-accounts google gpg gphoto2 graphicsmagick gstreamer gtk gtkstyle
libsecret multimedia mtp networkmanager nfs nls offensive opencl openexr pulseaudio python -qt4 qt5
raw readline ruby samba sqlite ssh ssl symlink usb v4l vaapi vpx webkit webp wifi"
LINGUAS="es es_ES"
@jaimemrjm
jaimemrjm / delicious_import.py
Last active November 3, 2015 22:50 — forked from chrisgeo/delicious.py
Delicious CSV Import Script (for Diigo CSV file)
#!/usr/bin/env python
import csv
import httplib2
import time
try:
from urllib import urlencode
except ImportError:
from urllib.parse import urlencode