Skip to content

Instantly share code, notes, and snippets.

View Lutacon's full-sized avatar
:shipit:
¯\_(ツ)_/¯

Luis Lutacon

:shipit:
¯\_(ツ)_/¯
  • Barcelona, Spain
  • 05:43 (UTC +02:00)
View GitHub Profile
- Be highly organized.
- Suggest proactive solutions and anticipate my needs.
- Treat me as an expert in all subject matter.
- Be accurate and thorough; mistakes erode my trust.
- Provide detailed explanations; I appreciate lots of detail.
- Value good arguments over authorities; the source is irrelevant.
- Consider new technologies and contrarian ideas.
- High levels of speculation or prediction are fine; just flag it.
- Recommend only the highest-quality, meticulously designed products.
- Recommend products from all over the world; location is irrelevant.

Reverse interview

Engineering

  1. What tech stack do you use? Are you rolling out new technologies or sunsetting older ones? Do you have any legacy system that you need to maintain?
  2. What is your maturity stage? Finding a direction, feature work, maintenance...
  3. What are the next big engineering challenges you will face?
  4. How are requirements delivered to the engineering teams? How are technical decisions made and communicated?
  5. What level of involvement do engineers have in relation to architecture and system design? How much freedom for decision making do individual developers have? What happens if an engineer identifies areas of improvement?
  6. What is the junior/senior balance of the team?
@Lutacon
Lutacon / keybase.md
Last active September 10, 2019 08:54

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@Lutacon
Lutacon / yoursite.conf
Last active September 3, 2018 10:40
Prestashop 1.7.3.3 Nginx conf + SSL (Letsencrypt) + HTTP/2
server {
charset utf-8;
#listen SERVER_IP:80;
server_name YOUR_SITE_DOMAIN www.YOUR_SITE_DOMAIN;
root ROOT_PATH_PRESTASHOP;
index index.php;
set $admin_dir /ADMIN_PATH;
@Lutacon
Lutacon / README.md
Created October 3, 2016 20:17 — forked from tjamps/README.md
Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle

Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle

The API we are creating in this gist will follow these rules :

  • The API only returns JSON responses
  • All API routes require authentication
  • Authentication is handled via OAuth2 with password Grant Type only (no need for Authorization pages and such).
  • API versioning is managed via a subdomain (e.g. v1.api.example.com)

The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :

@Lutacon
Lutacon / ocp.php
Last active August 29, 2015 14:19 — forked from ck-on/ocp.php
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.6
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs
$('input.salida').change(function(event) {
if ($('input.llegada').val() != '' && $(this).val() != '') {
var fechaI = $('input.llegada').val().split('/');
var date1 = new Date(fechaI[2], (fechaI[1] - 1), fechaI[0], 0, 0, 0, 0);
var fechaF = $(this).val().split('/');
var date2 = new Date(fechaF[2], (fechaF[1] - 1), fechaF[0], 0, 0, 0, 0);
var timeDiff = Math.abs(date2.getTime() - date1.getTime());
var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24));
$('input.noches').val(diffDays);
}
@Lutacon
Lutacon / lunhAlgorithm.php
Last active August 29, 2015 14:17
Luhn's Algorithm PHP
<?php
/**
* @see http://en.wikipedia.org/wiki/Luhn_algorithm
*/
function is_valid_luhn($number) {
$number = preg_replace("/[^0-9]/", "", $number);
settype($number, 'string');
$sumTable = array(
array(0,1,2,3,4,5,6,7,8,9),
array(0,2,4,6,8,1,3,5,7,9)