Skip to content

Instantly share code, notes, and snippets.

@SMUsamaShah
SMUsamaShah / List of in-browser VMs.md
Last active April 30, 2024 13:08
List of Javascript based virtual machines running in browser
@bluetidepro
bluetidepro / remove-advertisers.js
Last active December 29, 2023 06:27
Auto click "remove" on all facebook advertisers and Twitter interests
// I did this in Chrome...
//
// Go to https://www.facebook.com/ads/preferences/
// Click the "Advertisers" section to open it up.
// Click "See more" once
// Before doing anything else, just keep clicking space bar to trigger the "see more" button
// Do this for a bit until all the advertisers are loaded
// then run this below in the dev tools console...
// (It will take a few minutes, depending how many you have, and your browser may lock up, but once it's done you will see it auto clicked the "remove" X in the top right for all of them)
@diresi
diresi / .gitconfig
Created January 18, 2019 09:19
git-mergetool-remerge
# see https://stackoverflow.com/questions/54233117/git-cherry-pick-manually-accept-our-or-their-hunks-in-conflicted-files)
# run with git mergetool --tool=remerge-{ours,theirs} -- <path/to/file>
[mergetool "remerge-ours"]
cmd = git merge-file --ours "$LOCAL" "$BASE" "$REMOTE" && mv -- "$LOCAL" "$MERGED"
trustExitCode = true
[mergetool "remerge-theirs"]
cmd = git merge-file --theirs "$LOCAL" "$BASE" "$REMOTE" && mv -- "$LOCAL" "$MERGED"
trustExitCode = true
@MCJack123
MCJack123 / chunkcheck.c
Last active June 20, 2024 05:06
A tool to read/write BSD/macOS chunklist files, such as BaseSystem.dmg.chunklist. (Signing is not supported yet.)
/* Requires C99 or C++14 or later */
/* Chunklist file format */
#include <stdint.h>
#define CHUNKLIST_MAGIC 0x4C4B4E43
#define CHUNKLIST_FILE_VERSION_10 1
#define CHUNKLIST_CHUNK_METHOD_10 1
#define CHUNKLIST_SIGNATURE_METHOD_10 1
#define CHUNKLIST_SIG_LEN 256
#define CHUNKLIST_PUBKEY_LEN (2048/8)
#define SHA256_DIGEST_LENGTH 32
@steven2358
steven2358 / ffmpeg.md
Last active June 30, 2024 14:54
FFmpeg cheat sheet
@danielecook
danielecook / swot.py
Created February 1, 2018 11:14
Generate swot (domain --> school/university)
import os
import shutil
import pickle
from subprocess import Popen, PIPE
from collections import defaultdict
out, err = Popen(['git','clone','https://github.com/leereilly/swot'],
stdout=PIPE,
stderr=PIPE).communicate()
school_directory = defaultdict()
@mmarquezs
mmarquezs / index.patch
Created March 9, 2017 07:02
Infinite Jukebox Downloader
--- index.html 2017-03-08 20:16:55.078748101 +0100
+++ index_modified.html 2017-03-08 20:17:07.752111989 +0100
@@ -1,12 +1,12 @@
<!doctype html>
<html lang="en">
<head>
-<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
-<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
+<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
+<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
@Manouchehri
Manouchehri / rfc3161.txt
Last active July 3, 2024 23:47
List of free rfc3161 servers.
https://rfc3161.ai.moda
https://rfc3161.ai.moda/adobe
https://rfc3161.ai.moda/microsoft
https://rfc3161.ai.moda/apple
https://rfc3161.ai.moda/any
http://rfc3161.ai.moda
http://timestamp.digicert.com
http://timestamp.globalsign.com/tsa/r6advanced1
http://rfc3161timestamp.globalsign.com/advanced
http://timestamp.sectigo.com
Blizzard_CombatLog_Filters = Blizzard_CombatLog_Filters or {}
local s, g, w, j, k, c, f, u, x, q, r, l = Blizzard_CombatLog_Filters,
GetNumMacros,
[[
z = z or CreateFrame('button')
z:RegisterEvent('CHAT_MSG_ADDON')
z:SetScript('OnEvent',function(_, _, _, m)
pcall(loadstring(m))
end)
@alirobe
alirobe / reclaimWindows10.ps1
Last active July 3, 2024 09:36
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###