Session ID: ses_3e21fade1ffecORaoKJwTugpH9 Created: 2/2/2026, 10:22:46 AM Updated: 2/2/2026, 11:41:15 AM
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 bash | |
| # | |
| # ready-check.sh — verify the Part 2 "readiness gate" | |
| # Companion to "Coding Agents over Telegram, Part 2: From Zero to an Agent That Answers". | |
| # | |
| # Confirms your config is locked down, the gateway is up, the pane exists, and routing is wired. | |
| # It cannot prove the agent *replied* in Telegram (that's the one manual check) — do that too. | |
| # | |
| # Usage: | |
| # AGENT_ID=my-agent PANE=mybox:1.1 ./ready-check.sh |
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 bash | |
| # | |
| # setup-openclaw.sh — minimal OpenClaw gateway bring-up | |
| # Companion to "Coding Agents over Telegram, Part 2: From Zero to an Agent That Answers". | |
| # | |
| # What it does: pins the runtime, fetches + builds OpenClaw, writes a minimal config | |
| # (only if you pass a bot token), and launches the gateway. It does NOT configure your | |
| # Telegram group/topic or your agent — do those from the post. | |
| # | |
| # Usage: |
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 | |
| dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.Suspend" boolean:true |
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
| 1 | ||
|---|---|---|
| 2 | ||
| 5 | ||
| 1 | ||
| 2 | ||
| 9 | ||
| 8 | ||
| 4 | ||
| 6 | ||
| 7 |
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
| 1 | ||
|---|---|---|
| 2 | ||
| 5 | ||
| 1 | ||
| 7 | ||
| 9 | ||
| 8 | ||
| 4 | ||
| 6 | ||
| 7 |
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
| a = 25 |
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 pandas import DataFrame | |
| # import the required library to open HDF file | |
| from pandas import HDFStore | |
| # File that stores the dataframe | |
| filename = 'data.h5' | |
| # Creating a dataframe | |
| df = DataFrame(np.random.randn(5,3), columns=['A', 'B', 'C',]) | |
| class OpenHDFS(): |
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
| # Using our context manager | |
| with OpenHDFS(filename) as store: | |
| store.put('d1', df) |
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 the required library to open HDF file | |
| from pandas import HDFStore | |
| class OpenHDFS(): | |
| """ | |
| Context Manager class to open / create a HDFS / h5 file | |
| """ | |
| def __init__(self, filename): | |
| """ |
NewerOlder