Skip to content

Instantly share code, notes, and snippets.

View scripting's full-sized avatar

Dave Winer scripting

View GitHub Profile
@scripting
scripting / config.json
Last active July 13, 2016 12:26
An example config.json for nodeStorage with automatic updating turned off.
{
"myPort": 1999,
"websocketPort": 2000,
"myDomain": "my.1999.io",
"where": {
"flUseLocalFilesystem": true,
"publicPath": "publicFiles/",
"privatePath": "privateFiles/"
},
var s = "";
for (var i = 1; i < 1000; i++) {
s += i + "\r\n";
}
s;
@scripting
scripting / config.json
Created August 2, 2016 14:56
An example config.json file for the PagePark folder that holds xmlrpc.scripting.com.
{
"redirects": {
"/aBusyDevelopersGuideToSoap": "aBusyDevelopersGuideToSoap.html",
"/aggregatorApi": "aggregatorApi.html",
"/alidl": "alidl.html",
"/bdgChangeNotes": "bdgChangeNotes.html",
"/bootstrappingTheTwoWayWeb": "bootstrappingTheTwoWayWeb.html",
"/callForEndorsements": "callForEndorsements.html",
"/currentTime": "currentTime.html",
"/davesSoapJournalPart1": "davesSoapJournalPart1.html",
@scripting
scripting / template.html
Created August 5, 2016 17:15
The template I use for blog.1999.io
<html>
<head>
<title>[%title%]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="alternate" type="application/rss+xml" href="[%urlRssFeed%]" />
<script src="http://1999.io/dev/publish/code.js"></script>
<link rel="stylesheet" href="http://1999.io/dev/publish/styles.css"/>
{
"myPort": 1999,
"websocketPort": 2000,
"myDomain": "1999.bigbloat.io:1999",
"where": {
"flUseLocalFilesystem": true,
"publicPath": "publicFiles/",
"privatePath": "privateFiles/"
},
"homePage": {
@scripting
scripting / config.json
Last active August 11, 2016 22:37
A nodeStorage config.json set up to store public and private data on Amazon S3.
{
"myPort": 1999,
"websocketPort": 2000,
"myDomain": "1999.bullmancuso.io:1999",
"where": {
"flUseLocalFilesystem": false,
"publicPath": "bullmancuso.io/1999/publicFiles/",
"privatePath": "mancusousers/1999/privateFiles/"
},
"twitterConsumerKey": "anm3unkb1mof7isav0bkxigby",
@scripting
scripting / config.json
Last active August 14, 2016 13:22
A config.json for 1999.io server that specifies an Editors menu with one item in it.
{
"myPort": 1999,
"websocketPort": 2000,
"myDomain": "1999.bigbloat.io:1999",
"where": {
"flUseLocalFilesystem": true,
"publicPath": "publicFiles/",
"privatePath": "privateFiles/"
},
"homePage": {
@scripting
scripting / config.json
Last active September 17, 2016 13:28
Example config.json for the urlHomePageIntroText feature in 1999.io.
{
"myPort": 1999,
"websocketPort": 2000,
"myDomain": "1999.bigbloat.io:1999",
"where": {
"flUseLocalFilesystem": true,
"publicPath": "publicFiles/",
"privatePath": "privateFiles/"
},
"homePage": {
{
"authorName": "Dave Winer",
"authorWebsite": "http://scripting.com/",
"ctStartups": 3,
"minSecsBetwAutoSaves": 1,
"savedTextArea": "<p><br></p>",
"flAutoSave": true,
"textFont": "Ubuntu",
"textFontSize": 18,
"textLineHeight": 24,
{
"authorName": "Dave Winer",
"authorWebsite": "http://scripting.com/",
"ctStartups": 3,
"minSecsBetwAutoSaves": 1,
"savedTextArea": "<p><br></p>",
"flAutoSave": true,
"textFont": "Ubuntu",
"textFontSize": 18,
"textLineHeight": 24,