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 / 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 / Install bluez-firmware.sh
Last active March 13, 2021 13:23
Install bluez-firmware
# if you canno't install bluez-firmware
#
# Add the line below to ```/etc/apt/sources.list```
#
# deb http://ftp.de.debian.org/debian jessie main non-free
#sudo add-apt-repository ppa:snappy-dev/image
#sudo apt-get update
#sudo apt-get install bluez-firmware
@oviniciusfeitosa
oviniciusfeitosa / GIT - merge project-a into project-b:
Created October 30, 2017 13:36
GIT - project-a into project-b:
If you want to merge project-a into project-b:
cd path/to/project-b
git remote add project-a path/to/project-a
git fetch project-a
git merge --allow-unrelated-histories project-a/master # or whichever branch you want to merge
git remote remove project-a
@oviniciusfeitosa
oviniciusfeitosa / Docker - Replacing Apache DocumentRoot using `sed`.md
Created September 12, 2017 22:02
Docker - Replacing Apache DocumentRoot using `sed`.
   ENV APACHE_DOCUMENT_ROOT /var/www/mapasculturais/src

   RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
   RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
  • sudo vim /home/vinnyfs89/.local/share/applications/telegramdesktop.desktop

You will see something like this:

[Desktop Entry]                                                                                                                                                         
 Version=1.0                                                                                                                                                             
 Name=Telegram Desktop                                                                                                                                                   
 Comment=Official desktop application for the Telegram messaging service                                                                                                 
 TryExec=/opt/telegram/telegram                                                                                                                                          
@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'