This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#XLarge DBInstanceClassMemory = 15892177440 = 14.8GB | |
#/32 = 496630545 = 473MB | |
#/64 = 248315272 = 236MB | |
#/128 = 124157636 = 118MB | |
#/256 = 62078818 = 59MB | |
#/512 = 31039409 = 29MB | |
#/12582880 = 1263 #default same divisor as max_connections = 4041.6MB = 4237924762 | |
#/25165760 = 623 # half of max_connections = 1993.6MB | |
#/50331520 = 315 # quarter of max_connections = 1008MB = 1056964608 | |
#*(3/4) #default innodb pool size = 11922309120 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name admin.tiendapp.net; | |
server_name_in_redirect off; | |
access_log /home/tiendapp/logs/access.log; | |
error_log /home/tiendapp/logs/error.log; | |
root /home/tiendapp/api/public/; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Metodo que hace la llamada a PAYU | |
public function getBanks() { | |
//Ingrese aquí el nombre del medio de pago | |
$parameters = array( | |
//Ingrese aquí el identificador de la cuenta. | |
PayUParameters::PAYMENT_METHOD => "PSE", | |
//Ingrese aquí el nombre del pais. | |
PayUParameters::COUNTRY => PayUCountries::CO, | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HappyBirthday | |
def initialize | |
@key = %W(a b c d e f g i j k l m n ñ o p q r s t u v w x y z blanco , ! ? + * _) | |
set_hash | |
end | |
def set_hash | |
@hash = {} | |
@key.each_with_index do |char,i| | |
@hash[char] = 2**i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Regex to search a specific partial in a project with Sublime2 | |
(render){1}.+[\"\'\:\s]{1}(something){1}[\"\'\:\s]{1} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while yy||= 2 do p yy &&= yy *2 end |