Skip to content

Instantly share code, notes, and snippets.


Juan Roa roadev

View GitHub Profile
roadev /
Created Dec 4, 2019 — forked from chrisbolin/
Python SimpleHTTPServer for Static Serving (React / Angular / Ember) in HTML5 mode (a la mod_rewrite)
Taken from:
import SimpleHTTPServer, SocketServer
import urlparse, os
PORT = 3000
roadev / puma.service
Created Jun 12, 2018 — forked from arteezy/puma.service
Manage Puma with systemd on Ubuntu 16.04 and rbenv
View puma.service
Description=Puma Rails Server
ExecStart=/home/deploy/.rbenv/bin/rbenv exec bundle exec puma -C /home/deploy/app/shared/config/puma.rb
ExecStop=/home/deploy/.rbenv/bin/rbenv exec bundle exec pumactl -S /home/deploy/app/shared/tmp/pids/puma.state stop
roadev / gist:397d669f3c391fd31f81c6edaeec1f7e
Created Mar 29, 2017 — forked from incredimike/variousCountryListFormats.js
Country list as javascript array (alphabetical)
View gist:397d669f3c391fd31f81c6edaeec1f7e
// This needs tidied up before production TODO
var country_list = ["Afghanistan","Albania","Algeria","Andorra","Angola","Anguilla","Antigua & Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas"
,"Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia & Herzegovina","Botswana","Brazil","British Virgin Islands"
,"Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Chad","Chile","China","Colombia","Congo","Cook Islands","Costa Rica"
,"Cote D Ivoire","Croatia","Cruise Ship","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea"
,"Estonia","Ethiopia","Falkland Islands","Faroe Islands","Fiji","Finland","France","French Polynesia","French West Indies","Gabon","Gambia","Georgia","Germany","Ghana"
roadev /
Last active Apr 1, 2016 — forked from 0/
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.


The following packages are required:

  • bluez: bluetoothd
  • bluez-utils: bluetoothctl, rfcomm
roadev /
Created Jan 19, 2016 — forked from danharper/
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/, so create that file there. Give this execute permissions, too: chmod +x

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

roadev / apple-mq.css
Created Jan 1, 2016 — forked from AllThingsSmitty/apple-mq.css
iPhone 6/6 Plus and Apple Watch CSS media queries
View apple-mq.css
/* 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 / reset.css
Created Oct 22, 2015 — forked from marulango/reset.css
Hoja de estilo para eliminar inconsistencias a través de navegadores
View reset.css
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,
roadev / user.rb
Last active Aug 29, 2015 — forked from benoror/user.rb
devise_invitable: Confirm after set password
View user.rb
class User < ActiveRecord::Base
devise :invitable, :database_authenticatable, :registerable, :recoverable,
:rememberable, :confirmable, :validatable, :encryptable
# ...
# devise confirm! method overriden
def confirm!