Skip to content

Instantly share code, notes, and snippets.

View p34eu's full-sized avatar
💭
I may be slow to respond.

jq p34eu

💭
I may be slow to respond.
View GitHub Profile
<sql>
CREATE FUNCTION `alphanum`( str CHAR(255) ) RETURNS char(255) CHARSET utf8
BEGIN
DECLARE i, len SMALLINT DEFAULT 1;
DECLARE ret CHAR(255) DEFAULT '';
DECLARE c CHAR(1);
SET len = CHAR_LENGTH( str );
REPEAT
BEGIN
SET c = MID( str, i, 1 );
@p34eu
p34eu / queue-main.service
Created February 1, 2017 13:33
Laravel queue worker using systemd
# Laravel queue worker using systemd
# ----------------------------------
#
# /lib/systemd/system/queue-main.service
#
# run this command to enable service:
# systemctl enable queue-main.service
[Unit]
Description=Laravel queue worker