Skip to content

Instantly share code, notes, and snippets.

View Rofram's full-sized avatar
🚀
Focusing

Rodrigo de França Rofram

🚀
Focusing
View GitHub Profile
@Rofram
Rofram / selenium.py
Last active March 2, 2023 06:37
cns selenium
import os
from datetime import date
from time import sleep
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.webdriver import WebDriver
from openpyxl import Workbook
class DownloadCNJDDocuments:
def __init__(self) -> None:
@Rofram
Rofram / backup_postgres.md
Created April 28, 2022 16:18
Backup/Restore Docker Postgres

Backup your databases

docker exec -t your-db-container pg_dumpall -c -U postgres > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql

Restore your databases

cat your_dump.sql | docker exec -i your-db-container psql -U postgres
@Rofram
Rofram / readme.md
Last active November 17, 2022 11:35
Android Command line tools in linux

The latest version of cmdline tools (7302050_latest) seems to have a different directory structure. The folder is now called cmdline-tools instead of tools so when you extract the folder it won't work as expected. sdkmanager also seems to expect to want to be in ${ANDROID_HOME}/cmdline-tools/latest/bin but extracting it in ANDROID_HOME will just give you ${ANDROID_HOME}/cmdline-tools/bin...

So it looks like unzipping the newest version to ${ANDROID_HOME}/cmdline-tools/cmdline-tools will fix this, and remove the need to run sdkmanager --sdk_root.... Easiest way might just be to mkdir -p Android/cmdline-tools and unzip to there & rename the second cmdline-tools to latest

Not sure how this whole forking gists thing is supposed to work but here are the changes I used: https://gist.github.com/jason-s-yu/30375db45c1f71c1259e042d216e4bd3

Go to https://developer.android.com/studio?hl=PL

wget https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip
@Rofram
Rofram / aws.yml
Created January 10, 2022 22:29 — forked from Plankiton/aws.yml
AWS Actions
name: Deploy to Amazon ECS
on:
push:
- main
- develop
pull_request:
- main
- develop
release:
@Rofram
Rofram / rearct-native-app-in-wsl2.md
Last active September 7, 2021 18:55 — forked from bergmannjg/rearct-native-app-in-wsl2.md
Building a react native app in WSL2
@Rofram
Rofram / .gitconfig
Last active April 26, 2022 22:32
my git config global
[user]
name = Rodrigo de França
email = [email protected]
[init]
defaultBranch = main
[core]
editor = code --wait