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)
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 == """
########
@Debilski
Debilski / converter.py
Created August 5, 2018 18:13
Convert pecunia csv to moneymoney
import pandas as pd
# This needs to be exported from Pecunia (in that order!)
names = [
'Datum', # Called 'Buchungsdatum' in Pecunia
'Wertstellung', # 'Valutadatum'
'Kategorien',
'Name', # 'Empfänger'
'Verwendungszweck',
'IBAN Empfänger',