Basic Capabilities:
- WiFi
- Local SSH identity (hardware backed?)
- Mosh (wishful thinking)
- Text mode interface
- Batteries with decent life
- Good keyboard
- Local UI for some configuration options
- Non-trivial fonts
Basic Capabilities:
-- AstroNvim Configuration Table | |
-- All configuration changes should go inside of the table below | |
-- You can think of a Lua "table" as a dictionary like data structure the | |
-- normal format is "key = value". These also handle array like data structures | |
-- where a value with no key simply has an implicit numeric key | |
local config = { | |
-- Configure AstroNvim updates | |
updater = { |
def mutate_url(url, *, | |
username=None, password=None, hostname=None, port=None, **kwargs | |
): | |
import urllib.parse | |
bits = urllib.parse.urlparse(url) | |
assert not ( (username or password or hostname or port) and 'netloc' in kwargs ) # noqa | |
if username or password or hostname or port: | |
# FIXME: url encoding | |
u = username or bits.username | |
w = password or bits.password |
Creates & pushes empty commits without disturbing your index or workspace
git-boop.sh
to git-boop
on your $PATH
git boop
#!/usr/bin/env python3 | |
""" | |
Launches and manages uMTP-Responder with better cleanup. | |
""" | |
import contextlib | |
import os | |
from pathlib import Path | |
import subprocess | |
import tempfile | |
import time |
#!/usr/bin/env buildahscript | |
#| pip: requests | |
#| arg: eula: bool | |
#| arg: version: str = "latest" | |
#| arg: type: str = "vanilla" | |
with TemporaryDirectory() as td: | |
bin = td / 'bin' | |
bin.mkdir() | |
with workspace('rust:buster') as build: |
import contextlib | |
import json | |
import os.path | |
import subprocess | |
import tempfile | |
import time | |
from varlink import Client | |
IMG = "quay.io/libpod/alpine_nginx:latest" |
#!/usr/bin/python3 | |
import enum | |
import dataclasses | |
import struct | |
import asyncio | |
import weakref | |
class InvalidPacket(Exception): | |
""" |
The basic idea: Define GraphQL queries as importable modules.
For example:
# queries.gql
#!starwars
query HeroForEpisode($ep: Episode!) {
hero(episode: $ep) {