Skip to content

Instantly share code, notes, and snippets.

Avatar

knuxify knuxify

View GitHub Profile
View printk-printascii.patch
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(+)
View trashcalendar.py
# 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
View post.py
#!/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'
View tictactoe.sh
#!/bin/bash
trap exit INT
########################
# #
# ARRAY-LESS TICTACTOE #
# #
########################
# Beware: this thing is a monstrosity.
@knuxify
knuxify / domain-blocker
Last active Dec 4, 2019
Small domain blocker written in bash. Blocks domains in the /etc/hosts file.
View domain-blocker
#!/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 Apr 16, 2019
Build-A-Lab Global Rules
View buildalab.md

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.

View keybase.md

Keybase proof

I hereby claim:

  • I am knuxfanwin8 on github.
  • I am knuxfanwin8 (https://keybase.io/knuxfanwin8) on keybase.
  • I have a public key whose fingerprint is B7F9 7BD6 87BA EA44 C7DC 904F 93EA 7D2F 95A5 99D0

To claim this, I am signing this object:

View drivelinker
#!/bin/bash
# drivelinker - short script to make symlinks of drives
# variables
refreshrate="5" # refresh rate in seconds
desktop="$HOME/Desktop" # user's desktop
mount="/run/media/$USER" # where the drives are mounted
while true; do
for link in $desktop/*