GitXplorerGitXplorer
s

stypi-sync

public
4 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
2a67fb03e21775bc263cbd6375d4b2dddbca47db

One-way note

ssbirch committed 13 years ago
Unverified
3e2aae01353d968dc35425eb3b6d9e947399a9fb

Alias example

ssbirch committed 13 years ago
Unverified
dadfb7c666e169da2cd28d80f203a8138c9e34ab

Changed wording for clarity

ssbirch committed 13 years ago
Unverified
fa95181e776cba99d1c465216dc872dae3ad27af

more text

ssbirch committed 13 years ago
Unverified
887ed267991477e36e0f836e441a30f9fc94ea63

motivation

ssbirch committed 13 years ago
Unverified
8ec4f992b29abe93f36202bd802006d8624ce1db

wording

ssbirch committed 13 years ago

README

The README file for this repository.

stypi-sync: Synchronize Stypi documents to local storage.

stypi-sync makes it easy to synchronize Stypi documents to local storage so you can edit code collaboratively and run it locally. Right now it's very much alpha software -- certainly don't use it for anything you don't have backed up or can't afford to lose changes to. If you want to improve it, please contribute! And if you fork, please maintain the user-agent format so the folks at Stypi can block it if anything goes amok.

Quick start:

python /path/to/stypi-sync/stypi-sync.py

(or use an alias! In your ~/.bashrc: alias stypi-sync="python /path/stypi-sync.py")

This reads stypi-sync.json in your working directory to configure itself. That has a format like this:

{"files":{"sandbox.html": "http://www.stypi.com/someid","code.js": "http://www.stypi.com/anotherone"}}

Press enter to synchronize, kill with CTRL-C.

Note that stypi-sync is one-way only! It synchronizes from Stypi to your local storage. (It's assumed that you'll edit using Stypi right now.)

That's about it!

To Stypi:

Shut up and take my money!

If this is killing your servers, I am sorry! I tried to make it friendly. You can do any of the following things to block it:

  • Block its user agent (starts with "stypi-sync")

  • Break any of the fragile bits (they're even labelled!)