Skip to content

Instantly share code, notes, and snippets.

@andysylvester
andysylvester / River5CallbackTest.js
Created March 12, 2016 22:18
This is a user script for the River5 RSS aggregator
// Based on https://gist.github.com/scripting/1737c886c4f653758033
var now = new Date ();
if (localStorage.feeds === undefined) {
localStorage.feeds = new Object ();
}
if (localStorage.feeds [urlfeed] === undefined) {
localStorage.feeds [urlfeed] = {
ctAdds: 0,
@andysylvester
andysylvester / photos.opml
Created March 12, 2016 22:20
Test OPML subscription list for River5
<?xml version="1.0"?>
<opml version="2.0">
<head>
<title>photos</title>
<dateModified>Tue, 20 Oct 2015 03:43:00 GMT</dateModified>
<expansionState></expansionState>
<lastCursor>0</lastCursor>
</head>
<body>
<outline text=""/>
@andysylvester
andysylvester / River5CallbackforFlickr.js
Last active March 19, 2016 18:12
Demonstration of using the user script functionality in the River5 RSS aggregator by Dave Winer
var now = new Date ();
if (localStorage.feeds === undefined) {
localStorage.feeds = new Object ();
}
if (localStorage.feeds [urlfeed] === undefined) {
localStorage.feeds [urlfeed] = {
ctAdds: 0,
whenFirstAdd: now
};
@andysylvester
andysylvester / testALS01.js
Created June 6, 2022 01:57
Demo of opmlPackage includes feature, also writes the outline to a file
//5/11/22; 4:59:24 PM by DW
//Read an OPML file that has includes.
//Pass it through opml.expandIncludes.
//Display the resulting outline, with the includes expanded.
const fs = require ("fs");
const opml = require ("opml");
fs.readFile ("includesALS.opml", function (err, opmltext) {
if (err) {
@andysylvester
andysylvester / rssCloud_WordPress_com_test.js
Created December 4, 2022 21:57
Node.js test script for testing rssCloud support for WordPress.com sites
var myVersion = "0.40", myProductName = "testRssCloud", myPort = 2222, myDomain = "http://fedwiki.andysylvester.com";
//Test app for Andrew Shell's rssCloud server
//https://github.com/andrewshell/rsscloud-server
var request = require ("request");
var http = require ("http");
var urlpack = require ("url");
var dns = require ("dns");
var qs = require ("querystring");
var myVersion = "0.40", myProductName = "testRssCloud", myPort = 2222, myDomain = "http://fedwiki.andysylvester.com";
//Test app for Andrew Shell's rssCloud server
//https://github.com/andrewshell/rsscloud-server
var request = require ("request");
var http = require ("http");
var urlpack = require ("url");
var dns = require ("dns");
var qs = require ("querystring");
@andysylvester
andysylvester / clouddemo_terminal_output_WPCOM.txt
Created December 18, 2022 04:59
Terminal output from clouddemo.js for WordPress.com site
root@AndyDO-03:~/rssDave# node clouddemo.js
davehttp.startup: launching on port == 443, v0.4.37.
davehttp.startup: config == {
"port": 443,
"flPostEnabled": true,
"flLogToConsole": true,
"flTraceOnError": false,
"defaultFeedUrl": "https://rsscloud4.wordpress.com/feed/",
@andysylvester
andysylvester / clouddemo_terminal_output_WPORG.txt
Created December 18, 2022 05:03
Terminal output from clouddemo.js with WordPress.org site using version 0.5.0 of WordPress RSS Cloud plugin
root@AndyDO-03:~/rssDave# node clouddemo.js
davehttp.startup: launching on port == 443, v0.4.37.
davehttp.startup: config == {
"port": 443,
"flPostEnabled": true,
"flLogToConsole": true,
"flTraceOnError": false,
"defaultFeedUrl": "https://rsscloud.andysylvester.com/feed/",
"thisServer": {
@andysylvester
andysylvester / stats_WPORG.json
Created December 18, 2022 05:05
stats.json file from clouddemo.js for Wordpress.org site using version 0.5.0 of RSS Cloud plugin
{
"events": [
{
"method": "GET",
"path": "/feedupdated",
"params": {
"url": "https://rsscloud.andysylvester.com/feed/",
"challenge": "f03b10e367c0384fe2e5ad4e075ab1"
},
"myResponse": "f03b10e367c0384fe2e5ad4e075ab1",
@andysylvester
andysylvester / stats_WPCOM.json
Last active December 18, 2022 05:06
stats.json file from clouddemo.js for Wordpress.com site
{
"events": [
{
"method": "GET",
"path": "/feedupdated",
"params": {
"url": "https://rsscloud4.wordpress.com/feed/",
"challenge": "b4db940fa88a20fc18db180143d8dd"
},
"myResponse": "b4db940fa88a20fc18db180143d8dd",