Compile the tool https://github.com/ipfs/ipfs-ds-convert via your user account
echo "$GOPATH" -> if empty go to ~/go/bin/, else "$GOPATH/bin/"
copy the ipfs-ds-convert binary to /tmp/:
cp -a ipfs-ds-convert /tmp/
convert your datastore:
| youtube-dl -o "%(playlist_index)s-%(title)s.%(ext)s" -f 22 "url_here" |
| (function() { | |
| "use strict"; | |
| function padd(x) { | |
| var x = String(x); | |
| return x.length < 2 ? '0' + x : x; | |
| } | |
| var duration = +document.querySelector("video").duration; | |
| var playerData = document.querySelector("ytd-watch-flexy").__data.playerData; |
| from autograd import grad, numpy as np | |
| from autograd.scipy.stats import norm | |
| from autograd.misc.optimizers import adam | |
| def simple_vi(n=2000): | |
| x = np.random.normal(loc=+1.5, scale=+0.3, size=10) | |
| log_p = lambda z: np.mean(norm.logpdf(x[:, None], z[0], np.exp(z[1])), axis=0) | |
| log_q = lambda z, l: norm.logpdf(z, l[:, None], 0.3) | |
| samp_q = lambda l: np.random.normal(l[:, None], 0.3, (2, n)) | |
| # https://arxiv.org/pdf/1401.0118.pdf, eq 3 |
Compile the tool https://github.com/ipfs/ipfs-ds-convert via your user account
echo "$GOPATH" -> if empty go to ~/go/bin/, else "$GOPATH/bin/"
copy the ipfs-ds-convert binary to /tmp/:
cp -a ipfs-ds-convert /tmp/
convert your datastore:
| /** | |
| * Magic Copy | |
| * This little script will append some text to the clipboard when a user copies text from the website | |
| * | |
| * WARNING: This feature is an anti-pattern and a bad usability practice in 99% of cases, use only in | |
| * those situations where it can really benefit the user to have a link to the full resource | |
| */ | |
| document.addEventListener('copy', (event) => { | |
| if (document.getSelection().toString().length < 10){ return; } | |
| const pagelink = `\n${document.location.href}`; |
| javascript: | |
| /*! ReadingMode © Xavi Esteve */ | |
| (function(d) { | |
| var el = d.getElementsByTagName("*"); | |
| var htmlDiv = d.createElement("div"); | |
| var readingModeMenu = d.createElement("div"); | |
| var title = d.title; | |
| var rmSettings = {}; | |
| /* Remove all event listeners */ |
| javascript:(function() { | |
| function screenshot(video) { | |
| var canvas = document.createElement('canvas'); | |
| canvas.width = video.videoWidth; | |
| canvas.height = video.videoHeight; | |
| context = canvas.getContext('2d'); | |
| var now = new Date(); | |
| context.drawImage(video, 0, 0, video.videoWidth, video.videoHeight); | |
| var url = canvas.toDataURL('image/png'); | |
| var link = document.createElement('a'); |
TL;DR
| var buffer = []; | |
| document.querySelectorAll('img').forEach(function(item) { | |
| if (item.src){ | |
| buffer.push( item.src ); | |
| } | |
| }); | |
| console.log('Total items:', buffer.length ); | |
| localStorage.buffer = JSON.stringify(buffer); | |
| // Now grab localStorage.buffer and paste it in PHP |