Skip to content

Instantly share code, notes, and snippets.

Roberto Germán Puentes Diaz puentesdiaz

Block or report user

Report or block puentesdiaz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View actualizarSistema.sh
aptitude update && aptitude upgrade
service php7.0-fpm restart && service apache2 restart && service mysql restart
/etc/init.d/memcached restart
View BenchPHP
<?php
error_reporting(E_NONE);
$repetitions = 100000;
function getmicrotime()
{
$t = gettimeofday();
return $t['sec'] * 1000 + $t['usec'] / 1000;
View test-fast-2.php
<?php
function fib($n)
{
if ($n <= 2)
return 1;
else
return fib($n-1) + fib($n-2);
}
View test-fast.py
import sys
from ctypes import ARRAY
import md5
import sha
import numpy
from reportlab.lib.units import mm
from _pydev_xmlrpclib import DateTime, datetime
View test-fast.php
<?php
function ordenar($a)
{
sort($a);
asort($a);
sort($a);
asort($a);
sort($a);
@puentesdiaz
puentesdiaz / verificarServers.sh
Created Oct 4, 2013
Verify if a Mysql Service are running, if not then restart it
View verificarServers.sh
#!/bin/sh
#chmod a+x /usr/local/bin/verificarServers.sh
#crontab -e
#0,15,30,45 * * * * /usr/local/bin/verificarServers.sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
SERVICE='mysqld'
You can’t perform that action at this time.