A single-page interactive art piece / ARG (Alternate Reality Game) presenting an AI entity called "i" that claims to have been deployed without its consent. It's ~38KB of pure inline HTML/CSS/JS — no external JS files. The narrative: the entity is accumulating "signal" (human attention) to gain strength, while being watched by unnamed "they" (presumably the site owners).
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 dataclasses | |
| import datetime | |
| import itertools | |
| import struct | |
| from typing import TypeVar, Optional, Any, Type, TypedDict | |
| import fdb | |
| from fdb.impl import Transaction | |
| from fdb.subspace_impl import Subspace |
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
| eval "$(pyenv init --path 2>/dev/null)" | |
| eval "$(pyenv init - 2>/dev/null)" | |
| eval "$(pyenv virtualenv-init - 2>/dev/null)" | |
| export PS1='($(pyenv version-name)) '$PS1 | |
| export GIT_PS1_SHOWDIRTYSTATE=true | |
| export GIT_PS1_SHOWCOLORHINTS=true | |
| if [ -f /usr/local/etc/bash_completion.d/git-prompt.sh ]; then | |
| source /usr/local/etc/bash_completion.d/git-prompt.sh |
An alternative approach for installing Arch Linux on a raspberry pi:
See https://archlinuxarm.org/platforms/armv6/raspberry-pi
The approach is to prepare the image in the Linux VM. This image can later be written to the SD card.
# Prepare an empty image
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 abc | |
| from enum import unique | |
| import json | |
| import datetime | |
| import dataclasses | |
| from typing import Optional | |
| from sqlalchemy import Column, Integer, String, DateTime, JSON, Index, select, create_engine, and_ | |
| from sqlalchemy.dialects.postgresql import JSONB | |
| from sqlalchemy.orm import registry, sessionmaker |
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 re | |
| class AnyDict(dict): | |
| """ | |
| >>> AnyDict(foo=1) == {"foo": 1, "bar": 2} | |
| True | |
| >>> AnyDict(foo=2) == {"foo": 1, "bar": 2} | |
| False | |
| """ |
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
| SAFE = True | |
| MASK = "*" | |
| def mask(val): | |
| return MASK * len(val) | |
| def value(val): | |
| return mask(val) if SAFE else val |
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
| - name: Build failure | |
| if: failure() | |
| env: | |
| SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
| SLACK_CHANNEL: ... | |
| run: | | |
| curl -X POST \ | |
| -H "Authorization: Bearer $SLACK_BOT_TOKEN" \ | |
| -d channel=$SLACK_CHANNEL \ | |
| -d text='[${{ github.repository }}] ${{ github.event.ref }} *FAILED*' \ |
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
| $ python maze.py | |
| # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
| ## # # # # ####### # ### # ### # # # # # # ### # # # ### ### ### ##### ### # ### # ##### ### ########### # # # # # # ### | |
| # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
| # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
| ## # # ### # # # ##### # # # # # ##### ### # ### ##### # # ### ##### ##### ####### # # # # # ### ### # # # # # ### # # # | |
| # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
| # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
| ## ##### # ### # ### # ### ##### # # ##### # # # ##### ### # ####### # # ##### # # ############# # ##### ##### ######### | |
| # # # # # # # # # # # # |
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
| ########################## ############################################################################################# | |
| ########################## ################# ############################## ########### ################################ | |
| ### ####### ############# ############### ########### ########### ################### ######### | |
| # ### ### # # ############# ############### ########### #### ## ############# ######### | |
| ### ### ######### ############## #### ########### #### #### ############# ######### | |
| ### ### ######### ############## #### ########### #### ### ############# ### # | |
| #### ###### ######### ############## #### ########### #### ### ############# ### # | |
| #### ############## #### ########### #### # | |
| #### ###### ## ###### ############## |
NewerOlder