Skip to content

Instantly share code, notes, and snippets.

Avatar

Dave Winer scripting

View GitHub Profile
@scripting
scripting / nodeerr.txt
Created May 31, 2022
just a random node error log
View nodeerr.txt
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 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: 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
View item.xml
<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>
View gist:86dea43e854eefbe04b2a4df9ea93b37
<html>
<head>
<meta charset="UTF-8">
<style>
body {
font-family: TwitterChirp, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif
}
</style>
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": [
0,
45
],
@scripting
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 ("http://drummer.scripting.com/davewiner/blog.opml")
daytona.ping ("https://raw.githubusercontent.com/scripting/Scripting-News/master/blog/opml/2021/12.opml")
@scripting
scripting / root.txt
Last active Dec 29, 2021
Example from my E/D
View root.txt
user {
prefs: {
dropboxfolder: "/users/davewiner/Dropbox/",
publicfolder: "/users/davewiner/publicFolder/"
}
}
@scripting
scripting / convertOpmlArchive.txt
Created Dec 22, 2021
A script that runs in Frontier to convert the big OPML archive to the current form.
View convertOpmlArchive.txt
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 / config.json
Last active Nov 24, 2021
An example config.json for PublicFolder that does not delete files when they are removed from the watched folder.
View config.json
{
"watchFolder": "/Users/cluelessnewbie/publicFolder/",
"s3Folder": "/mybucket.com/publicfolder/",
"urlS3Folder": "http://mybucket.com/publicfolder/",
"flDeleteEnabled": false
}
@scripting
scripting / buildVerbList.js
Last active Nov 24, 2021
A script that generates the current list of Drumkit verbs.
View buildVerbList.js
//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 / getCursorLink.js
Last active Nov 15, 2021
The source for the Drummer oldSchool.getCursorLink verb.
View getCursorLink.js