This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Library: onElementReady ES7 | |
// @namespace org.sidneys.userscripts | |
// @homepage https://gist.githubusercontent.com/sidneys/ee7a6b80315148ad1fb6847e72a22313/raw/ | |
// @version 0.8.1 | |
// @description Detect any new DOM Element by its CSS Selector, then trigger a function. Includes Promise- & Callback interface. Based on ES6 MutationObserver. Ships legacy waitForKeyElements interface, too. | |
// @author sidneys | |
// @icon https://i.imgur.com/nmbtzlX.png | |
// @match *://*/* | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HG changeset patch | |
# User Tom Ritter <[email protected]> | |
# Date 1681485863 14400 | |
# Fri Apr 14 11:24:23 2023 -0400 | |
# Node ID 45c767e3ec49ef47dec62b0ad94481885c46b564 | |
# Parent fce9e73861891da48d1a0b85240491fa3e042f8b | |
MaybeDebugTrap | |
diff --git a/xpcom/base/nsDebug.h b/xpcom/base/nsDebug.h | |
--- a/xpcom/base/nsDebug.h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import datetime | |
import dateutil.parser | |
import subprocess | |
def get_files_and_lines(pattern, files): | |
results = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# preprocess with `cut -d "]" -f 1` | |
import dateutil | |
from dateutil import parser | |
origin = None | |
f1 = open("2-2", "r") | |
f2 = open("2-2-1", "w") | |
for l in f1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CMD_FILE=$(date +"%s") | |
grep [r-][w-][x-][ps] /proc/$1/maps \ | |
| sed -n 's/^\([0-9a-f]*\)-\([0-9a-f]*\) .*$/\1 \2/p' \ | |
| while read start stop; do \ | |
echo "dump memory $1-$start-$stop.dump 0x$start 0x$stop" >> $CMD_FILE; \ | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import re | |
import json | |
import logging | |
import dateutil.parser as parser | |
import datetime | |
import requests | |
import argparse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Normal situation | |
blabla.onion Tor Tor Browser | |
<user asks for blabla.onion> | |
<--- SOCKS CONNECT to blabla.onion --- | |
<Tor fetches descriptor> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import pdb | |
import json | |
import datetime | |
import requests | |
import argparse | |
COUNT=500 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# First MOZ_LOG="MessageManager:5" ./mach run > mmlog.txt 2>&1 | |
# Then ./mmseparate.py mmlog.txt | |
import os | |
import re | |
import sys | |
import time | |
import pathlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import re | |
import sys | |
class URL: | |
def __init__(self, ptr): | |
self.ptr = ptr | |
self.count = 0 | |
self.url = "" |
NewerOlder