Skip to content

Instantly share code, notes, and snippets.

View br-arruda's full-sized avatar
🏝️

Bruno Arruda br-arruda

🏝️
  • Brazil
  • 12:27 (UTC -03:00)
View GitHub Profile
# Bootstrap script for dotfiles using chezmoi (Windows/PowerShell)
# Usage: .\bootstrap.ps1 [-Apply]
param(
[switch]$Apply
)
$ErrorActionPreference = "Stop"
Write-Host "🚀 Bootstrapping dotfiles with chezmoi..." -ForegroundColor Cyan
@br-arruda
br-arruda / file_sender.py
Created November 13, 2024 17:20
Just a tool to compress and send a file over e-mail
import argparse
parser = argparse.ArgumentParser(description="Utilitário para enviar um arquivo para um endereço de email.")
# Parâmetro obrigatório para o caminho do arquivo
parser.add_argument(
"file",
type=str,
help="Caminho do arquivo a ser enviado"
)
@br-arruda
br-arruda / README.md
Last active June 2, 2023 17:02
POC Skywalking
cd /root
echo "baixando arquivos do PoC"
wget https://pastebin.com/raw/f1Tg7Z5d -O package.json -q
wget https://pastebin.com/raw/GfAAB41L -O poc-redis-connector.js -q
echo "baixando dependencias do projeto"
npm install --quiet
@br-arruda
br-arruda / ContainerContract.sol
Last active July 21, 2019 18:36
Problem with string comparison using Assert.equals from remix_tests.sol
pragma solidity ^0.5.1;
contract ContainerContract {
bytes32[] public data;
function addData(string memory incomingData) public {
data.push(stringToBytes32(incomingData));
}