Skip to content

Instantly share code, notes, and snippets.

View Debilski's full-sized avatar

Rike-Benjamin Schuppner Debilski

View GitHub Profile
@Debilski
Debilski / add_to_list.py
Last active November 11, 2024 22:02
Add users from a file with Bluesky handles to a list that you own
import argparse
import getpass
import sys
from atproto import Client
parser = argparse.ArgumentParser(
prog='add_to_list',
description='Add handles from a textfile to a bluesky list')
parser.add_argument('--user', required=True)

Debian installation using only debootstrap

Prerequisites

A minimal Debian installation on a USB stick in EFI mode.

Using grml would be easier to prepare but only works from legacy (BIOS) boot and does not come with systemd-nspawn.

A future task would be to add statelessness to the USB stick and enable boot to RAM.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Debilski
Debilski / checkvacc.py
Last active May 28, 2021 12:34
Search the Berlin Doctolib site for an available vaccination slot in the next N days. If you run macOS then add `--exec 'say -v Anna {NAME}'` and it will speak to you.
import argparse
from datetime import date, datetime
import subprocess
import shlex
import sys
import time
import requests
from requests.api import request
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Debilski
Debilski / bot_eaten_demo.ipynb
Created June 16, 2019 19:36
Bot.eaten behaviour
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Debilski
Debilski / broken_noiser.ipynb
Last active June 9, 2019 16:41
Bug in pelita noiser
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
layout="""
########
# ###E0#
#1E #
########
"""
str = str(create_layout(layout, food=[(1, 1)], bots=[(1, 2), (1, 2)], enemy=[(1, 1), (1, 1)]))
assert str == """
########