Skip to content

Instantly share code, notes, and snippets.

View Dixens's full-sized avatar
🎯
Focusing

dixens Dixens

🎯
Focusing
View GitHub Profile
@reinink
reinink / query.sql
Last active November 14, 2023 11:08
Text search across multiple tables using MySQL
select
first_name,
last_name
from
users
left join
companies on companies.id = users.company_id
where (
companies.name like 'TERM%' or
first_name like 'TERM%' or
@ukautz
ukautz / workers-with-laravel-on-fortrabbit.md
Last active January 4, 2019 17:25
Workers with Laravel on fortrabbit

Workers with Laravel on fortrabbit

Use-case example: Making scheduled database backups using a Worker Cron Job.

Prerequisites

  • Setup Laravel locally
  • Create App on fortrabbit
@Ocramius
Ocramius / README.md
Last active January 22, 2024 00:09
`__invoke` vs `function` vs `Closure`
@bastianallgeier
bastianallgeier / kirby2.md
Last active March 8, 2025 14:49
An overview of changes and new features for Kirby 2 – Toolkit, CMS and Panel (work in progress)

I've moved this doc to:

@aeurielesn
aeurielesn / util.php
Created July 31, 2011 03:47
Decode Unicode strings in PHP
<?php
#source: http://stackoverflow.com/questions/2934563/how-to-decode-unicode-escape-sequences-like-u00ed-to-proper-utf-8-encoded-char
function replace_unicode_escape_sequence($match) {
return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE');
}
function unicode_decode($str) {
return preg_replace_callback('/\\\\u([0-9a-f]{4})/i', 'replace_unicode_escape_sequence', $str);
}