Skip to content

Instantly share code, notes, and snippets.

View edson-github's full-sized avatar
🏠
Working from home

Edson Andrade edson-github

🏠
Working from home
View GitHub Profile
@edson-github
edson-github / iterm2.md
Created December 10, 2023 10:36 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@edson-github
edson-github / jupyter_namer.py
Created May 13, 2023 19:55 — forked from ledmaster/jupyter_namer.py
No more "Untitled12-final-final.ipynb"! A python script that ingests Jupyter Notebook cells and comes up with 10 relevant names to give it.
# No more "Untitled12-final-final.ipynb"!
# A python script that ingests Jupyter Notebook cells and comes up with 10 relevant names to give it.
import nbformat
import openai
import argparse
def extract_cell_contents(notebook_path):
with open(notebook_path, "r", encoding="utf-8") as f:
notebook = nbformat.read(f, nbformat.NO_CONVERT)
@edson-github
edson-github / zsh.sh
Created February 19, 2023 10:49 — forked from luizomf/zsh.sh
Ativando ZSH no Ubuntu.
# ZSH
sudo apt install zsh -y
sudo apt-get install powerline fonts-powerline -y
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh
# REBOOT
# sudo reboot
@edson-github
edson-github / Web scrape e-commerce site.py
Created February 2, 2023 14:11 — forked from chayb/Web scrape e-commerce site.py
Web scrape amazon.in TV links
#importing libraries
import selenium
from selenium import webdriver as wb
from selenium.webdriver.support.ui import Select
import pandas as pd
import time
#Opening Chrome browser
wbD=wb.Chrome('chromedriver.exe')
import aspose.cells
from aspose.cells import Workbook, LoadOptions, LoadFormat
loadOptions = LoadOptions(LoadFormat.HTML)
workbook = Workbook(dataDir + "wordtoHtml.html", loadOptions)
workbook.save(dataDir +"wordtoexcel.xlsx")
@edson-github
edson-github / emailchecker.py
Created November 29, 2022 16:54 — forked from humrochagf/emailchecker.py
Lendo emails do gmail
# Este é o código de como ler emails do gmail
# discutido no calango, ele foi escrito para rodar em
# python 3
import email
import imaplib
EMAIL = '[email protected]'
PASSWORD = '@Calango123'
SERVER = 'imap.gmail.com'
@edson-github
edson-github / SEO-Guide.md
Created May 15, 2022 16:11 — forked from 17twenty/SEO-Guide.md
Creating and building an SEO strategy for your site

Hey guys!

There's a TON of content out there on SEO - guides, articles, courses, videos, scams, people yelling about it on online forums, etc etc..

Most of it, however, is super impractical. If you want to start doing SEO TODAY and start getting results ASAP, you'll need to do a TON of digging to figure out what's important and what's not.

So we wanted to make everyone's lives super easy and distill our EXACT process of working w/ clients into a stupid-simple, step-by-step practical guide. And so we did. Here we are.

A bit of backstory:

@edson-github
edson-github / covariance_to_correlation.py
Created May 1, 2022 14:57 — forked from wiso/covariance_to_correlation.py
Compute correlation matrix from covariance matrix using numpy
import numpy as np
def correlation_from_covariance(covariance):
v = np.sqrt(np.diag(covariance))
outer_v = np.outer(v, v)
correlation = covariance / outer_v
correlation[covariance == 0] = 0
return correlation
@edson-github
edson-github / brasil_io.py
Created August 28, 2021 22:55 — forked from turicas/brasil_io.py
Exemplo de código para acessar dados do Brasil.IO
import csv
import gzip
import io
import json
from urllib.parse import urlencode, urljoin
from urllib.request import Request, urlopen
class BrasilIO:
@edson-github
edson-github / README.md
Created August 21, 2021 03:37
QEMU + Ubuntu ARM aarch64

QEMU + Ubuntu ARM aarch64

These are the steps I used to get Ubuntu ARM aarch64 running with QEMU on OSX.

Get Ubuntu Image and QEMU EFI:

wget https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-arm64-uefi1.img
wget https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/QEMU_EFI.fd