Skip to content

Instantly share code, notes, and snippets.


Patricio López Juri lopezjurip

View GitHub Profile
lopezjurip / main.js
Created Sep 4, 2015
Repartidor web js
View main.js
var turn = 0;
console.log(['LosExtraterrestresMusicales', 'Rupie', 'TheTeam', 'Veritas',
'YisusPlusOne', 'ImaginApp', 'Nebuchadnezzar', 'Rock',
'InternalServerError', 'String.random', 'ZipCity2000',
'PW:Software', 'ToPa', 'tqzptscsaj',]
.sort(.5 - Math.random())
.reduce(function(previous, current) {
previous[['pato', 'thomas', 'pedro'][turn++ % 3]].push(current);
return previous;
}, {pato: [], thomas: [], pedro: []}));
lopezjurip /
Created Sep 9, 2015
Azure CLI - Create Docker

With BrewCask:

brew cask install azure-cli

Quickly access to Microsoft Azure and download settings file:

azure account download
lopezjurip /
Created Sep 10, 2015
[Python] - Actividad para Diseño Detallado de Software
#!/usr/bin/env python3
# coding=utf-8
class Jugador:
def __init__(self, numero, nombre, posicion):
self.numero = numero
self.nombre = nombre
self.posicion = posicion
lopezjurip / actividad.cs
Created Sep 10, 2015
[C# Psuedo-código] Actividad para Diseño detallado de Software
View actividad.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Namespace {
class Bebida {
curl -H "Origin:" --verbose \
# Your init script
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
# An example hack to log to the console when each text editor is saved.
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->

Welcome to StackEdit!

Hey! I'm your first Markdown document in StackEdit[^stackedit]. Don't delete me, I'm very helpful! I can be recovered anyway in the Utils tab of the Settings dialog.


lopezjurip / Dockerfile
Created Oct 23, 2015
[Go + Godeps] Dockerfile
View Dockerfile
FROM golang:onbuild
RUN go get
lopezjurip /
Last active Oct 25, 2015
Docker on Ubuntu

Prepare Ubuntu server for Docker

Lets start up-to-date everything:

sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get dist-upgrade -y

Update your apt sources

apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
lopezjurip /
Created Nov 30, 2015
Python3 simple web server
python3 -m http.server