Skip to content

Instantly share code, notes, and snippets.

View scripting's full-sized avatar

Dave Winer scripting

View GitHub Profile
@scripting
scripting / callingMicroBlog.js
Created February 22, 2026 20:06
How I publish from Drummer to micro.blog
var urlOutline = opml.getHeaders ().urlPublic;
if (urlOutline === undefined) {
dialog.alert ("Can't publish your outline because it doesn't have an \"urlPublic\" head-level attribute.");
}
else { //ping the server
http.readUrl ("https://micro.blog/ping?url=" + urlOutline); //ping the server
http.readUrl ("http://micro.blog/ping?url=https://dave.micro.blog/feed.xml") //ask it to read the RSS feed
var options = { //try to make the update happen immediately
@scripting
scripting / demo.html
Created February 20, 2026 14:12
HTML in an outline structure
<div class="divItemSummary">
<div class="divAvatarContainer">
<div class="divAvatar">
<img width="64" height="64" src="https://i0.wp.com/daveverse.org/wp-content/uploads/2026/01/cropped-brilliantTree.png?fit=96%2C96&amp;ssl=1">
</div>
</div>
<div class="divTextContainer">
<div class="divTopline">
<div class="spSiteLink"></div>
</div>
@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": {
}
}