Skip to content

Instantly share code, notes, and snippets.

View tic984's full-sized avatar

Sinisa Valentic tic984

View GitHub Profile
Fixtures successfully loaded.
<pre>Uncaught MemoryLimitException: <br />exception 'MemoryLimitException' with message 'Current allocation of 60301256 bytes exceeds safe memory limit of 33554432 bytes' in /var/www/vhosts/app-krk.internet-inovacije.com/library/blue-gem/safety.php:100
Stack trace:
#0 /var/www/vhosts/app-krk.internet-inovacije.com/library/blue-gem/safety.php(432): shutdown_time_limit()
#1 [internal function]: safety_shutdown_handler()
[Fri Nov 23 13:25:25 2012] [error] child process 17982 still did not exit, sending a SIGKILL
[Fri Nov 23 13:25:25 2012] [error] child process 17452 still did not exit, sending a SIGKILL
[Fri Nov 23 13:25:26 2012] [error] could not make child process 16316 exit, attempting to continue anyway
[Fri Nov 23 13:25:26 2012] [error] could not make child process 16332 exit, attempting to continue anyway
[Fri Nov 23 13:25:26 2012] [error] could not make child process 17712 exit, attempting to continue anyway
[Fri Nov 23 13:25:26 2012] [error] could not make child process 16502 exit, attempting to continue anyway
[Fri Nov 23 13:25:26 2012] [error] could not make child process 17373 exit, attempting to continue anyway
[Fri Nov 23 13:25:26 2012] [error] could not make child process 17418 exit, attempting to continue anyway
[Fri Nov 23 13:25:26 2012] [notice] caught SIGTERM, shutting down
Jun 10 21:39:45 raspberrypi ovpn-client[23549]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Jun 10 21:39:45 raspberrypi ovpn-client[23549]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Jun 10 21:39:45 raspberrypi ovpn-client[23549]: Re-using SSL/TLS context
Jun 10 21:39:45 raspberrypi ovpn-client[23549]: LZO compression initialized
Jun 10 21:39:45 raspberrypi ovpn-client[23549]: Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Jun 10 21:39:45 raspberrypi ovpn-client[23549]: Socket Buffers: R=[163840->131072] S=[163840->131072]
Jun 10 21:39:45 raspberrypi ovpn-client[23549]: Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Jun 10 21:39:45 raspberrypi ovpn-client[23549]: Local Options hash (VER=V4): '41690919'
Jun 10 21:39:45 raspberrypi ovpn-client[23549]: Expected Remote Options hash (VER=V4): '530fdded'
Jun 10 21:39:45 raspberrypi ovpn-
DELETE t2 FROM `mysr_data_table2` t1, `mysr_data_table2` t2
WHERE
t1.`country` = 9969977496
AND t1.version = 6
AND t1.country = t2.country
AND t1.version = t2.version
AND t1.`origin` = t2.`origin`
AND t2.id > t1.id
DELETE t2 FROM `mysr_data_table1` t1, `mysr_data_table1` t2 WHERE
{
"id": 4702560,
"name": "PHPExcel",
"full_name": "PHPOffice/PHPExcel",
"owner": {
"login": "PHPOffice",
"id": 1836015,
"avatar_url": "https://avatars.githubusercontent.com/u/1836015?v=2",
"gravatar_id": "427cb3272cf5f0e6793869994232ea41",
"url": "https://api.github.com/users/PHPOffice",
[2014-11-24 16:50:26] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\DBALException: "An exception occurred while executing 'SELECT h.master_version, h.focalpoint_name, h.focalpoint_email, h.username, h.date, h.rsd_tables, h.totals, h.totals_rsd, c.name, p.status, c.oracle_id FROM asr_application h JOIN code_countries c ON c.id = h.country JOIN code_status p ON h.status = p.id WHERE h.year = :year AND h.master_version = (SELECT MAX(master_version) FROM asr_application h2 WHERE h2.country = h.country) ' with params [2013]: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'h.username' in 'field list'" at /usr/local/projects/unhcr/psr/shared/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 47 {"exception":"[object] (Doctrine\\DBAL\\DBALException: An exception occurred while executing 'SELECT h.master_version, h.focalpoint_name, h.focalpoint_email, h.username, h.date, h.rsd_tables, h.totals, h.totals_rsd, c.name, p.status
@tic984
tic984 / nginx.conf
Last active August 29, 2015 14:15 — forked from plentz/nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
[Thu Feb 26 13:00:02.537044 2015] [core:notice] [pid 59180] AH00094: Command line: '/usr/sbin/apache2'
[Thu Feb 26 14:00:01.359059 2015] [mpm_prefork:notice] [pid 59180] AH00171: Graceful restart requested, doing restart
[Thu Feb 26 14:00:01.518853 2015] [mpm_prefork:notice] [pid 59180] AH00163: Apache/2.4.10 (Ubuntu) PHP/5.5.21-1+deb.sury.org~precise+2 configured -- resuming normal operations
[Thu Feb 26 14:00:01.518887 2015] [core:notice] [pid 59180] AH00094: Command line: '/usr/sbin/apache2'
[Thu Feb 26 15:00:01.839912 2015] [mpm_prefork:notice] [pid 59180] AH00171: Graceful restart requested, doing restart
[Thu Feb 26 15:00:01.997189 2015] [mpm_prefork:notice] [pid 59180] AH00163: Apache/2.4.10 (Ubuntu) PHP/5.5.21-1+deb.sury.org~precise+2 configured -- resuming normal operations
[Thu Feb 26 15:00:01.997221 2015] [core:notice] [pid 59180] AH00094: Command line: '/usr/sbin/apache2'
[Thu Feb 26 16:00:01.399672 2015] [mpm_prefork:notice] [pid 59180] AH00171: Graceful restart requested, doing restart
[Thu Feb
DELIMITER $$
CREATE PROCEDURE myproc()
BEGIN
DECLARE i int DEFAULT 1993;
WHILE i <= 2014 DO
INSERT INTO year (year) VALUES (i);
SET i = i + 1;
END WHILE;
/* whole procedure ends with the custom delimiter */
END$$
@tic984
tic984 / date.sql
Created October 25, 2015 11:36 — forked from johngrimes/date.sql
MySQL Date Dimension Build Script
/* Adapted from Tom Cunningham's 'Data Warehousing with MySql' (www.meansandends.com/mysql-data-warehouse) */
###### small-numbers table
DROP TABLE IF EXISTS numbers_small;
CREATE TABLE numbers_small (number INT);
INSERT INTO numbers_small VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
###### main numbers table
DROP TABLE IF EXISTS numbers;
CREATE TABLE numbers (number BIGINT);