Skip to content

Instantly share code, notes, and snippets.

View ezetojo's full-sized avatar

Ezequiel Tojo ezetojo

View GitHub Profile
@ezetojo
ezetojo / README.md
Created July 6, 2023 20:50 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
@ezetojo
ezetojo / delete-likes-from-twitter.md
Created July 5, 2023 19:40 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
<?php
/**
* Get basedir
*/
function basedir( $docroot = '/' )
{
$docroot = rtrim($docroot, '/\\').DIRECTORY_SEPARATOR;
$basedir = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
if (isset($_SERVER['PATH_INFO'])) {