This file contains 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
### ADD RPM Forge repository | |
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm | |
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt | |
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm # Verifies the package | |
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm | |
### APACHE | |
# Dependencies |
This file contains 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
<script> | |
/** | |
* Inicio de JS | |
*/ | |
jQuery(function(){ | |
/** | |
* cuando hagan click en el input de envasadora | |
*/ | |
jQuery('#envasadora').blur(function(){ |
This file contains 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
function get_sessionid(){ | |
$result = NULL; | |
$sessionid = uniqid() . md5(mt_rand()); | |
$result = set_action($sessionid, 'start'); | |
return $result; | |
} | |
function get_premios_count(){ | |
$result = NULL; | |
$result = mt_rand(1, 1000); |
This file contains 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
// para hacer query directo de un modelo utilizando su phql | |
$model::query() | |
->where('field = :bindparam:') | |
->andWhere( "field2 = '1' ") | |
->bind( ['bindparam' => '2'] ) | |
->order('field ASC') | |
->limit(10) | |
->cache(['key' => 'optionalifyouwant' , 'lifetime' => 'optionalalso']) | |
->execute(); |
This file contains 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
Naruto Shippuuden (anime) (secuela) | |
--Naruto Shippuuden Movie 1 (anime) (recuento alterno) | |
---Naruto Shippuuden Movie 2: Kizuna (anime) (secuela) | |
----Naruto Shippuuden Movie 3: Hi no Ishi wo Tsugu Mono (anime) (secuela alternativa) | |
-----Naruto Shippuuden Movie 4: The Lost Tower (anime) (secuela) | |
------Naruto Shippuuden Movie 5: Blood Prison (anime) (secuela) | |
--Naruto Shippuuden Movie 6: Road to Ninja (anime) (universo alterno) | |
Rock Lee no Seishun Full-Power Ninden (anime) (derivado) | |
--Rock Lee no Seishun Full-Power Ninden Mou Iccho (anime) (secuela) |
This file contains 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 | |
use Phalcon\Mvc\Controller; | |
class PeliculasController extends Controller | |
{ | |
public function indexAction() | |
{ | |
$peliculas = Peliculas::find(); | |
foreach($peliculas as $pelicula){ |
This file contains 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
/* | |
* Las funciones deben llevar el standar de documentacion de esta manera , no lo estamos siguiendo. | |
* debemos definir los parametros @param tipo y nombre | |
* que devuelve la funcion @return | |
* y su descripcion como estan haciendo | |
*/ | |
/** | |
* funcion prinicpal pork el index de esta shit suckea por ahora -_- | |
* @return void |
This file contains 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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains 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
<html> | |
<header> | |
<title></title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style type="text/css"> | |
body { font-family: Tahoma, Arial, sans-serif; } |
OlderNewer