Skip to content

Instantly share code, notes, and snippets.

View iradofurioso's full-sized avatar
🧠
Make it work, Make it right, Make it fast

Carlos Eduardo iradofurioso

🧠
Make it work, Make it right, Make it fast
View GitHub Profile
@iradofurioso
iradofurioso / txt
Created November 8, 2022 19:25
Bash Shell Increase History Size
-- Check current size
$ echo $HISTSIZE
1000
$ echo $HISTFILESIZE
1000
-- Edit ~/.bashrc
HISTSIZE=100000
HISTFILESIZE=100000
@iradofurioso
iradofurioso / ecosystem.json
Created September 22, 2022 12:41 — forked from wirwolf/ecosystem.json
pm2 ecosystem.json config example
{
"apps": [
{
/* General */
"name": "my-api", /* (string) application name (default to script filename without extension) */
"script": "index.js", /* (string) script path relative to pm2 start */
"cwd": "/var/www/", /* (string) the directory from which your app will be launched */
"args": "-a 13 -b 12", /* (string) string containing all arguments passed via CLI to script */
"interpreter": "/usr/bin/python", /* (string) interpreter absolute path (default to node) */
"interpreter_args": "--harmony", /* (string) option to pass to the interpreter */
@iradofurioso
iradofurioso / txt
Created September 17, 2022 22:12
Versions of EcmaScript - Node - JavaScript - TypeScript
es6 => es2015
es7 => es2016
es8 => es2017
es9 => es2018
es10 => es2019
es11 => es2020
es12 => es2021
es13 => es2022
@iradofurioso
iradofurioso / txt
Created September 17, 2022 18:39
Renaming Branch GIt the Right Way
git branch -m main master
git fetch origin
git branch -u origin/master master
git remote set-head origin -a
@iradofurioso
iradofurioso / launch.json
Created December 10, 2021 18:36
Add nodemon to Visual Code
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "nodemon",
"runtimeExecutable": "${workspaceFolder}/node_modules/nodemon/bin/nodemon.js",
"program": "${workspaceFolder}/app.js",
"restart": true,
@iradofurioso
iradofurioso / genesis.json
Created December 6, 2021 18:08
Example genesis.json for an Ethereum blockchain
{
"config": {
"chainId": 33,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"nonce": "0x0000000000000033",
"timestamp": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
@iradofurioso
iradofurioso / txt
Created February 14, 2021 23:59
Apigility - Ativar modo desenvolvedor
php public/index.php development enable
@iradofurioso
iradofurioso / txt
Created January 12, 2021 17:06
Git Flow Activate Bugfix
git flow init -d -f
@iradofurioso
iradofurioso / txt
Created September 7, 2020 02:01
EC2 - is blocked because of many connection errors; unblock with
Problem when connecting from a newer aws ec2 instance. Just connect into mysql / aurora / mariadb from your local machine or an old instance and type the follow command on mysql client:
FLUSH HOSTS
@iradofurioso
iradofurioso / txt
Created August 5, 2020 22:38
Installing Xdebug on PHP 7.4 - MacOS Catalina
export PATH="/usr/local/opt/php/bin:$PATH"
pecl install xdebug-2.6.0
# add configuration php.ini
zend_extension="xdebug.so"
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp