Skip to content

Instantly share code, notes, and snippets.

View jaimemrjm's full-sized avatar

Jaime Martín jaimemrjm

View GitHub Profile
@jaimemrjm
jaimemrjm / SSH Reverse connection to my host
Last active March 15, 2016 10:33
Reverse SSH connection to my host. Remove "-p 22000" if you are using standard port (22)
ssh my-private-host.noip.com -p 22000 -l user -R 0.0.0.0:20000:localhost:22
@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
# 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 / Pretty Desktop Linux.md
Last active April 2, 2024 18:02
Pretty Desktop Linux

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 / Multimedia tips for Linux.md
Last active November 30, 2023 19:04
Multimedia tips for Linux about format conversions, removing noise, etc.

Video tips for Linux

Convert any video file to 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>

Convert ASS / SSA subtitles to SRT in batch

@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
@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 / 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: