Skip to content

Instantly share code, notes, and snippets.

View knuxify's full-sized avatar

knuxify knuxify

View GitHub Profile
// ==UserScript==
// @name BotB: MessageBlock
// @namespace https://battleofthebits.com/barracks/Profile/uart/
// @version 2024-08-30
// @description MSGs may not appear at random. =P
// @author uart @ botb
// @match *://battleofthebits.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=battleofthebits.com
// @grant none
// @run-at document-body

mBotB

Mobile tweaks for BotB. Makes the site usable on mobile devices (to some degree)!

Installing

Important: this requires a browser that supports extensions for UserCSS and UserScript support. On Android, this will only work with Firefox.

  • Install the Stylus and Tampermonkey extensions
  • Click the following links to install each of the individual parts (the install page from the above extensions should appear):
# cat /proc/config.gz | gunzip
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.32.9
# Wed Jul 3 15:08:24 2013
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_STACKTRACE_SUPPORT=y
@knuxify
knuxify / README.md
Last active June 26, 2024 16:20
Collective Unconscious: Auto-Kalimba

Collective Unconscious: Auto-Kalimba

Play back MIDI files using the Kalimba!

Not actively maintained, use prod's script instead: https://github.com/prodzpod/kalimba

How to install

This is an userscript; to use it, you need to have a userscript extension installed.

From 21193e9b901569c5dd95f518c6782a608fc53e51 Mon Sep 17 00:00:00 2001
From: knuxify <knuxify@gmail.com>
Date: Sun, 30 Jan 2022 16:19:43 +0100
Subject: [PATCH] TEMP: kernel/printk: use printascii for early message
printing
---
kernel/printk/printk.c | 2 ++
1 file changed, 2 insertions(+)
# coding: utf-8
"""
Generates calendar for trash pickup dates.
(Note: there are plenty of hardcoded variables here, and in general the whole thing
is written half-way in Polish; adapt the code to your own needs yourself.
No warranty provided, caveat emptor.)
"""
from datetime import date, timedelta
import re
@knuxify
knuxify / post.py
Created September 16, 2021 05:06
#!/usr/bin/env python3
"""
posts to thoughts.page
"""
import argparse
from bs4 import BeautifulSoup
import sys
from urllib import request, parse
SESSION_ID = 'get the session-id from the session_id cookie'
#!/bin/bash
trap exit INT
########################
# #
# ARRAY-LESS TICTACTOE #
# #
########################
# Beware: this thing is a monstrosity.
@knuxify
knuxify / domain-blocker
Last active December 4, 2019 18:13
Small domain blocker written in bash. Blocks domains in the /etc/hosts file.
#!/usr/bin/bash
# Domain blocker by knuxify
# This tool is based off the domain-blocker module, but adds a switch handler and additional output.
## User modifiable values:
unset domains
domains="youtube.com twitter.com discordapp.com nulled.red" # domains to block, separated by spaces
start() {
@knuxify
knuxify / buildalab.md
Last active April 16, 2019 08:20
Build-A-Lab Global Rules

Build-A-Lab Guidelines and Terms of Service

We're taking things seriously.

Commonly used terms

Users - players who use the plots.

Build-A-Lab Staff Commitee - Build-A-Lab staff. They decide how are plots going to be placed and plan out roads.