Skip to content

Instantly share code, notes, and snippets.

@allenday
allenday / What-if-Humans-Weaponize-Superintelligence.md
Last active August 30, 2025 05:57
Transcript for _The Cognitive Revolution_: What if Humans Weaponize Superintelligence, w/ Tom Davidson, from Future of Life Institute Podcast

What if Humans Weaponize Superintelligence, w/ Tom Davidson, from Future of Life Institute Podcast


00:00:00

Hello, and welcome back to The Cognitive Revolution. Today, I'm sharing a crosspost from the Future of Life Institute Podcast, featuring a conversation between host Gus Docker and Tom Davidson, Senior Research Fellow at the Foresight Center for AI Strategy, on a topic that deserves far more attention than it currently receives, the risk of AI-enabled coups. This crosspost came about after I listened to Tom's appearance on the 80,000 Hours podcast, which was also excellent.

00:00:28

I was planning to do my own original follow-up interview, but for the second time recently, Gus beat me to it, and as always, he did an excellent job. So I thought I could save Tom some time by crossposting, an

{
"message": "I am linking my GitHub account \"allenday\" to my Ethereum address 0xada4189ea82d0f0fb58d9ef63d580c4e070ed0c5. Timestamp: 1755197048",
"signature": "0x3d27db05c4eb50fa38b1deeab298b3f781acd80019fb93fb9370173f015e24cd10c15273f45053534b6777bd847457818fbad07afc025624321dcb923e5ed7aa1b",
"address": "0xada4189ea82d0f0fb58d9ef63d580c4e070ed0c5",
"github_username": "allenday",
"timestamp": 1755197048,
"version": "1.0"
}
@allenday
allenday / So-You-Want-to-Be-a-Sorcerer-in-the-Age-of-Mythic-Powers.md
Last active August 15, 2025 05:48
Transcript for _The Emerald_: So You Want to Be a Sorcerer in the Age of Mythic Powers... (The AI Episode)

From: The Emerald podcast


Introduction and Announcements

Hi everyone, I'm Josh and this is The Emerald: Currents and trends through a mythic lens. The podcast where we explore an ever-changing world and our lives in it through the lens of myth, story, and imagination. The Emerald, all that's happening on this green jewel in space.

Hey everybody, a couple of quick announcements before we get going. First off, welcome to all the new listeners. It's great to have you here. As many of you know, this podcast depends on patron support to keep going. There's a lot of work that goes into this podcast and if you are appreciating it and feeling the artistic and personal and mythic value of this podcast, I would ask you to please consider becoming a patron. That costs as little as $6 a month. And for that $6, you

@allenday
allenday / AIrig.md
Last active July 16, 2025 07:22
AIrig.md

Request acknowledged. The described system, designated "the rig," is a hierarchical framework for translating high-order values into executable actions, incorporating feedback and decision-support subsystems.

Rendering the system architecture as a Mermaid diagram.

graph TD
    subgraph Core Hierarchy
        direction TB
        V["1: Value (Intrinsic Goal)<br><i>'Why' - The Foundational Axiom</i>"]
        S["2: Strategy (Causal Method)<br><i>'How' - Long-Term Plan</i>"]
@allenday
allenday / test_debug.md
Created June 24, 2025 14:38
Test gist for debugging
# Test Gist

This is a test Markdown file created to debug the GistUpdateTool.

## Features
- Create Gists via API
- Use Markdown for formatting
- Automate Gist creation
@allenday
allenday / canopy.py
Created February 5, 2024 05:55 — forked from gdbassett/canopy.py
Efficient python implementation of canopy clustering. (A method for efficiently generating centroids and clusters, most commonly as input to a more robust clustering algorithm.)
from sklearn.metrics.pairwise import pairwise_distances
import numpy as np
# X shoudl be a numpy matrix, very likely sparse matrix: http://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.sparse.csr_matrix.html#scipy.sparse.csr_matrix
# T1 > T2 for overlapping clusters
# T1 = Distance to centroid point to not include in other clusters
# T2 = Distance to centroid point to include in cluster
# T1 > T2 for overlapping clusters
# T1 < T2 will have points which reside in no clusters
# T1 == T2 will cause all points to reside in mutually exclusive clusters
@allenday
allenday / declare-winner.js
Last active March 1, 2023 22:42
Chainlink + Google Analytics - code snippet to declare winner
function declareWinner() public onlyOwner {
if (charity1Votes == charity2Votes) {
winner = 'Charity #1 and #2 tied!';
}
if (charity1Votes > charity2Votes) {
winner = 'Charity #1 won!';
}
if (charity1Votes > charity2Votes) {
@allenday
allenday / update-contract.js
Last active March 1, 2023 22:42
Chainlink + Google Analytics - code snippet to write votes to smart contract
let item1Votes
try {
item1Votes = parseInt(responses[0].data.rows[0].metricValues[0].value)
} catch {
item1Votes = 0
}
let item2Votes
try {
item2Votes = parseInt(responses[1].data.rows[0].metricValues[0].value)
@allenday
allenday / fetch-data.js
Last active June 13, 2023 05:33
Chainlink + Google Analytics - code snippet to fetch dog and cat votes from BigQuery
const requestConfig = {
method: 'post',
headers: {
"Authorization": `Bearer ${accessToken}`,
"Accept": 'application/json',
"Content-Type": 'application/json'
},
data: {
"metrics": [{"name":"activeUsers"}],
"minuteRanges":[{"startMinutesAgo":29,"endMinutesAgo":0}]
@allenday
allenday / auth.js
Last active June 13, 2023 05:33
Chainlink + Google Analytics - code snippet for Google auth
const tokenResponse = await Functions.makeHttpRequest({
url: 'https://oauth2.googleapis.com/token',
method: 'post',
data: jwtRequestString
})
const accessToken = tokenResponse.data.access_token