Skip to content

Instantly share code, notes, and snippets.

View scripting's full-sized avatar

Dave Winer scripting

View GitHub Profile
@scripting
scripting / samAltmanEmail.md
Created December 2, 2025 23:51
I asked ChatGPT to write an email to Sam Altman for me

Subject: Real-time news as a strategic opportunity for OpenAI

Hi Sam Altman,

I’ve been thinking about an opportunity for OpenAI that seems both obvious and under-leveraged: real-time news. Google has historically been reluctant to provide true real-time interpretation of what’s happening in media as it happens, and the traditional news orgs are collapsing under economic and institutional strain. This leaves a vacuum.

OpenAI could step into this space by focusing on rapid-turnaround understanding of events: identifying who’s speaking on live media, what the actual claims are, how they connect to historical facts, and what we know versus what’s speculation. This would mean going beyond search and beyond chat — toward being a real-time analytical companion for understanding unfolding events.

I know Silicon Valley leaders — Larry Ellison, Elon Musk, etc. — are courting political narratives, including Trump-alignment. If OpenAI goes that route, real-time fact-based analysis becomes even more important. The

@scripting
scripting / rss.xml
Created November 11, 2025 15:55
Feed example showing various elements in the source namespace
<?xml version="1.0"?>
<!-- RSS generated by WordLand v0.7.4 on Tue, 11 Nov 2025 15:04:25 GMT -->
<rss version="2.0" xmlns:source="https://source.scripting.com/">
<channel>
<title>daveverse</title>
<link>https://daveverse.org</link>
<description>Dave's WordPress home in the Fediverse :-)</description>
<pubDate>Tue, 11 Nov 2025 14:41:22 GMT</pubDate>
<lastBuildDate>Tue, 11 Nov 2025 15:04:25 GMT</lastBuildDate>
@scripting
scripting / aiGeneratedFeed.xml
Last active August 9, 2025 13:37
An example of a ChatGPT-generated feed.
<?xml version="1.0" ?>
<!-- See https://github.com/scripting/Scripting-News/issues/325 for discussion. -->
<rss version="2.0">
<channel>
<title>Top News Stories - July 28, 2025</title>
<link>https://example.com/news-feed</link>
<description>A curated feed of the top 20 news stories with emphasis on AI, blogging, U.S. politics, NBA and MLB.</description>
<language>en-us</language>
function notExcluded (draftInfo) {
var flExcluded = false;
appPrefs.historyCatsToExclude.forEach (function (cat1) {
draftInfo.categories.forEach (function (cat2) {
if (cat1 == cat2) {
flExcluded = true;
}
});
});
return (!flExcluded);
@scripting
scripting / template.html
Last active July 29, 2025 11:01
Template for my shownotes site, link to an example in the first comment.
<html>
<head>
<title>[%postTitle%]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet" type="text/css">
<link rel="alternate" type="application/rss+xml" href="[%rssFeedUrl%]">
<%basicIncludes2%>
<script src="//s3.amazonaws.com/scripting.com/code/podcastbuilder/shownotes/code.js?x=2"></script>
<link rel="stylesheet" href="//s3.amazonaws.com/scripting.com/code/podcastbuilder/shownotes/styles.css?x=2">
@scripting
scripting / template.html
Created July 20, 2025 13:04
An example of a template I routinely use in my sites
<html>
<head>
<title>[%postTitle%]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet" type="text/css">
<link rel="alternate" type="application/rss+xml" href="[%rssFeedUrl%]">
<%basicIncludes2%>
<script src="//s3.amazonaws.com/scripting.com/code/podcastbuilder/shownotes/code.js?x=2"></script>
<link rel="stylesheet" href="//s3.amazonaws.com/scripting.com/code/podcastbuilder/shownotes/styles.css?x=2">
@scripting
scripting / logexcerpt.txt
Created June 29, 2025 14:13
An excerpt from my server log
sendToBluesky: params == {
"title": "",
"description": "Room for One More on Mount Rushmore?",
"mailaddress": "",
"password": "",
"urlsite": "https://bsky.social/",
"link": "https://politicalwire.com/2025/06/29/room-for-one-more-on-mount-rushmore/"
}
sendToBluesky: data == {
@scripting
scripting / example.json
Last active May 31, 2025 22:29
Example that sets the legalTags to the tags and attributes that WordLand supports.
"legalTags": {
"allowedTags": [
"p", "br", "b", "i", "strong", "em", "h3", "blockquote", "ul", "ol", "li"
],
"allowedAttributes": {
}
}
@scripting
scripting / daytona.md
Last active May 20, 2025 17:16
Daytona query for "matt mullenweg" in double-quotes.
select *, 
	match (textForSearch) against ('\"matt mullenweg\"') as relevance 
from blogposts 
where match (textForSearch) against ('\"matt mullenweg\"') 
order by relevance desc, whenCreated desc 
limit 100;
@scripting
scripting / rerouteImages.js
Last active May 19, 2025 20:33
I was going to use this in my search engine, when it wanted to display an image over http, reroute it to use an https proxy server. But Chrome wouldn't stay out of the way, so had to give up. Hey I was trying to route around their outage.
function reRouteImgs () { //5/19/25 by DW
$(window).on ("load", function () {
console.log ("reRouteImgs");
$("body img").each (function () {
const url = $(this).attr ("src");
if (beginsWith (url, "http://")) {
console.log ("reRouteImgs: url == " + url);
const proxiedUrl = "https://someproxy.com/?url=" + encodeURIComponent (url) + "&nocache=" + Date.now ();
$(this).attr ("src", "");
$(this).attr ("src", proxiedUrl);