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 / 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

@nmindz
nmindz / letsencrypt_2017.md
Created June 14, 2021 23:43 — forked from leeoniya/letsencrypt_2017.md
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

There are two main modes to run the Let's Encrypt client (called Certbot):

  • Standalone: replaces the webserver to respond to ACME challenges
  • Webroot: needs your webserver to serve challenges from a known folder.

Webroot is better because it doesn't need to replace Nginx (to bind to port 80).

In the following, we're setting up mydomain.com. HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.

set encoding=utf8
execute pathogen#infect()
" Makes Vim behave nicely
set hidden
" Always show statusline
set laststatus=2