Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View flyingzumwalt's full-sized avatar

Matt Zumwalt flyingzumwalt

View GitHub Profile

InterPlanetary Version Control (call it IPVC?)

IPLD-based Version History

This is just a sketch of a possibility. If we just want a git-style toolchain with git version graph, it might be better to just put an ipfs storage adapter behind go-git -- basically putting IPFS unixfs trees where git usually creates git tree objects. In that case you would have regular git commit objects, not IPLD objects. That would be less reusable beyond the git context but it would fit better with existing git-based tooling.

Keep in mind: it will be really useful to be able to use IPFS files api to manipulate these trees, allowing you to do things like modify part of a large dataset and commit the changes without ever pulling the whole dataset -- you can just pull the parts that you're changing.

Features

Keybase proof

I hereby claim:

  • I am flyingzumwalt on github.
  • I am flyingzumwalt (https://keybase.io/flyingzumwalt) on keybase.
  • I have a public key ASAkNrld6xfTRkf-sZNlTxq6_hbLyqj7e3yXeA6tWOTlvgo

To claim this, I am signing this object:

@flyingzumwalt
flyingzumwalt / archive-decentralize-slack.md
Last active September 25, 2016 17:53
09-23-2016 Conversation about IPFS on #decentralize channel of Internet Archive Slack

----- September 23rd, 2016 -----

btrask [6:29 PM]
@edsilv response to your question, "what is the business case for decentralization?" https://bentrask.com/?q=hash://sha256/33ba37008b55d3188c6b1bf8

edsilv [5:28 AM]
@btrask interesting stuff about devops applications. I think online libraries/archives too are a natural place for decentralised tech to take root. @flyingzumwalt mentioned that David Dias is presenting at the IIPC general assembly next spring. Would be great if he was armed with a solid set of business cases for the "decision makers" in the crowd.

"As a public service institution I want to provide a scalable, highly available, and free as in freedom and beer collection of knowledge" type thing.

Verifying that +flyingzumwalt is my blockchain ID. https://onename.com/flyingzumwalt
@flyingzumwalt
flyingzumwalt / custom jquery-fileupload processAction.js.coffee
Created December 6, 2013 05:36
custom jquery-fileupload processAction: Found a simpler way to do what I wanted, but this could be useful reference for times when you want to pre-process a file when user adds it to the queue.
#
# Custom processActions
#
# Prepend to the default processQueue:
$.blueimp.fileupload.prototype.options.processQueue.unshift(
{
action: 'prepS3Upload',
# Use the action as prefix for the "@" options:
prefix: true,
fileTypes: '@',
@flyingzumwalt
flyingzumwalt / option_A.rb
Last active December 20, 2015 04:29
case-based syntax for makes_derivatives_of
makes_derivatives_of :content, when: :mime_type, is_one_of: 'application/pdf',
derivatives: { :thumb => "100x100>" }
makes_derivatives_of :content, when: :mime_type, is_one_of: 'audio/wav',
derivatives: { :mp3 => {format: 'mp3'}, :ogg => {format: 'ogg'} }, processors: :audio
# -g 30 enforces keyframe generation every second (30fps)
# -b:v is the video bitrate
# -acodec is the audio codec
size_attributes = "-s 320x240"
@flyingzumwalt
flyingzumwalt / Gemfile
Last active December 18, 2015 23:29 — forked from ucsdlib/Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.13'
gem "active-fedora", :git => "git://github.com/projecthydra/active_fedora.git", :branch => "rdf_nested_attributes"
@flyingzumwalt
flyingzumwalt / damsSubjectExpectedOutput.rdf.xml
Last active December 17, 2015 12:59
Aspirational representation of how redesigned ActiveFedora::RDFNode would work.
<mads:Topic>
<mads:authoritativeLabel>Cosmology</mads:authoritativeLabel>
<mads:elementList rdf:parseType="Collection">
<mads:TopicElement>
<mads:elementValue>Cosmology</mads:elementValue>
</mads:TopicElement>
</mads:elementList>
</mads:Topic>
<mads:Temporal>
@flyingzumwalt
flyingzumwalt / Node Types.md
Last active December 17, 2015 09:29
Sample Test for behavior of Mads::List

##Simple Subject

BuiltWorkPlace
CulturalContext
Function
GenreForm
Geographic
Iconography
ScientificName
StylePeriod

Callback: ActiveFedora::Base.solrization_logic

Example of usage

class GenericFile
    after_solrize << :index_collection_pids

    def index_collection_pids(solr_doc={})
 collection_pids = self.collections.map {|c| c.pid}