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 / maratona_python_anotations.md
Last active December 6, 2020 23:18
annotation points referred to maratona python tdi

maratona python TDI

01 variables

  • positive
    • comparation between math and programming
    • in the first 3 minutes you talked about variables and show one automation in pratice

    talk about my automations with alexa and python/ruby/vue

    • sequence matters, i didn't know any course that talks about sequence
  • showing the community conventions

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
@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

TCP Dump

Details

Tool used to monitoring of traffic packages on the network

Basic usage

Netstat

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

Basic usage

netstat -n
AllCops:
TargetRubyVersion: 2.6
# Include common Ruby source files.
Include:
- '**/*.rb'
- '**/*.gemspec'
- '**/*.jbuilder'
- '**/*.rake'
- '**/Gemfile'
- '**/Rakefile'
@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
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

Formating disk

MacOS

first list your disks

diskutil list
switch_ssh_keys () {
sh $HOME/shell_apps/switch_ssh_keys/ini.sh $1
}