Skip to content

Instantly share code, notes, and snippets.

View gusalbukrk's full-sized avatar

Gustavo Albuquerque gusalbukrk

View GitHub Profile

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 October 8, 2023 00:02
#dns #domain

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
@gusalbukrk
gusalbukrk / windows.md
Created September 19, 2023 13:09
#windows

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 September 14, 2023 12:11
#bash
#!/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
Last active October 3, 2023 23:27
#digitalocean #digital #ocean

Digital Ocean

Enable password authentication in SSH

@gusalbukrk
gusalbukrk / sonarqube.md
Last active August 13, 2023 02:52
#sonarqube