Skip to content

Instantly share code, notes, and snippets.


Dave Winer scripting

View GitHub Profile
scripting / publish.js
Created Jan 2, 2023
The script I use to publish from Drummer to
View publish.js
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 ("" + urlOutline); //ping the server
var options = { //try to make the update happen immediately
type: "POST",
url: "",
scripting / filter.js
Last active Sep 30, 2022
Hello World filter.js for PagePark
View filter.js
//hello world filter.js for PagePark -- 9/30/22 by DW
const headers = {["Content-Type"]: "text/plain"};
options.httpResponse.writeHead (200, headers);
options.httpResponse.end ("Hello World");
scripting / localFileVerbs.js
Last active Aug 25, 2022
Verbs for Electric Drummer
View localFileVerbs.js
localfile = { //verbs for Electric Drummer
read: function (path) {
return new Promise (function (resolve, reject) {
fs.readFile (path, function (err, data) {
if (err) {
reject (err);
else {
resolve (data);
scripting / rss.xml
Created Aug 17, 2022
My feed after posting the tweet for the case study
View rss.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- RSS generated by tweetfeed v2.0.1 on Wed, 17 Aug 2022 16:15:40 GMT -->
<rss version="2.0" xmlns:source="">
<title>davewiner tweets</title>
<description>A feed of recent tweets from davewiner.</description>
<pubDate>Wed, 17 Aug 2022 16:15:35 GMT</pubDate>
<generator>tweetfeed v2.0.1</generator>
View river.json
"feeds": [
"feedUrl": "",
"items": [
"feedUrl": "",
"guid": "",
"title": "Live Updates: Even as It Mounts Its Own Offensive, Ukraine Braces for a Russian Attack in the South",
"link": "",
scripting / nodeerr.txt
Created May 31, 2022
just a random node error log
View nodeerr.txt davewiner$ npx electron-builder -m
Need to install the following packages:
Ok to proceed? (y) y
npm WARN deprecated dmg-license@1.0.11: Disk image license agreements are deprecated by Apple and will probably be removed in a future macOS release. Discussion at:
• electron-builder version=23.0.3 os=20.5.0
• loaded configuration file=/Users/davewiner/nodeEditor/
• writing effective config file=dist/builder-effective-config.yaml
• installing production dependencies platform=darwin arch=arm64 appDir=/Users/davewiner/nodeEditor/
⨯ /usr/local/bin/node process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
View item.xml
<description>This is an &lt;b&gt;example&lt;/b&gt; of an item with a source:markdown element</description>
<pubDate>Sat, 28 May 2022 17:19:21 GMT</pubDate>
<guid isPermaLink="false">7305</guid>
<source:markdown>This is an **example** of an item with a source:markdown element.</source:markdown>
View gist:86dea43e854eefbe04b2a4df9ea93b37
<meta charset="UTF-8">
body {
font-family: TwitterChirp, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif
View wordleTweet.json
"created_at": "Sun May 01 15:07:15 +0000 2022",
"id": 1520781905175662600,
"id_str": "1520781905175662594",
"full_text": "Wordle 316 5/6\n\n⬜⬜⬜⬜⬜\n⬜🟩⬜⬜⬜\n⬜⬜⬜🟨⬜\n⬜🟩🟩⬜⬜\n🟩🟩🟩🟩🟩",
"truncated": false,
"display_text_range": [
scripting / rollover.js
Created Jan 1, 2022
This is the code I ran to do a rollover of the index of my blog in Daytona
View rollover.js
daytona.removeOutlineRefs ("") ("")