This file contains hidden or 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
* Install Pi OS lite 64-bit, with hostname, agrif user, locale. | |
* modify /boot/firmware/config.txt, put the following under [all]: | |
# serial console (see also cmdline.txt) | |
enable_uart=1 | |
# pisugar RTC on i2c address 0x68 | |
dtoverlay=i2c-rtc,ds3231 | |
* use serial console for now |
This file contains hidden or 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 | |
set -eu -o pipefail | |
# This hook shows the relevant commits and remote and confirms that you want | |
# to push this before allowing a push to complete. | |
# Comment to disable colors. | |
USE_COLOR="1" | |
remote="$1" |
This file contains hidden or 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
# !!! THIS FILE IS GENERATED BY generate.py | |
# !!! DO NOT EDIT THIS FILE DIRECTLY | |
# !!! generated at 2025-06-21 14:24:19.715388+00:00 | |
"""SpaceTraders API v2.3.0 | |
SpaceTraders is an open-universe game and learning platform that | |
offers a set of HTTP endpoints to control a fleet of ships and explore | |
a multiplayer universe. |
This file contains hidden or 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 __future__ import annotations | |
import dataclasses | |
import datetime as dt | |
import enum | |
import typing | |
__all__ = [ | |
'Faction', 'FactionSymbol', 'FactionTrait', 'FactionTraitSymbol', | |
'Meta', 'PublicAgent', 'System', 'SystemType', 'SystemWaypoint', |
This file contains hidden or 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 __future__ import annotations | |
import time | |
import threading | |
import typing | |
Timer: typing.TypeAlias = typing.Callable[[], float] | |
class Limiter: | |
"""Base class for rate limit helpers.""" |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import code | |
import datetime | |
import enum | |
import logging | |
import pathlib | |
import readline | |
import rlcompleter | |
import time |
This file contains hidden or 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
import spess.client | |
import spess.models | |
def extract_cycle(c, ship): | |
ext = ship.extract_resources().extraction.yield_ | |
print(f'got {ext.units} units of {ext.symbol}') | |
ship.wait() | |
if ext.symbol != 'IRON_ORE': | |
ship.jettison_cargo(ext.symbol, ext.units) | |
print(ship.cargo) |
This file contains hidden or 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
#!/usr/bin/env python3 | |
from collections import Counter | |
from dataclasses import dataclass | |
from functools import cached_property | |
import math | |
import sys | |
import numpy | |
import numpy.fft |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# usage: ./wordlyzer.py [guess ...] answer | |
import enum | |
import math | |
import pathlib | |
import sys | |
import urllib.request | |
import numpy |
This file contains hidden or 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
<command names="help">http://overviewer.org/irc/bot</command> | |
<command names="hesperus">https://github.com/agrif/hesperus</command> | |
<command names="dtt,dttguide"> | |
https://github.com/overviewer/Minecraft-Overviewer/wiki/DTT-Upgrade-Guide | |
</command> | |
<command names="quickstart,quickstartguide,guide"> | |
https://github.com/overviewer/Minecraft-Overviewer/wiki/Quick-Start-Guide | |
</command> | |
<command names="rmo,rmoguide"> | |
https://github.com/overviewer/Minecraft-Overviewer/wiki/Rendermode-Options-Guide |
NewerOlder