Skip to content

Instantly share code, notes, and snippets.

@BastiTee
BastiTee / .gitignore
Last active December 8, 2024 20:09
Custom Texts for MonkeyType
wordlist-*.txt
@BastiTee
BastiTee / download_pocket_articles.py
Created July 19, 2022 16:02
A vanilla py-script to download all Pocket.com data via API.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""A vanilla py-script to download all Pocket.com data via API.
Read before:
- https://blog.getpocket.com/2012/11/introducing-the-new-pocket-api-for-developers-and-publishers/
- https://getpocket.com/developer/docs/authentication
"""
import json
@BastiTee
BastiTee / autodns.py
Created February 27, 2021 12:31
Crontab-ready Python script to update AutoDNS / InternetX domains
# -*- coding: utf-8 -*-
"""Update script for AutoDNS / InternetX.
Requires:
- https://pypi.org/project/requests/
- https://pypi.org/project/click/
"""
import logging
from re import match
@BastiTee
BastiTee / style.css
Last active January 29, 2021 08:39
A stylesheet for a very compact and post-it-colored Jira sprint board
/*
A COMPACT KIOSK-LIKE THEME FOR JIRA KANBAN BOARD
@BastiTee
URL-FILTERING
-------------
- Use this regex in stylus/browser: .*rapidView=42[^v]*
- Make sure to change the '42' to your board's number
*/
@BastiTee
BastiTee / GameOfLife.kt
Created August 8, 2018 06:56
Game of Life functional in Kotlin
package com.acme.jvm
import java.util.stream.Stream
typealias Board = List<List<Boolean>>
fun step(board: Board) = board.mapIndexed { rowIdx, row ->
row.mapIndexed { colIdx, cellAlive ->
neighboursAlive(board, rowIdx, colIdx) in if (cellAlive) 2..3 else 3..3
}