Skip to content

Instantly share code, notes, and snippets.

View brodos's full-sized avatar

Lucian B. brodos

View GitHub Profile
@PhiloNL
PhiloNL / .env
Last active August 7, 2024 20:19
Simple, fast, and resilient open-source WebSockets server using Soketi with SSL in less than 5 minutes
PUSHER_HOST=socket.yourdomain.com
PUSHER_APP_ID=unlock
PUSHER_APP_KEY=123
PUSHER_APP_SECRET=456
PUSHER_PORT=443
PUSHER_SCHEME=https
@aschmelyun
aschmelyun / settings.json
Created November 16, 2021 05:54
VS Code Settings
{
"editor.codeLens": false,
"workbench.colorTheme": "Atom One Dark",
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
},
"editor.selectionHighlight": false,
"editor.highlightActiveIndentGuide": false,
@laravel-shift
laravel-shift / .php-cs-fixer.php
Last active October 19, 2025 03:29
PHP CS Fixer - Laravel Coding Style Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
@ServerlessBot
ServerlessBot / IAMCredentials.json
Last active February 24, 2025 15:51
Minimum credential set for Serverless Framework
{
"Statement": [
{
"Action": [
"apigateway:*",
"cloudformation:CancelUpdateStack",
"cloudformation:ContinueUpdateRollback",
"cloudformation:CreateChangeSet",
"cloudformation:CreateStack",
"cloudformation:CreateUploadBucket",
abandoned
able
absolute
adorable
adventurous
academic
acceptable
acclaimed
accomplished
accurate
@kulbakin
kulbakin / timezones.php
Last active May 30, 2025 10:47
Array of timezones where keys are PHP timezone names and values are human friendly timezone titles.
<?php
/**
* List of timezones
*/
return array(
'Pacific/Midway' => '(UTC-11:00) Midway',
'Pacific/Niue' => '(UTC-11:00) Niue',
'Pacific/Pago_Pago' => '(UTC-11:00) Pago Pago',
'America/Adak' => '(UTC-10:00) Adak',
'Pacific/Honolulu' => '(UTC-10:00) Honolulu',
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active October 21, 2025 16:41
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@loonies
loonies / 1_phpunit-api.md
Last active August 30, 2025 20:18
PHPUnit Cheat Sheet

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this-&gt;anything()
@redoPop
redoPop / timezones.php
Created August 25, 2009 18:33
CakePHP helper to produce an array of times for various zones.
<?php
class TimezonesHelper extends AppHelper {
function show() {
$zones = array(
'Pacific/Apia' => 'Apia, Upolu, Samoa', // UTC-11:00
'US/Hawaii' => 'Honolulu, Oahu, Hawaii, United States', // UTC-10:00
'US/Alaska' => 'Anchorage, Alaska, United States', // UTC-09:00
'US/Pacific' => 'Los Angeles, California, United States', // UTC-08:00
'US/Mountain' => 'Phoenix, Arizona, United States', // UTC-07:00