Skip to content

Instantly share code, notes, and snippets.

View nmindz's full-sized avatar
🏠
Working from home

Evandro Camargo nmindz

🏠
Working from home
  • CSGi
  • Rio Claro, SP - Brazil
View GitHub Profile
@nmindz
nmindz / statusline.sh
Last active August 13, 2025 12:35
Claude Code Statusline Handler
#!/bin/bash
# Claude Code statusline script with helper functions, Git awareness, and tool detection
# Read JSON input once
input=$(cat)
# Helper functions for common extractions
get_model_name() { echo "$input" | jq -r '.model.display_name'; }
get_current_dir() { echo "$input" | jq -r '.workspace.current_dir'; }
get_project_dir() { echo "$input" | jq -r '.workspace.project_dir'; }
@nmindz
nmindz / hotmark.py
Created February 18, 2025 13:44 — forked from juvenal/hotmark.py
[Hotmark] Python script to download Hotmart courses that you own. #hotmart #v1
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Esse script faz parte de um projeto bem maior, solto no momento pq quero feedback, de tudo. #
# Também preciso que ele seja testado contra diversos cursos e que os problemas sejam apresentados. #
# Meu telegram: @katomaro #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Antes de mais nada, instale o FFMPEG no sistema (adicionando-o às variáveis de ambiente)
# Após isso, verifique se instalou as dependências listadas abaixo, pelo pip:
# m3u8, beautifulsoup4, youtube_dl
@nmindz
nmindz / find_and_click.js
Last active June 14, 2023 12:46
Find all elements with given text in HTML page and then click them
var elements = Array.from(document.querySelectorAll('span'))
.filter(el => el.textContent === 'Eu quero!');
setTimeout(function(){
for (var i = 0, len = elements.length; i < len; i++) {
elements[i].click();
console.log("clicked element " + i + "...");
console.log("sleeping... 1s");
};
}, 3000);
https://github.com/alacritty/alacritty
https://github.com/FiloSottile/mkcert
https://github.com/sherlock-project/sherlock
https://github.com/GitSquared/edex-ui
https://github.com/agalwood/Motrix
https://github.com/lencx/ChatGPT
https://github.com/massgravel/Microsoft-Activation-Scripts
https://github.com/WerWolv/ImHex
https://github.com/Awesome-Windows/Awesome
https://github.com/AvaloniaUI/Avalonia
[settings]
_aktivitaetsverlauf=1
_experimente=1
_anwendungstelemetrie=1
_kundenzufriedenheit=1
_benutzeraktivitaeten=1
_schreibverhalten=1
_sprachliste=1
_positionserkennung=1
_positionserkennung_benutzer=1
@nmindz
nmindz / create-arch-image-raspberry-pi-2.sh
Created March 16, 2022 20:55 — forked from larsch/create-arch-image-raspberry-pi-2.sh
Shell script that creates a Arch Linux image for the Raspberry Pi 2. Downloads the latest distribution from archlinuxarm.org and creates the flash filesystems including boot partition. Partitions are aligned for typical SD cards and ext filesystem tuned accordingly.
#!/bin/sh -ex
losetup /dev/loop0 && exit 1 || true
image=arch-linux-$(date +%Y%m%d).img
wget -q -N http://archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz
truncate -s 1G $image
losetup /dev/loop0 $image
parted -s /dev/loop0 mklabel msdos
parted -s /dev/loop0 unit s mkpart primary fat32 -- 1 65535
parted -s /dev/loop0 set 1 boot on
parted -s /dev/loop0 unit s mkpart primary ext2 -- 65536 -1

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@nmindz
nmindz / letsencrypt_collector_with_nginx.md
Created June 15, 2021 01:51 — forked from gladiatr72/letsencrypt_collector_with_nginx.md
A Centralized Collector Config for Letsencrypt using NGiNX

Purpose

The purpose of this configuration is to allow the letsencrypt-auto script to function properly from a centralized configuration management host. This allows for managing/automating the creation, deployment and renewal of certificates without resorting to retrieving trust related data from the less trusted managed hosts.

An added bonus is that the auth data stored with the renewal configuration is not littered across the enterprise.

IP Addresses or Host Names