Skip to content

Instantly share code, notes, and snippets.

View jadiagaurang's full-sized avatar
🎯
Focusing

Gaurang Jadia jadiagaurang

🎯
Focusing
View GitHub Profile
@MCurran16
MCurran16 / gist:b85ae3cd27df8e36cc0178f852716449
Created February 20, 2021 16:52
Generate JWT secret from terminal
node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
@betweenbrain
betweenbrain / gist:6440817
Created September 4, 2013 18:25
PHP usort anonymous function alphabetize
usort($this->item->tags, function ($a, $b) {
return strcmp(strtolower($a->name), strtolower($b->name));
});