Skip to content

Instantly share code, notes, and snippets.


Camilo Flores llekn

Block or report user

Report or block llekn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
llekn /
Last active Aug 29, 2015
Python script to execute a shell command on every sub-folder of current folder
#!/usr/bin/env python3
'''Receives a command as argument and executes it on
every sub-folder of current folder.
Useful for commands that should be run multiple times,
like doing a git fetch on a bunch of repos.
Usage: ./ "command"
Example: ./ "git fetch"
llekn /
Last active Nov 16, 2019
HTTP server that print what is requested to console. Useful for debugging purposes.
#!/usr/bin/env python3
python3 -a <bind-address> -p <bind-port>
python3 # (will listen at by default)
python3 -a -p 5555'''
from http.server import HTTPServer, BaseHTTPRequestHandler
llekn / server.rb
Last active Mar 17, 2017
Websocket server from scratch using TCPServer
View server.rb
require 'socket' # Provides TCPServer and TCPSocket classes
require 'digest/sha1'
server ='localhost', 2345)
loop do
# Wait for a connection
llekn / server.rb
Created Mar 17, 2017
Websocket server using Eventmachine
View server.rb
require 'em-websocket' do '', port: 8080) do |ws|
ws.onopen do |handshake|
puts 'WebSocket connection open'
# Access properties on the EM::WebSocket::Handshake object, e.g.
# path, query_string, origin, headers
llekn / .eslintrc.json
Created Mar 24, 2017
ES5 compatible ESlint config file
View .eslintrc.json
"env": {
"es6": false,
"browser": true
"parserOptions": {
"ecmaVersion": 5
"plugins": [],
"globals": {
llekn /
Created Jun 9, 2017
Overcommit overview



Overcommit is a gem that makes easy to add, configure and run tasks on git hooks (script that are run when manipulating a git repo, for example, before making a commit).


  1. Add the gem overcommit to development environment, or install it globally on you machine with gem install overcommit
  2. On the project on which you want to use overcommit, install the git hooks provided by overcommit: overcommit --install
llekn / .overcommit.yml
Last active Nov 2, 2018 — forked from gmq/.overcommit.yml
Overcommit configuration for rails/es6 projects
View .overcommit.yml
# Use this file to configure the Overcommit hooks you wish to use. This will
# extend the default configuration defined in:
# At the topmost level of this YAML file is a key representing type of hook
# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
# customize each hook, such as whether to only run it on certain files (via
# `include`), whether to only display output if it fails (via `quiet`), etc.
# For a complete list of hooks, see:
llekn / http-logger.service.ts
Created Aug 3, 2018
HTTP Logger using Angular's `HttpInterceptor`
View http-logger.service.ts
import { Injectable } from '@angular/core';
import {
} from '@angular/common/http';
import { EnvConfigurationProvider } from 'gl-ionic2-env-configuration';
llekn / app.reducer.ts
Created Aug 3, 2018
Binding NgRx store with Ionic navigation!
View app.reducer.ts
const actionMap: any = {
[gateAccess.REWIND_REGISTRATION]: (state, action) => {
switch (state.step) {
case 'vehicle':
return resetState(state);
case 'driver':
return updateObject(state, { lastAccess: null, step: 'vehicle' });
case 'confirmation':
return updateObject(state, {
lastAccess: null,

Keybase proof

I hereby claim:

  • I am llekn on github.
  • I am llekn ( on keybase.
  • I have a public key ASDd9gnza_r1_3CgJE5Sl8ISTG0jJYfCFmTjzhL38bckjQo

To claim this, I am signing this object:

You can’t perform that action at this time.