Skip to content

Instantly share code, notes, and snippets.

View jreighley's full-sized avatar

Josh Reighley jreighley

  • Spokane Software
  • Spokane, WA
View GitHub Profile
@samberic
samberic / amazon-test.clj
Last active December 4, 2017 21:05
Amazon Product Advertising API using Clojure
(ns yswrl.test.swirls.amazon-test
(:use clojure.test)
(:require [yswrl.test.scaffolding :refer :all]
[yswrl.swirls.amazon :as amazon])
(:use clj-http.fake)
(:use yswrl.fake.faker))
(deftest amazon-test
(testing "url Params are in order"
@kyledrake
kyledrake / ipfs-refs-daemon.sh
Last active August 18, 2019 18:00
IPFS replication service with one line of unix shell code!
#!/bin/bash
# First, install ncat: http://nmap.org/ncat/
# Usually comes with the 'nmap' package on distributions.
ncat -k -v -l -p 5555 -c 'ipfs refs local | gzip'
# To retrieve on the client machine:
# nc 127.0.0.1 5555 | gunzip | ipfs pin add -r