Skip to content

Instantly share code, notes, and snippets.

View roadev's full-sized avatar
🎯
Focusing

Juan Roa roadev

🎯
Focusing
View GitHub Profile
@roadev
roadev / Dockerfile
Created September 19, 2016 01:56
Dockerfile for building magento 1.x development environment
FROM php:5.6-apache
RUN apt-get update && apt-get install -y \
libmcrypt-dev \
libxml2-dev \
libpng12-dev \
libjpeg-dev
RUN docker-php-ext-install mysqli
RUN docker-php-ext-install mcrypt
RUN docker-php-ext-install soap
@roadev
roadev / Space Invaders Game ( 404 ).markdown
Created April 10, 2016 20:07
Space Invaders Game ( 404 )
@roadev
roadev / bluetooth_serial.md
Last active April 1, 2016 01:57 — forked from 0/bluetooth_serial.md
Connecting a Bluetooth device for serial communication on Arch Linux.

The following are instructions for connecting a Bluetooth device for serial communication on Arch Linux using BlueZ 5.31.

Prerequisites

The following packages are required:

  • bluez: bluetoothd
  • bluez-utils: bluetoothctl, rfcomm
@roadev
roadev / keybase.md
Created January 22, 2016 17:11
keybase.md

Keybase proof

I hereby claim:

  • I am roadev on github.
  • I am roadev (https://keybase.io/roadev) on keybase.
  • I have a public key ASAfXOThX2pFu8iWyDfwCuTlpKR1t8IYVzPkMrECzXK7Ugo

To claim this, I am signing this object:

@roadev
roadev / a.md
Created January 19, 2016 04:42 — forked from danharper/a.md
Laravel Queue Supervisor

Install Supervisor with sudo apt-get install supervisor. Ensure it's started with sudo service supervisor restart.

In /etc/supervisord/conf.d/ create a .conf file. In this example, laravel_queue.conf (contents below). Give it execute permissions: chmod +x laravel_queue.conf.

This file points at /usr/local/bin/run_queue.sh, so create that file there. Give this execute permissions, too: chmod +x run_queue.sh.

Now update Supervisor with: sudo supervisorctl reread. And start using those changes with: sudo supervisorctl update.

@roadev
roadev / deploy-sh__git.md
Created January 7, 2016 17:26
Automatizar deploy a servidor (VPS) con git

Aquí explicaré cómo realizar un deploy automático en servidor (VPS de DigitalOcean). Realizaremos un push primero a github y necesitaremos una conexión ssh para poder jalar automáticamente desde el servidor de deploy. Para comenzar, debemos tener nuestra llave ssh agregada en github, así que seguimos los siguientes pasos (ésto si nunca lo hemos hecho...).

En nuestro equipo, ejecutamos:

ssh-keygen

Con ello generamos una clave ssh en nuestro directorio home, si ya la tenemos la terminal les preguntará si quieren sobre-escribir la llave. Elegimos según corresponda (nota, si ya está generada, tener en cuenta si se ha usado con otros servidores o para otro tipo de autenticación...). Nos pedirá una passphrase, la cuál no es más que una contraseña segura que deseemos colocarle a nuestra llave privada.

@roadev
roadev / post-commit_hook.md
Last active April 1, 2021 22:17
Post-commit hook for git - Spanish

Aquí explicaré cómo automatizar tareas con hooks de git, en éste caso específico, después de hacer commit.

Como ejemplo, se realizará un push automático al remoto cuando se realice un commit.

En nuestro projecto git, accedemos a la carpeta oculta .git

cd .git

luego accedemos a hooks:

@roadev
roadev / apple-mq.css
Created January 1, 2016 21:08 — forked from AllThingsSmitty/apple-mq.css
iPhone 6/6 Plus and Apple Watch CSS media queries
/* iPhone 6 landscape */
@media only screen and (min-device-width: 375px)
and (max-device-width: 667px)
and (orientation: landscape)
and (-webkit-min-device-pixel-ratio: 2)
{ }
/* iPhone 6 portrait */
@media only screen
and (min-device-width: 375px)
@roadev
roadev / reset.css
Created October 22, 2015 15:31 — forked from marulango/reset.css
Hoja de estilo para eliminar inconsistencias a través de navegadores
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,