Skip to content

Instantly share code, notes, and snippets.

View WardCunningham's full-sized avatar

Ward Cunningham WardCunningham

  • Cunningham & Cunningham, Inc.
  • Portland, Oregon
View GitHub Profile
@WardCunningham
WardCunningham / trending.rb
Created December 23, 2014 16:59
Script for Conversation Clubs
@WardCunningham
WardCunningham / roster.rb
Last active August 29, 2015 14:13
Recent Changes by Roster
# create page of conversatons
# cron: */5 * * * * (cd wiki/farm-8080/client; CSV='...' ruby roster.rb)
# deploy: scp roster.rb fed.wiki.org:wiki/farm-8080/client/
require 'rubygems'
require 'json'
require 'csv'
require 'pp'
@WardCunningham
WardCunningham / mkbackup.sh
Created March 22, 2015 23:17
rotating backup of federated wiki site
# save a daily backup with a retention of one week
# usage: sh mkbackup.sh forage.ward.fed.wiki.org
site=$1
day=`date +%a`
curl -s http://$site/system/export.json \
> backups/$site.$day.export.json
@WardCunningham
WardCunningham / .gitignore
Last active August 29, 2015 14:18
Federation Scraper
logs
sites
.DS_Store
*.numbers
@WardCunningham
WardCunningham / README.md
Last active March 30, 2017 14:54
Radial Organization Chart

Hover shows employee details, dims more recent hires, and tallies office distribution of similarly senior staff. Adapted from Radial Tidy Tree by M. Bostock. block