Skip to content

Instantly share code, notes, and snippets.

View flavioheleno's full-sized avatar
:octocat:

Flávio Heleno flavioheleno

:octocat:
View GitHub Profile
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Flavio Heleno",
"label": "I help teams build creative and robust solutions to complex problems",
"image": "https://avatars.githubusercontent.com/u/471860?v=4",
"summary": "Results-driven technology executive with a proven track record in overseeing complex software development projects and managing high-performing teams. Specializing in cloud infrastructure, technical strategy, and team leadership, I have a strong background in delivering scalable solutions and driving innovation. With expertise in diverse domains such as event-driven architectures, software security and process automation, I am well-equipped to take on the role of CTO or Engineering Manager.",
"website": "https://flavioheleno.com",
@flavioheleno
flavioheleno / LSP.sublime-settings
Last active December 13, 2023 13:48
SublimeText Settings
// Settings in here override those in "LSP/LSP.sublime-settings"
{
"diagnostics_gutter_marker": "bookmark",
"show_code_lens": "phantom",
"clients": {
"phpactor": {
"enabled": true,
"command": ["/usr/local/bin/phpactor", "language-server"],
"selector": "source.php | embedding.php | text.html.php | meta.embedded.php | source.php.embedded.html",
},
@flavioheleno
flavioheleno / composer.json
Created July 6, 2023 16:35
lockfile metadata attack
{
"require": {
"flavioheleno/interrupt": "dev-main"
}
}
<?php
function check(int &$val): Generator {
while ($val === 0) {
yield 1;
}
}
$var = 0;
$loop = 0;
@flavioheleno
flavioheleno / phpstorm.md
Created January 26, 2022 11:17
Desconto para comunidade brasileira de PHPStorm!

alô alô você que ainda não usa o PHPStorm e gostaria de usar!

chegou um desconto marotinho de 25% diretamente da JetBrains! 😄

pra conseguir o desconto, basta que você mande um e-mail para a Emilia Schaffler em emilia.schaffler@jetbrains.com com as seguintes informações:

  • Produtos
  • Nome de contato
  • Email de contato
@flavioheleno
flavioheleno / hdi.md
Created January 14, 2022 15:27
How do I..?

How do I..?

Contents

...

Class

Define a Class

#!/bin/bash
set -eo pipefail
# https://github.com/vendasta/setup-new-computer-script
echo "General: Expand save and print panel by default"
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
@flavioheleno
flavioheleno / cleanup.sh
Created January 26, 2021 13:20
Clear NodeJS and PHP/Composer dependencies folders
#!/bin/bash
set -eo pipefail
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
find . -name "vendor" -type d -prune -exec rm -rf '{}' +
@flavioheleno
flavioheleno / 8_0_x_pt_BR.php
Last active November 20, 2020 16:16
PHP 8 release announcement translation to PT-BR
<?php
$_SERVER['BASE_PAGE'] = 'releases/8_0_x.php';
include_once __DIR__ . '/../include/prepend.inc';
if ($LANG !== 'en' && file_exists("8_0_x_$LANG.php")) {
mirror_redirect("/releases/8_0_x_$LANG.php?lang=$LANG");
}
site_header("PHP 8.0.0 Release Announcement", array(
"current" => "php_8_0_x",
@flavioheleno
flavioheleno / macos-ramdisk.sh
Created September 23, 2020 15:08
Create a 2GB ramdisk on MacOS
#!/usr/bin/env bash
set eox -pipefail
diskutil partitionDisk $(hdiutil attach -nomount ram://2048000) 1 GPTFormat APFS 'ramdisk' '100%'