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
Last active November 13, 2021 16:10
Installing XDEBUG in PHP 7.4 - MacOS - brew
$ pecl install xdebug
$ vim /usr/local/etc/php/7.2/php.ini
Remove the line
zend_extension=xdebug.so
$ vim /usr/local/etc/php/7.4/conf.d/ext-xdebug.ini
Add the line:
zend_extension="/usr/local/Cellar/php/7.4.4/pecl/20190902/xdebug.so
@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
Last active October 16, 2020 13:57
Avoid enter GITHUB password all the time when pushing | Evitar ficar digitando a senha do GITHUB toda hora
Para dar push ao Github sem precisar ficar digitando a senha a todo momento
$ ssh-keygen
→ Colocar o nome do arquivo com a chave pgp.
$ ssh-add
$ cat ~/.ssh/<nome_do_arquivo>.pub
copiar a chave e colocar no github na tela de configurações.