Recent Posts

Online Coding Tools

Online Coding Tools

Need to code something and you do not have an IDE? Try these few online coding tools, I’m sure they will help you from your rush. Repl.it One of the most useful tools, it allows you to code without an IDE, here are a few 

¿Qué apps instalar en MacOS?

¿Qué apps instalar en MacOS?

En aquellos días donde todo era felicidad, un día me pidieron ayuda para configurar un Mac nuevo y casi me quedé en blanco porque no sabía qué instalarle, por acá comparto un par de aplicaciones que considero son esenciales. Navegadores: Chrome, Firefox, Opera Google Chrome 

SSH + screen + RPi

SSH + screen + RPi

Hello, long time no see!

Recently I had a situation in which I needed to have two processes running on a docker container, and this docker container was running on my RPi. So… I solved my situation using screen.

What is screen?

It is an awesome tool that allows us to have multiple terminals from a physical one. You can check more information here

How to install it?

Easy, just type this on your RPi:

sudo apt-get install screen

How to use it?

It is even easier! Here is a cheatsheet of the basic usage:

  1. To create a new session: screen -s session-name. After this you will be on that new terminal.
  2. To return to your original terminal: just hit ctrl + a  + d.
  3. To list all your terminals type: screen -ls
  4. To connect to one of the terminal you created (on step 1), type: screen -r session-name
  5. When you are on a session, you can kill that one using ctrl + k, this will ask you and you just have to hit “y” to kill that session

How do I use it?

Here is some context to my situation. I need to connect to my RPi, run a docker container, and run two processes on that docker container, here is what I do.

# connect to my rpi
ssh [email protected]
# run docker compose on the background
docker-compose up -d
# create a new session with screen, this will log me in into my new session
screen -S beat
# list docker containers running
docker ps
# connect the terminal on the docker image
docker exec -it name-of-the-container bash
# load some env vars
source env_vars
# start celery beat
celery beat --app config.celery -l info
# close beat session
ctrl + a + d
# create a new session with screen, this will log me in into my new session
screen -S worker
# list docker containers running
docker ps
# connect the terminal on the docker image
docker exec -it name-of-the-container bash
# load some env vars
source env_vars
# start celery worker
celery worker --app config.celery -l info
# close beat session
ctrl + a + d

And that is, after this, celery beat and worker will be running on background.

Guide: Remove Docker Images, Containers, and Volumes

Guide: Remove Docker Images, Containers, and Volumes

Here is a guide to remove docker images, containers and volumes. Purge unused Images, Containers and Volumes docker system prune -a Remove an specific docker image First, list all the images or filter by name List all the images docker images -a Filter by name 

How to run docker and docker-compose on Raspbian

How to run docker and docker-compose on Raspbian

Since taganga v2 now uses multiple machines, I want to try if a RPi can help me save a few bucks monthly. So here are the steps to install docker and docker-compose into a RPi with Raspian 9 (cat /etc/os-release). Installing Docker So here we 

Apps recomendadas para aprender japonés

Apps recomendadas para aprender japonés

こんばんは!

Hace un par de semanas me decidí a comenzar a estudiar japonés, y bueno, como ahora todo tiene app, hay un par que me han ayudado mucho a memorizar los silabarios de Hiragana y Katakana, comparto las que más me han gustado.

Continue reading Apps recomendadas para aprender japonés

¿Dónde descargar imágenes libres de derecho?

¿Dónde descargar imágenes libres de derecho?

Hace un par de meses había querido crear este post y bueno aquí lo tienen, aca un par de sitios donde se pueden descargar imágenes libres de derecho. https://pixabay.com https://www.pexels.com https://unsplash.com http://finda.photo https://gratisography.com  

Tech Blogs – Agosto 2018

Tech Blogs – Agosto 2018

Hace un par de semanas estuve procrastinando organizar mis feeds en Feedly (que por cierto lo recomiendo como lector de feeds), la idea en generar era eliminar blogs que no leo y agregar una nueva sección, esta nueva sección tendría blogs de empresas de tecnología, esta 

Instalar PyCharm en Ubuntu 16.04

Instalar PyCharm en Ubuntu 16.04

Por cosas que van más allá de la psiquis humana, parece que cuando algo anda mal hace que muchas más cosas salgan mal. La Ley de Murphy se hizo notar (nuevamente) dañando la máquina del lugar donde trabajo.

Y he ahí la motivación para hacer un nuevo post de cómo instalar PyCharm(RubyMine, Datagrip, etc) en Ubuntu 16.04.

Copiar binarios

tar -xzf pycharm-professional-2018.1.4.tar.gz
mkdir -p ~/.bin/pycharms/
mv ~/Downloads/pycharm-professional-2018.1.4 ~/.bin/pycharms

Crear acceso directo

cd /usr/share/applications
nano pycharm.desktop
cat pycharm.desktop

[Desktop Entry]
Name=PyCharm
Comment=PyCharm
Icon=/home/manre/.bin/pycharms/pycharm-2018.1.4/bin/PyCharm_Logo.svg
Terminal=false
Type=Application
Exec=/home/manre/.bin/pycharms/pycharm-2018.1.4/bin/pycharm.sh

Source: https://makandracards.com/makandra/879-install-rubymine-under-ubuntu

Accede rápidamente a una carpeta

Accede rápidamente a una carpeta

Si alguna vez has tenido un folder contenido en millones de otros folders y te gustaría acceder rápidamente a él, los enlaces simbólicos te serán de mucha ayuda. cd ~/my_keys bash: cd: /home/manre/my_keys: No such file or directory ln -s /home/manre/my/folder/hiden/for/security/reasons/my_keys /home/manre/my_keys cd ~/my_keys manre@manre-pc:~/my_keys$