Skip to content

Instantly share code, notes, and snippets.

View jaimemrjm's full-sized avatar

Jaime Martín jaimemrjm

View GitHub Profile
@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
@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
# 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 / 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 / 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 / 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 / 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 / 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