Skip to content

Instantly share code, notes, and snippets.

View gusalbukrk's full-sized avatar

Gustavo Albuquerque gusalbukrk

View GitHub Profile
@gusalbukrk
gusalbukrk / index.md
Created August 9, 2025 23:16
#puppeteer #moodle

Automate Trello archived items deletion

Open the panel to show the archived items and run the block of codes below on the console.

Lists

const delay = async (ms) => new Promise((res, rej) => setTimeout(() => res(), ms));
const lists = document.querySelectorAll('.js-delete');
@gusalbukrk
gusalbukrk / dns.md
Created August 9, 2025 23:16
#windows

DNS & domain registration

  • nameservers define your domain's current DNS provider
  • by changing nameservers you change the site in which to manage your DNS records, examples:
  • you can change your nameservers to freedns1.registrar-servers.com and freedns2.registrar-servers.com to start using Namecheap's FreeDNS service to manage DNS records on Namecheap instead of on your current registrar (source)
  • you can change your nameservers to ns1.digitalocean.com., ns2.digitalocean.com. and ns3.digitalocean.com. to start using DigitalOcean to manage DNS records instead of using your current registrar (source)
  • some registrars don't allow you to change nameservers or charge an extra fee for it
  • for example, Cloudflare doesn't allow for custom nameservers unless the client pa
@gusalbukrk
gusalbukrk / windows.md
Created August 9, 2025 23:16
#BOCA #MaratonaLinux #tutorial

Windows

Shortcut to run in elevated mode

  • CTRL + SHIFT + ENTER = works in many places, e.g. start menu, file explorer, Run command box

Enable networking sharing

  • you must be logged as an administrator
  • Ctrl + I, click Networks e Internet, click Advanced network configurations, click Advanced sharing configurations, enable both options under Public networks, under All networks enable first option and disable 3rd option
@gusalbukrk
gusalbukrk / rename.sh
Created August 9, 2025 23:16
#HCI #MHP
#!/bin/bash
# directory="$HOME/gists_backup/"
# file_list=$(find "$directory" -mindepth 1 -maxdepth 1 -type d)
# for file in $file_list; do
# dir_name=$(basename "$file")
# echo "Processing file: $dir_name"
@gusalbukrk
gusalbukrk / digital-ocean.md
Created August 9, 2025 23:16
#python #maratona

Digital Ocean

Enable password authentication in SSH