Skip to content

Instantly share code, notes, and snippets.

View travisperson's full-sized avatar
🏠
Working from home

Travis Person travisperson

🏠
Working from home
View GitHub Profile
+ for param in $params
++ jq -r '."v10-vdf-post-912e5a392c09cbfa0bf369ac77f939a45e0f2aec968cf3846cbe356a19b76685".cid' /home/travis/src/github.com/filecoin-project/go-filecoin/proofs/rust-fil-proofs/parameters.json
+ ipfs pin add --progress QmP1PkagfiC9cUEh3r7NEWaJfnBGEnqfABxXxh3PSoiMtX
^Ctched/Processed 0 nodess
Error: canceled
Error: context canceled
+ for param in $params
++ jq -r '."v10-vdf-post-912e5a392c09cbfa0bf369ac77f939a45e0f2aec968cf3846cbe356a19b76685.vk".cid' /home/travis/src/github.com/filecoin-project/go-filecoin/proofs/rust-fil-proofs/parameters.json
+ ipfs pin add --progress QmaNXg87KFw4pKxa9mXThprpDns7aJZCN5k9WCtneMBkoY
^Ctched/Processed 0 nodes
#!/usr/bin/env bash
set -x
gopath=${GOPATH:-$HOME/go}
outdir=${FILECOIN_PARAMETER_CACHE:-/tmp/filecoin-proof-parameters}
ln -sf $HOME/filecoin-proof-parameters /tmp/filecoin-proof-parameters
mkdir -p $outdir
@travisperson
travisperson / interface.spec.js
Created April 25, 2018 18:36
Running `interface-ipfs-core` agasint an `go-ipfs` implementation
const test = require('interface-ipfs-core')
const parallel = require('async/parallel')
const DaemonFactory = require('ipfsd-ctl')
const nodes = []
const common = {
setup: function (callback) {
const df = DaemonFactory.create()
#!/usr/bin/env bash
files=$(find $HOME -maxdepth 1 -type f -not -name ".*")
function sort_into_directories {
local path="$1"
local filename=$(basename $path)
local extension="${filename##*.}"
@travisperson
travisperson / ipfs-storage.diff
Last active April 12, 2018 16:15
Update the Redux TodoMVC example to add `redux-persist` and use an IPFS storage layer provided by IPFS Companion
diff --git a/examples/todomvc/package.json b/examples/todomvc/package.json
index 26dcd9c..1d37ffe 100644
--- a/examples/todomvc/package.json
+++ b/examples/todomvc/package.json
@@ -2,6 +2,7 @@
"name": "todomvc",
"version": "0.0.1",
"private": true,
+ "homepage": "./",
"devDependencies": {

Keybase proof

I hereby claim:

  • I am travisperson on github.
  • I am travisperson (https://keybase.io/travisperson) on keybase.
  • I have a public key ASA0pdzu8hhqjXPdx70I9t0t0HFA3MriXlVXl4JUUGYXXwo

To claim this, I am signing this object:

@travisperson
travisperson / arch-mirror.service
Created March 29, 2018 16:35 — forked from gdamjan/arch-mirror.service
script to rsync from an arch mirror
[Unit]
Description=Mirror arch linux
[Service]
Type=oneshot
ExecStart=/home/arch/sync_arch_mirror.sh
User=arch
IPAccounting=yes
NoNewPrivileges=yes
PrivateTmp=yes
# .local/share/applications/slack.desktop
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Slack
Exec=/opt/google/chrome/google-chrome --profile-directory="Profile 1" --app=https://outreach-hq.slack.com
Icon=
@travisperson
travisperson / audio-saga.js
Created December 12, 2017 17:00
Main File: audio-saga.js
import { delay } from 'redux-saga'
import { cancel, fork, select, call, put, takeEvery } from 'redux-saga/effects'
import { Audio } from 'browser'
import Channel from 'promise-channel'
// List of all AudioElement node events we will be listening on and providing redux
// dispatches for. All of these events will go out under the `AUDIO_SAGA:EVENT` type
// but can be translated into individual events for better reducer support.
const eventList = [
Plugin 'vim-pandoc/vim-pandoc' " Pandoc Markdown support
Plugin 'vim-pandoc/vim-pandoc-syntax' " Pandoc Markdown support
highlight pandocAtxHeader ctermfg=16 cterm=bold
highlight pandocAtxStart ctermfg=17
highlight pandocSetexHeader ctermfg=03 cterm=bold
highlight pandocStrong ctermfg=21
highlight pandocStrongEmphasis ctermfg=21 gui=bold,italic cterm=bold,italic
highlight pandocStrongInEmphasis ctermfg=21 gui=bold,italic cterm=bold,italic
highlight pandocEmphasisInStrong ctermfg=05 gui=bold,italic cterm=bold,italic