Skip to content

Instantly share code, notes, and snippets.

@subrezon
subrezon / openwrt-on-proxmox.md
Last active April 24, 2025 04:12
How to set up an OpenWRT VM in Proxmox
  1. Go to OpenWRT release page, select the latest release stable release, then targets -> x86 -> 64. Right-click generic-ext4-combined.img.gz (not the "efi"!) and copy the link.

  2. On the Proxmox host, download the archive and unpack it:

wget *paste link here*
gunzip openwrt-*.img.gz
  1. Resize the image to be the size you want your VM's disk to be (example with 8 GiB):
@TheBrokenRail
TheBrokenRail / README.md
Last active March 17, 2025 13:05
Jailbreak Firefox!

Jailbreak-Firefox

This script allows you to install unsigned extensions (ones that aren't approved by Mozilla) on normal Firefox builds and the official Snap! That's right, no "Firefox Developer Edition" nonsense required!

⚠️ Disclaimer ⚠️

This script is not well tested, like at all. This script might break things, possibly important things. You should probably take a backup of your Firefox profile before using it. You have been warned.

Dependencies

sudo apt install -y curl unzip zip
# Only needed when jailbreaking the Snap
@stevesouders
stevesouders / activetable.js
Last active December 30, 2024 05:11
ActiveTable is a bookmarklet that makes any table sortable. It also allows you to remove columns, and it remembers the removed columns for next time. Use alt+click to UNhide all columns (and clear memory). To use it, create a bookmark called "ActiveTable" that has this URL: javascript:(function(){ var jselem=document.createElement('SCRIPT'); jse…
// ActiveTable - a bookmarklet to make tables sortable and editable
function init() {
var aHrows = getHrows();
var numHrows = aHrows.length;
var aHidden = getHiddenColumns();
ATpopup = document.createElement("div");
ATpopup.style.cssText = "position: absolute; visibility: hidden; padding: 0; font-family: Arial; background-color: rgba(255, 255, 255, 0.9); border-radius: .5em; text-align: center; box-shadow: .05em .05em .5em #00C;";
ATpopup.innerHTML = "<a href='sort' title='sort' onclick='sortColumn(); return false'><img border=0 src='http://stevesouders.com/images/sort_up_down.png' style='padding-top: 0.2em;'></a><br><a href='hide' style='color: #C00; font-family: monospace; font-size: 1.5em; text-decoration: none;' title='hide' onclick='hideColumn(); return false'>x</a>"; // TODO - use protocol-less URL for img
@willurd
willurd / web-servers.md
Last active April 28, 2025 14:34
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@arantius
arantius / grant-none-shim.js
Last active May 21, 2022 14:47
Greasemonkey "@grant none" compatibility shim.
/*
The MIT License (MIT)
Copyright (c) 2014 Anthony Lieuallen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@nmaier
nmaier / httpreqrespobserver.js
Created January 18, 2012 01:16
http request/response observer template module
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
const EXPORTED_SYMBOLS = ['HttpRequestObserver'];
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
const module = Cu.import;
const error = Cu.reportError;
@ushkinaz
ushkinaz / cygwin-mirror-speed.py
Last active February 22, 2025 23:45
Tests HTTP mirrors of Cygwin by measuring download times.
#!/usr/bin/env python3
"""
Script to test HTTP mirrors of Cygwin by measuring download times.
Originally written in 2011, modernized in 2025.
"""
from math import floor
from urllib.request import urlopen
import argparse
import sys
@arantius
arantius / api-tester.user.js
Last active June 3, 2017 22:19
General purpose Greasemonkey Tester
// ==UserScript==
// @name Greasemonkey Tester
// @name:en-US Greasemonkey Tester (en-US)
// @name:fr La Tester Sur Greasemonkey
// @namespace https://github.com/arantius
// @include http://localhost/infinite.php?*
// @match http://localhost/infinite.php*
// @exclude /.*0$/
// @resource R https://gist.github.com/arantius/1157543/raw/data.txt
// @icon http://icons.iconarchive.com/icons/chicho21net/jungle-bells/48/CocoDrilo-icon.png
@arantius
arantius / authors-karma-blocker-rules.ini
Last active March 22, 2017 18:16
The Karma Blocker rules used by the author
# See: https://github.com/arantius/karma-blocker/wiki/Configuration
[Settings]
threshold=12
cutoff=18
collapse=false
[Group]
name="Personal sites whitelist"
score=-12
rule=$origin.host=='localhost'
@arantius
arantius / Karma_Blocker_Default_Rules.ini
Created March 7, 2011 01:42
The default rules for a Karma Blocker installation.
# This is a ruleset configuration for Karma Blocker. For more information, see:
# http://trac.arantius.com/wiki/Extensions/KarmaBlocker
# This default ruleset is intended to be demonstrative: making productive
# use of all the features that the Karma Blocker rule syntax provides. It
# should generally work, but it has intentionally not been tweaked to deal
# with the particulars of any given site. All rules here are intended to
# explain what can be done, and how it can be done, while remaining as
# generic as possible, with limited exceptions. You the user are expected
# to tweak and customize these rules.