Skip to content

Instantly share code, notes, and snippets.

View viperey's full-sized avatar

Victor Perez Rey viperey

  • DevNonDos
  • Amsterdam
View GitHub Profile
@viperey
viperey / gist:361fd64edc7da5eb40eff7db03ba477c
Last active November 5, 2020 20:47
Recursively add all subdirectories of a root path to an aMule instance
# Set path to the root folder you want to recursively include in your aMule instance
# Untested, exposed for documentation purposes
AMULE_SHAREDIR_PATH=~/.aMule/shareddir.dat
TERMS_TO_EXCLUDE="osync|\.git"
find ${PATH} -type d | grep -v '${TERMS_TO_EXCLUDE}' >> ${AMULE_SHAREDIR_PATH}
@viperey
viperey / global-ipv6-debian-9.md
Last active February 21, 2018 12:58
Global IPv6 in Debian 9

Yes, by default is not working and you may get no global ipv6 address.

TL;DR

In your /etc/rc.local add the following:

dhclient -6 ${INTERFACE};

You can manually test the command in advance and check that actually your are getting a global ipv6 address

How to use ssh in Android's Kodi app

If you have your Android device with Kodi installed on it, you might want to add remote folder using ssh/sftp protocol.
Since it's a bad security practice setup a ssh access allowing to log in using a password instead of the ssh key, the setup should be done by using such file.

If you ever done this before in an OS as GNU/Linux or MacOS you'll be already familiar with the process and concepts as ssh, public/private keys, etc. If that's not your case, I recommend you to check the previous link.

Acerca de JuegosparaBeber.com

Tras comenzar nuestra aventura con vamosdefiesta.es, vimos que no habia ninguna web activa de juegos de beber y dado que la idea nos gustaba decidimos ponenos manos a la obra. Así es como nació este blog, nuestra intención es la de dar a conocer tantos juegos como podamos de una forma sencilla y divertida. La idea de grabar los juegos vino porque muchas veces las normas pueden resultar un poco liosas y porque si una imagen vale mas que mil palabras, un vídeo de 3 minutos en el que salimos jugando y explicando las normas ya ni te cuento. A día de hoy llevamos mas de 100 entradas (aunque no todas ellas juegos) y la previsión es la de publicar muchísimos más (todos con su

@viperey
viperey / docker-iptables.md
Last active February 17, 2024 21:28
A brief how-to deal with docker and iptables

Dockers and iptables.

The first thing when you come to this topic is that when it comes to iptables, docker just behaves like a spoiled child that takes what (s)he want, although the child is been banned to do so.

In other words, as you may already know, by default, docker ignores any pre-existing iptables' rules when adding its own Chain in the tables. The result of this is a useless firewall when it comes to protecting the access to your services hosted in containers.

Tell me how you almost screw up

So, at the office, at the moment we had this problem we were migrating our projects into containers.