Skip to content

Instantly share code, notes, and snippets.

View mariano-aguero's full-sized avatar
:octocat:
Focusing

Mariano Aguero mariano-aguero

:octocat:
Focusing
View GitHub Profile
- Api:
-- existe alguna interface?
-- Hay documentacion?
-- Existen servers de prueba? Como podemos acceder a los mismos?
-- Hay algunas limitaciones que tenemos que tener en cuenta? quotas? limitaciones horarios?
-- Formas de autentificacion?
-- Tiene un versionado (versiones de la misma)? Roadmap de la api? Futuras funcionalidades?
- Con que servidores se van a contar para poder tener un servidor de staging y otro de produccion? Hosting?
- Servidores de bases de datos? son los mismos que los servidores webs?
- Cuanta cantidad de usuarios recurrentes se tienen sobre el sistema de autogestion?
@mariano-aguero
mariano-aguero / gist:a0a49bb9c275da3b3dca
Last active September 22, 2015 19:01
Nginx Configuration for elgg
# Elgg Nginx configuration. Customize and put into /etc/nginx/sites-enabled
server {
listen 80;
server_name example.org;
# Server root, replace it with your elgg installation location
root /srv/example.org;
index index.php index.html index.htm;
@mariano-aguero
mariano-aguero / execute.ssh
Last active August 26, 2015 18:34
Generate insecure ssl
openssl req -x509 -batch -nodes -newkey rsa:2048 -keyout banana.key -out banana.crt -config insecure.cnf -days 3650
@mariano-aguero
mariano-aguero / RestControllerTrait.php
Last active March 3, 2016 10:44 — forked from beanmoss/RestControllerTrait.php
Playing with Laravel Lumen: simple RESTful trait.
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
trait RestControllerTrait {
/**
* Manage index request
@mariano-aguero
mariano-aguero / nginx.conf
Last active February 9, 2017 16:16
File nginx.conf to use in centos servers
user nginx;
worker_processes 1; #2
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
worker_rlimit_nofile 20000;
events {
worker_connections 10000;
multi_accept on;
accept_mutex on;
@mariano-aguero
mariano-aguero / sysctl.conf
Last active February 26, 2018 17:02
TCP Configuration
net.core.rmem_max = 16777216 // sudo sysctl -w net.core.rmem_max=16777216
net.ipv4.tcp_rmem = 4096 87380 16777216 // sudo sysctl -w net.ipv4.tcp_rmem='4096 87380 16777216'
net.core.wmem_max = 16777216 // sudo sysctl -w net.core.wmem_max=16777216
net.ipv4.tcp_wmem = 4096 16384 16777216 // sudo sysctl -w net.ipv4.tcp_wmem='4096 16384 16777216'
net.ipv4.tcp_fin_timeout = 20 // sudo sysctl -w net.ipv4.tcp_fin_timeout=20
net.ipv4.tcp_tw_reuse = 1 // sudo sysctl -w net.ipv4.tcp_tw_reuse=1
net.core.netdev_max_backlog = 10000 // sudo sysctl -w net.core.netdev_max_backlog=10000
net.ipv4.ip_local_port_range = 15000 65000 // sudo sysctl -w net.ipv4.ip_local_port_range='15000 65000'
net.core.somaxconn = 2048 // sudo sysctl -w net.core.somaxconn=2048
@mariano-aguero
mariano-aguero / master.cnf
Created September 30, 2015 14:43
Configuration Master Mysql
[mysqld]
sync_binlog = 1
binlog-format = mixed
@mariano-aguero
mariano-aguero / my.cnf
Created September 30, 2015 14:49
Configuration Slave Mysql
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysql.pid
@mariano-aguero
mariano-aguero / ExampleOfUse.php
Created October 19, 2015 11:34
Timestamp format trait
<?php namespace App\Models;
class Example extends Controller
{
use TimestampsFormatTrait;
}
<?php namespace App\Http\Middleware;
use Closure;
use Illuminate\Contracts\Routing\Middleware;
use Illuminate\Http\Response;
class CORS implements Middleware {
/**
* Handle an incoming request.