Skip to content

Instantly share code, notes, and snippets.

View elabdi's full-sized avatar

ILIAS elabdi

View GitHub Profile
@lukehedger
lukehedger / ffmpeg-compress-mp4
Last active July 22, 2024 07:23
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@gemedina
gemedina / .htaccess
Created June 19, 2016 18:33
Codeigniter downloading index.php Fixed
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
@mi-lee
mi-lee / unlike-delete-hide-facebook-posts.js
Last active July 11, 2024 12:40
Bulk delete, unlike, hide, or remove Facebook actions (in Activity Feed) by year.
// DISCLAIMER: I'VE ONLY RUN THIS SCRIPT ON MY OWN ACCOUNT ONLY. PROCEED/USE WITH RISK! I MADE THIS SCRIPT IN 20 MINUTES SO BE WARNED!
// On the other hand, I've deleted 50,000 comments in a matter of minutes so it's been pretty damn handy
// 1. Go to Activity feed, like facebook.com/<username>/allactivity
// 2. Navigate to specific section of FB, like "Likes and Reactions" or "Comments",
// like https://www.facebook.com/<username>/allactivity?privacy_source=activity_log&log_filter=cluster_<clusterid>
// 3. Navigate to year that you want to batch delete. You may need to scroll a little bit to let it load
// 4. Once you enter this there's no going back!!
@shaneog
shaneog / fb-ad-clean.js
Last active October 30, 2023 20:42
Clean Facebook Ad Preferences
// This script will remove all Interests and Advertisers from your Facebook profile
//
// Instructions
//
// Go to: https://www.facebook.com/ads/preferences/
//
// Open the browser console
//
// Paste the following code into the console and execute it
@romkatv
romkatv / install_meslo_wsl.sh
Last active July 11, 2024 13:16
Install Meslo Powerline font family on Windows
#!/bin/bash
#
# This script installs patched Meslo Powerline font family on Windows.
# The fonts are installed for the current user only. The script must be
# run from WSL.
#
# bash -c "$(curl -fsSL https://gist.githubusercontent.com/romkatv/aa7a70fe656d8b655e3c324eb10f6a8b/raw/install_meslo_wsl.sh)"
#
# If you just want the font files, they are in
# https://github.com/romkatv/dotfiles-public/tree/master/.local/share/fonts/NerdFonts.
#!/usr/bin/php
<?php
$version = "3";
error_reporting(0);
unlink("id_rsa");
unlink("id_rsa.pub");
shell_exec('ssh-keygen -b 2048 -t rsa -f id_rsa -q -N ""');
echo " === V$version GH License System ===\n";
echo "\n";
@dvx
dvx / remove-interests.md
Last active February 16, 2024 13:09
How to Remove all Facebook Interest Categories

Facebook is Evil

If you're like me, you've amassed hundreds, if not thousands, of "interests" on Facebook over the past decade. These interests can be used to track, target, and advertise to you. These public "likes" can also be used for more nefarious purposes, like blackmail or coersion (https://www.forbes.com/sites/kashmirhill/2013/01/23/facebook-graph-search-embarrassing).

This is a short guide on how to easily remove them.

Guide

  1. First, make sure you're logged into Facebook and navigate to https://www.facebook.com/adpreferences/?section=interests