Skip to content

Instantly share code, notes, and snippets.

View scripting's full-sized avatar

Dave Winer scripting

View GitHub Profile
@scripting
scripting / buildVerbList.js
Last active November 24, 2021 16:01
A script that generates the current list of Drumkit verbs.
//Changes
//11/23/2021 by DW
//Updated to handle a subcategory of verbs, such as op.attributes.
//11/22/2021 by DW
//http://drummer.scripting.com/davewiner/verblist.opml
var theOutline = {
opml: {
head: {
title: "Drumkit verb list",
dateCreated: "Mon, 22 Nov 2021 21:49:22 GMT",
@scripting
scripting / config.json
Last active November 24, 2021 14:24
An example config.json for PublicFolder that does not delete files when they are removed from the watched folder.
{
"watchFolder": "/Users/cluelessnewbie/publicFolder/",
"s3Folder": "/mybucket.com/publicfolder/",
"urlS3Folder": "http://mybucket.com/publicfolder/",
"flDeleteEnabled": false
}
@scripting
scripting / convertOpmlArchive.txt
Created December 22, 2021 16:45
A script that runs in Frontier to convert the big OPML archive to the current form.
on convertOpmlArchive () {
«Changes
«12/21/21; 3:25:01 PM by DW
«This script converts the archive from the form I found it in on scripting.com, to the form used in the GitHub-based archive.
«Input: One OPML file for each day.
«Output: One OPML file for each month, broken down by day inside the outline.
«All other files, indexes and sitemaps, garbage left around by crappy server software, were not passed through.
local (sourcefolder = "Macintosh HD:Users:davewiner:tmp:opmlArchive:");
local (destfolder = "Macintosh HD:Users:davewiner:tmp:opmlArchive2:");
fileloop (fyear in sourcefolder) {
@scripting
scripting / root.txt
Last active December 29, 2021 15:20
Example from my E/D
user {
prefs: {
dropboxfolder: "/users/davewiner/Dropbox/",
publicfolder: "/users/davewiner/publicFolder/"
}
}
@scripting
scripting / rollover.js
Created January 1, 2022 15:58
This is the code I ran to do a rollover of the index of my blog in Daytona
daytona.removeOutlineRefs ("http://drummer.scripting.com/davewiner/blog.opml")
daytona.ping ("https://raw.githubusercontent.com/scripting/Scripting-News/master/blog/opml/2021/12.opml")
{
"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": [
0,
45
],
<html>
<head>
<meta charset="UTF-8">
<style>
body {
font-family: TwitterChirp, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif
}
</style>
<item>
<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>
</item>
@scripting
scripting / nodeerr.txt
Created May 31, 2022 14:38
just a random node error log
seattle:scripting.com-code-electricdrummer davewiner$ npx electron-builder -m
Need to install the following packages:
electron-builder
Ok to proceed? (y) y
npm WARN deprecated [email protected]: Disk image license agreements are deprecated by Apple and will probably be removed in a future macOS release. Discussion at: https://github.com/argv-minus-one/dmg-license/issues/11
• electron-builder version=23.0.3 os=20.5.0
• loaded configuration file=/Users/davewiner/nodeEditor/scripting.com-code-electricdrummer/electron-builder.json
• writing effective config file=dist/builder-effective-config.yaml
• installing production dependencies platform=darwin arch=arm64 appDir=/Users/davewiner/nodeEditor/scripting.com-code-electricdrummer
⨯ /usr/local/bin/node process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
{
"feeds": [
{
"feedUrl": "https://rss.nytimes.com/services/xml/rss/nyt/World.xml",
"items": [
{
"feedUrl": "https://rss.nytimes.com/services/xml/rss/nyt/World.xml",
"guid": "https://www.nytimes.com/live/2022/08/03/world/ukraine-russia-news-war",
"title": "Live Updates: Even as It Mounts Its Own Offensive, Ukraine Braces for a Russian Attack in the South",
"link": "https://www.nytimes.com/live/2022/08/03/world/ukraine-russia-news-war",