Skip to content

Instantly share code, notes, and snippets.

View altuzar's full-sized avatar
Verified account 😛

Fernando Altuzar altuzar

Verified account 😛
View GitHub Profile
@altuzar
altuzar / memo.rb
Created March 8, 2018 19:04
Memoization Test
require 'memoist'
class Thing
extend Memoist
def a
puts "in a body"
return 10
10
end
memoize :a
@altuzar
altuzar / .htaccess
Last active March 31, 2016 15:34 — forked from anonymous/.htaccess
Magento 1.7 + Apache CPU 100%
#/var/www/vhosts/domain.com/.htaccess
############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi
# Action php5-cgi /cgi-bin/php5-cgi
# AddHandler php5-cgi .php
@altuzar
altuzar / gist:5876873
Last active December 19, 2015 01:38
Install OpenERP 7 on Digital Ocean
#!/bin/sh
# Install OpenERP 7 on Digital Ocean
# Fernando Altuzar
# Modified script from Carlos E. Fonseca Zorrilla & Mario Gielissen
# First: Create a Droplet with CentOS 32 bits
# Then:
yum -y install wget unzip
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-6.noarch.rpm
@altuzar
altuzar / gist:1128675
Created August 5, 2011 22:25
Problema Optimizacion
Minimizar x0 = 3x1 + 8x2
sujeto a:
x1+2x2>=8;
x1+6x2=12
Original matrix
A =
1 3 -1 4
3 -2 4 11
2 1 3 13
Press any key to continue. . .
pivot = A(1,1)