This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Any, Final | |
import msgspec | |
from msgspec import inspect | |
class _RecurseMarker: | |
def __repr__(self): | |
return "RECURSE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"theme": "professional" | |
}, | |
"basics": { | |
"name": "Alexander Pushkov", | |
"label": "Full-Stack Developer", | |
"summary": "I’m a versatile full-stack developer with a diverse background in various industries. I prioritize intuitive interfaces and thoughtful interactions in my development process and strive to ship software that users will love.", | |
"email": "alexander@notpushk.in", | |
"location": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
title: Authzed | |
version: '1.0' | |
contact: | |
name: Authzed, Inc. | |
url: https://github.com/authzed/api | |
email: support@authzed.com | |
license: | |
name: Apache 2.0 License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
# dman - read man pages from manpages.debian.org | |
# Patched for macOS by Alexander Pushkov <alexander@notpushk.in> | |
############################################################################### | |
# Copyright (C) 2008 Canonical Ltd. | |
# | |
# This code was originally written by Dustin Kirkland <kirkland@ubuntu.com>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI, Depends | |
from contextlib import asynccontextmanager, contextmanager | |
app = FastAPI() | |
@contextmanager | |
def get_answer(): | |
yield 42 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name WaniKani spacier reviews | |
@namespace wanikani-spacier-reviews@ale.sh | |
@version 1.0.0 | |
@author Alexander Pushkov (hey@ale.sh) | |
==/UserStyle== */ | |
@-moz-document domain("wanikani.com") { | |
:root { | |
--color-quiz-srs-correct-background: var(--color-quiz-correct-background); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tabbrowser-tab { | |
--tab-corner-rounding: 30px; | |
--toolbar-color: transparent; | |
overflow: visible !important; | |
} | |
/* Fix left curve display on first tab */ | |
#tabbrowser-arrowscrollbox:not([overflowing="true"]) .titlebar-spacer { | |
margin-inline-end: -15px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 2022 Alexander Pushkov, licensed ISC | |
# Usage: gptman curl in humorous style | |
set -e | |
OPENAI_API_KEY='...' | |
mandir="$(mktemp -d gptman.XXXXXX)" | |
trap "rm -rf ${mandir}" EXIT HUP INT QUIT TERM | |
man="${mandir}/page" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# WTFPL | |
tsp=(/opt/homebrew/bin/tailscale --socket ~/.tailscaled.socket) | |
jq() { | |
/opt/homebrew/bin/jq "$@" | |
} | |
status_json="$("${tsp[@]}" status --json)" |
NewerOlder