Skip to content

Instantly share code, notes, and snippets.

View fdeandao's full-sized avatar
🎯
Focusing

Fernando Deanda fdeandao

🎯
Focusing
  • Bank
  • San Miguel de Allende, Mex
View GitHub Profile
@fdeandao
fdeandao / gist:50a6338a0f806fecec4f
Last active August 29, 2015 14:05 — forked from miere/gist:7759857
Llamar funciones con parametros
/**
* Grant that will memorize all parameters and return a method
* that could run the original function with memorized parameters.
*
* @returns {Function}
*/
Function.prototype.withParameters = function (){
var args = arguments
var self = this
return function (){
@fdeandao
fdeandao / .vimrc
Created January 3, 2014 22:25 — forked from eduardocereto/.vimrc
" ==========================================================
" Vundle
" ==========================================================
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
@fdeandao
fdeandao / nginx.conf
Last active December 24, 2015 08:29 — forked from turtlesoupy/nginx.conf
http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_comp_level 6;
@fdeandao
fdeandao / gist:6706007
Last active December 23, 2015 22:49
rserver
cd /root
git clone https://github.com/fdeandao/tutorial-django.git
cd tutorial-django
MYSQL=`which mysql`
Q1="CREATE DATABASE IF NOT EXISTS tutorial;"
Q2="GRANT ALL ON *.* TO 'jeffrey'@'localhost' IDENTIFIED BY 'mypass';"
Q3="FLUSH PRIVILEGES;"
SQL="${Q1}${Q2}${Q3}"