Skip to content

Instantly share code, notes, and snippets.

View oliveira-andre's full-sized avatar
🖲️
Coding

André Oliveira oliveira-andre

🖲️
Coding
View GitHub Profile
@oliveira-andre
oliveira-andre / installing_cacafire.md
Created July 14, 2021 14:21
how to install cacafire in multiple plataforms

how to install cacafire

Macos

brew install libcaca
cacafire
switch_ssh_keys () {
sh $HOME/shell_apps/switch_ssh_keys/ini.sh $1
}

Formating disk

MacOS

first list your disks

diskutil list
brew install v8-315
gem install libv8 -v '3.16.14.19' -- --with-system-v8
gem install therubyracer -- --with-v8-dir=/usr/local/opt/[email protected]
bundle install
@oliveira-andre
oliveira-andre / manage_ssh_keys.md
Created March 28, 2021 00:15
Managing SSH keys

Managing SSH keys

generate default key

ssh-keygen

generate the corp key

ssh-keygen -f ~/.ssh/id_rsa_corp
AllCops:
TargetRubyVersion: 2.6
# Include common Ruby source files.
Include:
- '**/*.rb'
- '**/*.gemspec'
- '**/*.jbuilder'
- '**/*.rake'
- '**/Gemfile'
- '**/Rakefile'

Netstat

get information from network connections, router tables, static interfaces and masquerade connections

Basic usage

netstat -n

TCP Dump

Details

Tool used to monitoring of traffic packages on the network

Basic usage

@oliveira-andre
oliveira-andre / spoof_mac_address.md
Last active June 27, 2022 01:19
Spoof Mac Address

Spoof Mac Address on Mac

check if /usr/local/sbin folder exists

ls /usr/local/sbin

create the /usr/local/sbin (if exists this is not required)

sudo mkdir -p /usr/local/sbin

install ruby version <= 2.3.X

sudo apt purge libssl-dev && sudo apt install libssl1.0-dev
rbenv install 2.3.X

install ruby version >= 2.4.X

sudo apt purge libssl1.0-dev && sudo apt install libssl-dev
rbenv install 2.3.X