Skip to content

Instantly share code, notes, and snippets.

View oviniciusfeitosa's full-sized avatar

Vinícius Feitosa da Silva oviniciusfeitosa

View GitHub Profile
@oviniciusfeitosa
oviniciusfeitosa / OKAddress.dart
Created October 13, 2022 04:07 — forked from athlona64/OKAddress.dart
Flutter + Ethereum BIP39, BIP32
View OKAddress.dart
import 'package:bip39/bip39.dart' as bip39;
import "package:hex/hex.dart";
import 'package:web3dart/credentials.dart';
import 'package:bip32/bip32.dart' as bip32;
abstract class OKAddressETH {
String generateMnemonic();
String getPrivateKey(String mnemonic);
Future<EthereumAddress> getPublicAddress(String privateKey);
}
@oviniciusfeitosa
oviniciusfeitosa / linuxRightClickShortcut.md
Created September 2, 2022 02:37
Linux right click shorcut or keyboard key
View linuxRightClickShortcut.md

Shift + F10

or

Shift + Fn + F10

@oviniciusfeitosa
oviniciusfeitosa / Git Permissions reset.md
Last active August 31, 2020 20:33
Git Permissions reset.md
View Git Permissions reset.md
git diff -p -R --no-ext-diff --no-color \
    | grep -E "^(diff|(old|new) mode)" --color=never  \
    | git apply

or

git config --global --add alias.permission-reset '!git diff -p -R --no-ext-diff --no-color | grep -E "^(diff|(old|new) mode)" --color=never | git apply'
@oviniciusfeitosa
oviniciusfeitosa / banco_codigo.json
Created August 25, 2020 17:24 — forked from antoniopresto/banco_codigo.json
JSON bancos do brasil com código
View banco_codigo.json
[
{
"value": "001",
"label": "Banco do Brasil S.A."
},
{
"value": "003",
"label": "Banco da Amazônia S.A."
},
{
@oviniciusfeitosa
oviniciusfeitosa / Git Reset by time.md
Created June 21, 2020 03:06
Git Reset by time.md
View Git Reset by time.md
git reset --hard master@{"300 minutes ago"}
View Github SSH Key.md
  • Gerar chave
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  • Adiciona chave privada ao ssh-client
eval "$(ssh-agent -s)"
@oviniciusfeitosa
oviniciusfeitosa / GIT - Cache user and password.md
Created May 17, 2020 19:35
GIT - Cache user and password.md
View GIT - Cache user and password.md
git config credential.helper store                          
git config --global credential.helper 'cache --timeout 7200'
View Stress test.md
sudo apt-get install apache2-dev
# or yum install httpd-tools
ab -n 9999 -c 333 http://localhost:80/

(9999 nr re requisições)
(333 quantidade de vezes)
```sh
@oviniciusfeitosa
oviniciusfeitosa / git rename branch.md
Created April 29, 2020 15:40
git rename branch.md
View git rename branch.md
  1. Rename your local branch.

If you are on the branch you want to rename:

git branch -m new-name

If you are on a different branch:

git branch -m old-name new-name