One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| var fs = require('fs') | |
| , net = require('net') | |
| , http = require('http') | |
| , port = process.env.PORT; | |
| var app = function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/plain'}); | |
| res.end('Hello World\n'); | |
| }; |
A small roadmap for the core tech in dat. this mostly relates to the core dependencies such as hypercore/hyperdrive and not the cli or dat.land
Adding var cursor = drive.createByteCursor(file). A cursor api that quickly allows you to seek anywhere in the file content.
| var swarm = require('hyperdrive-archive-swarm') | |
| var hyperdrive = require('hyperdrive') | |
| var stats = require('hypercore-stats-ui') | |
| var http = require('http') | |
| var memdb = require('memdb') | |
| var serve = require('hyperdrive-http') | |
| var drive = hyperdrive(memdb()) | |
| // a remote dat |
| var linkCheck = require('link-check'); | |
| var jetpack = require('fs-jetpack'); | |
| var jsdom = require('jsdom'); | |
| function htmlLinkCheck (file) { | |
| jsdom.env(file.text, (err, window) => { | |
| if (err) | |
| throw err | |
| Array.from(window.document.getElementsByTagName('a')).forEach(el => { |
βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ
β β β β β β β β
β Website β β Desktop β β HTTP Server β β CLI β
β β β β β β β β
βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ
β² β² β² β²
βββββββββββββββββββββ΄βββββββββββ¬ββββββββ΄ββββββββββββββββββββ Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.
Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.
Check the gist's comments for any further tips and instructions, especially if you are running into problems!
Results after following the guide as of 11.01.2017 13:08:
for ubuntu, to set up a dynamic dns service that tells you what the external ip of some machine is
npm install dat lil-pids run-every add-to-systemd -gmkdir ipdat; cd ipdat; dat create; cd ..;services with this:cd ipdat && dat sync
cd ipdat && run-every 3600 curl ipinfo.io/ip > ip.txt
| var neat = require('neat-log') | |
| var output = require('neat-log/output') | |
| var progress = require('progress-string') | |
| var crypto = require('crypto') | |
| var hypercore = require('hypercore') | |
| var hyperdiscovery = require('hyperdiscovery') | |
| var feed = hypercore('data', process.argv[2], {valueEncoding: 'json'}) |
WARNING 1. If you do this, it MUST be either a transfer or a backup. Don't do this to run your Dats from two different computers. The Dat protocol doesn't support multiple computers running a Dat at the same time (yet) and you WILL corrupt your data.
WARNING 2. This will nuke the data in your new install.
WARNING 3. I havent actually tried this. Good luck!
If you're using Beaker 0.7.x, you'll need to copy part of your Beaker app data, and then your library folder (~/Sites).