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 / install.sh
Created February 12, 2024 18:20
Install GlobalProtect-openconnect free version
#!/bin/sh
wget -P /tmp https://github.com/yuezk/GlobalProtect-openconnect/archive/refs/tags/v1.4.9.tar.gz
tar -xvf /tmp/v1.4.9.tar.gz -C /tmp
sudo mv /tmp/GlobalProtect-openconnect-1.4.9 /opt/GlobalProtect-openconnect
cd /opt/GlobalProtect-openconnect/scripts/
sudo bash /opt/GlobalProtect-openconnect/scripts/install-ubuntu.sh
@oviniciusfeitosa
oviniciusfeitosa / content.md
Created November 1, 2023 01:19 — forked from Mishco/content.md
Setup HashiCorp Vault on docker

Setup HashiCorp Vault on docker

Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing. Vault is primarily used in production environments to manage secrets. Vault is a complex system that has many different pieces. There is a clear separation of components that are inside or outside of the security barrier. Only the storage backend and the HTTP API are outside, all other components are inside the barrier.

Vault_architecture

Figure 1: Architecture of Vault and Spring App (Click to enlarge)

The storage backend is untrusted and is used to durably store encrypted data. When the Vault server is started, it must be provided with a storage backend so that data is available across restarts. The HTTP API similarly must be started by the Vault server on start so that clients can interact with it.

@oviniciusfeitosa
oviniciusfeitosa / OKAddress.dart
Created October 13, 2022 04:07 — forked from athlona64/OKAddress.dart
Flutter + Ethereum BIP39, BIP32
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

Shift + F10

or

Shift + Fn + F10

@oviniciusfeitosa
oviniciusfeitosa / Git Permissions reset.md
Last active August 31, 2020 20:33
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
[
{
"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
git reset --hard master@{"300 minutes ago"}
  • 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
git config credential.helper store                          
git config --global credential.helper 'cache --timeout 7200'
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