Skip to content

Instantly share code, notes, and snippets.

View andrepg's full-sized avatar
🎯
Focusing

André Paul Grandsire andrepg

🎯
Focusing
View GitHub Profile
@andrepg
andrepg / actions-ipv4.txt
Last active February 13, 2024 19:17
GitHub IPSet
4.148.0.0/16
4.149.0.0/18
4.149.64.0/19
4.149.96.0/19
4.149.128.0/17
4.150.0.0/18
4.150.64.0/18
4.150.128.0/18
4.150.192.0/19
4.150.224.0/19
@andrepg
andrepg / load_toolbox_profile.sh
Created October 26, 2023 19:21
Load custom bash profile
# Loads Toolbox's environment variables, by reading specific files
# based on current OCI/container name, searching in a default folder
# for a .bashrc_{container_name} profile
function load_toolbox_profile() {
CONTAINERENV=/run/.containerenv
BASH_PROFILES=$HOME/.config/toolbox/profiles
# Any other value than null here means that we are inside a toolbox
if [[ -f "$CONTAINERENV" ]]; then
## We get the container's name and clean the quotes
@andrepg
andrepg / README.md
Created August 26, 2022 17:57
Resolve e oculta Captcha RD Station

🤖 Resolve Captcha RD Station

Portuguese Brazil

Introdução

Este é um script legítimo para resolver e ocultar as expressões matemáticas obrigatórias de Landing Pages do RD Station. Este código é capaz de encontrar, no DOM, o container de Captcha matemático e resolvê-lo, definindo como valor do input o resultado da soma necessária para avançar com o formulário.

:: ⚠️ IMPORTANTE :: Este script é um legítimo e não deve ser usado para SPAM ou práticas ilícitas. Sua publicação busca ajudar desenvolvedores que buscam códigos para resolver problemas diários e legítimos de clientes.

@andrepg
andrepg / moneymanagerex.sh
Created January 9, 2022 18:42
Build MoneyManagerEX
# install apt repository key and host to install packages
sudo apt-key adv --fetch-keys https://repos.codelite.org/CodeLite.asc
sudo apt-add-repository 'deb https://repos.codelite.org/wx3.1.5/ubuntu focal universe'
sudo apt update
sudo apt install -y --no-install-recommends \
tcl \
build-essential \
ccache \
cmake \
file \
@andrepg
andrepg / automated_install_desktop_wsl.sh
Last active December 7, 2022 22:10
Automated installation shell script
sudo apt update && sudo apt upgrade -y
sudo apt install -y \
curl \
ca-certificates \
apt-transport-https \
wget \
git \
software-properties-common \
dirmngr \
lsb-release
@andrepg
andrepg / emojis.md
Created September 26, 2020 21:23
Markdown GitHub Emojis

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@andrepg
andrepg / SyncBetweenTwoServer.sh
Last active August 2, 2020 21:25
Sync file between Linux servers
echo "- Iniciando sincronizacao com servidor remoto"
echo "-- Abrindo conexao rSync"
rsync -varzuP --human-readable -e 'ssh -p 22' /local/path/* user@host.address.com:/remote/path/
rsync -varzuP --human-readable --exclude 'vendor' --exclude '.env' --exclude 'images' -e 'ssh -p 22' /local/path/* user@host.address.com:/remote/path/
@andrepg
andrepg / main.js
Last active May 28, 2018 00:39
Some jQuery codes
// function to get some URL passed by
// parameter and change the content of div with the result of request
function followHref(href_target) {
$.ajax({
url: 'application/' + href_target.toString(),
async: true,
dataType: "html",
context: '#main-wrapper',
success: function (returnedData) {
document.getElementById('main-wrapper').innerHTML = returnedData