Skip to content

Instantly share code, notes, and snippets.

View palaueb's full-sized avatar

Marc palaueb

View GitHub Profile
@palaueb
palaueb / unfollow_all.js
Created January 1, 2025 19:42
AUTOMATIC UNFOLLOWER
function startProcess() {
console.log('inici');
// Primer element: click al botó de "unfollow"
const unfollowButton = document.querySelector('button[data-testid$="unfollow"]');
console.log(unfollowButton);
if (unfollowButton) {
unfollowButton.click();
// Espera un temps aleatori entre 800 ms i 1200 ms i clicka al segon element
const randomDelay = Math.floor(Math.random() * (120 - 80 + 1)) + 80;
@palaueb
palaueb / ddt.js
Last active January 17, 2025 09:16
DDT: Deleter of Data on Twitter
/*
* DISCLAIMER:
* This script is provided 'as is', without warranty of any kind, express or implied.
* The author will not be liable for any damages, loss of data, or any other harm
* resulting from the use of this script.
*
* This script is intended for educational purposes only. Use it at your own risk.
* By using this script, you agree to assume all responsibilities and consequences
* associated with its execution.
*
@palaueb
palaueb / ssh-close-stuck-session.md
Last active September 4, 2024 19:53
How to Safely Exit a Stuck SSH Session

Managing SSH Sessions: Essential Commands and Tips

How to Safely Exit a Stuck SSH Session

Step 1: Press Enter

  • Description: Ensures you are at the beginning of a new line, necessary for the commands to be recognized.
  • Usage: Hit the Enter key.

Step 2: Type ~

  • Description: Uses the tilde key as a special escape sequence initiator for SSH.
@palaueb
palaueb / git-merge-cat.md
Created July 20, 2024 08:12
Merge d'una branca git de forma manual

Merge d'una branca git de forma manual

Actualitzar el teu repositori local: Primer, assegura't que tens les darreres canvis del repositori:

git fetch origin

Canviar a la branca principal: Abans de fer el merge, canvia a la branca principal: