Skip to content

Instantly share code, notes, and snippets.

View puentesdiaz's full-sized avatar

Roberto Germán Puentes Diaz puentesdiaz

View GitHub Profile
@puentesdiaz
puentesdiaz / cloudSettings
Last active September 9, 2021 18:33 — forked from LeonidasEsteban/History|-12b8c5dd|entries.json
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-09-09T18:11:36.392Z","extensionVersion":"v3.4.3"}
aptitude update && aptitude upgrade
service php7.0-fpm restart && service apache2 restart && service mysql restart
/etc/init.d/memcached restart
<?php
error_reporting(E_NONE);
$repetitions = 100000;
function getmicrotime()
{
$t = gettimeofday();
return $t['sec'] * 1000 + $t['usec'] / 1000;
<?php
function fib($n)
{
if ($n <= 2)
return 1;
else
return fib($n-1) + fib($n-2);
}
import sys
from ctypes import ARRAY
import md5
import sha
import numpy
from reportlab.lib.units import mm
from _pydev_xmlrpclib import DateTime, datetime
@puentesdiaz
puentesdiaz / test-fast.php
Last active December 26, 2015 03:29
test PHP array
<?php
function ordenar($a)
{
sort($a);
asort($a);
sort($a);
asort($a);
sort($a);
@puentesdiaz
puentesdiaz / verificarServers.sh
Created October 4, 2013 13:44
Verify if a Mysql Service are running, if not then restart it
#!/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'