Skip to content

Instantly share code, notes, and snippets.

View eduwr's full-sized avatar
:shipit:

Eduardo Ricardo eduwr

:shipit:
  • Brazil
View GitHub Profile
@eduwr
eduwr / unfollow-not-following.js
Created July 9, 2024 22:38
Script to help unfollowing people on twitter.
function getButtonWithText(txt) {
const buttons = document.querySelectorAll('button');
for (let button of buttons) {
const span = button.querySelector('span');
if (span && span.textContent === txt) {
return button;
}
}
@eduwr
eduwr / gist:6cf659372c9e171e7ef5c0853c7d3e66
Last active August 5, 2023 15:07
Go Discord Bot development

Settings

  1. Enable developers mode on discord Settings/Advanced/Developers Mode
  2. Naviagate to (discord developers portal)[https://discord.com/developers/applications] and create a new application
  3. Copy the oauth2 client Id and connect the application to your server using the following invite link
https://discord.com/api/oauth2/authorize?client_id=<CLIENT-ID>&permissions=8&scope=bot
@eduwr
eduwr / install-haskell.md
Last active June 19, 2022 00:52
Setup haskell

Setup Haskell Environment on Ubuntu

1. Install Stack

$ curl -sSL https://get.haskellstack.org/ | sh

Source: haskelstack.org