Skip to content

Instantly share code, notes, and snippets.

@MrDOS
MrDOS / hide-porkbun-handshake-tlds.js
Created September 19, 2022 12:08
Userscript to hide Handshake TLDs from Pornbun's all-extensions page.
// ==UserScript==
// @name Hide Porkbun Handshake TLDs
// @description Hide Handshake TLDs from Pornbun's all-extensions page.
// @namespace http://seenet.ca/
// @version 1.0
// @match https://porkbun.com/products/domains
// @icon https://www.google.com/s2/favicons?sz=64&domain=porkbun.com
// @grant none
// ==/UserScript==
package config
import (
"net/http"
"regexp"
"strings"
)
// idPatterns describes patterns of IDs in URLs. These patterns are matched
// against an entire URL. These patterns are used as given without any
import java.io.IOException;
import java.io.InputStream;
import gnu.io.CommPortIdentifier;
import gnu.io.SerialPort;
public class DisconnectTest
{
private static final int SLEEP_AFTER_DISCONNECT = 2_000;
public static void main(String[] args) throws Exception
<?php
/**
* Plugin Name: Comment Suppressor
* Description: Hide comments for anonymous and “Subscriber” users.
* Version: 1.0.1
* Author: Samuel Coleman <samuel@seenet.ca>
* License: WTFPLv2
*/
#! /bin/sh
# Configure an Ubuntu system for running Space Engineers. Flagrantly untested.
# Seriously, I haven't even run this once.
# TODO: Report progress to the web UI.
# TODO: Error checking/early failure.
# User data should contain:
#
@MrDOS
MrDOS / modifyValidatorValue.js
Created July 25, 2019 18:13
The Daily WTF: Break my Validation
modifyValidatorValue: function (fieldName, validatorKey, key, value) {
if (helper.isNullOrUndefined(fieldName)
|| helper.isNullOrUndefined(validatorKey)
|| helper.isNullOrUndefined(key)
|| helper.isNullOrUndefined(value)) {
return;
}
// Iterate over fields
var field;
# In retaliation to https://blog.theodo.fr/2018/03/regex-warrior/.
#
# Usage:
#
# awk -v FS=';' -v OFS=';' -f mock.awk <mock.csv
# “NR” is the number of the record we're operating on; effectively a sequential
# counter. We don't want to filter on the first row, which is the header.
NR > 1 && $7 == "false" {
next;
Package: whatpulse
Section: misc
Priority: optional
Homepage: https://whatpulse.org/
Standards-Version: 3.9.2
Depends: libqtcore4, libqtwebkit4, libqt4-sql, libqt4-sql-sqlite, libqt4-script,
libssl1.0-dev, libpcap0.8, gksu
Description: Dummy package for WhatPulse dependencies.
@MrDOS
MrDOS / packcode.cpp
Last active May 2, 2017 19:39
NetBurner packcode
/******************************************************************************
* Copyright 2005
* NetBurner, Inc.
* 5405 Morehouse Drive, Ste 200
* San Diego, CA 92121
*
* information available at: http://www.netburner.com
*
* In addition to the rights retained by the authors, you may also use
* this code under the terms of the GNU public license.
#include <stdio.h>
#include <fcntl.h>
#include <err.h>
#include <unistd.h>
#include <inttypes.h>
#define BUF_SIZE (1048576 * 10)
int main(int argc, char *argv[])
{