Skip to content

Instantly share code, notes, and snippets.

frist@silver:~/s/g/i/go-ipfs-cmds|master⚡*?
➤ gx-go rw
...
frist@silver:~/s/g/i/go-ipfs|master✓
➤ gx-go link QmamUWYjFeYYzFDFPTvnmGkozJigsoDWUA4zoifTRFTnwK
writing package to: /home/frist/src/gx/ipfs/QmamUWYjFeYYzFDFPTvnmGkozJigsoDWUA4zoifTRFTnwK
linked QmamUWYjFeYYzFDFPTvnmGkozJigsoDWUA4zoifTRFTnwK /home/frist/src/github.com/ipfs/go-ipfs-cmds
...
frist@silver:~/s/g/i/go-ipfs|master✓
➤ make install
frist@blue:~/s/g/i/go-ipfs-cmds(master|✔)
➤ go build Fri Dec 1 00:07:27 UTC 2017
# github.com/ipfs/go-ipfs-cmds
./legacy.go:28: cannot use requestWrapper literal (type *requestWrapper) as type commands.Request in return argument:
*requestWrapper does not implement commands.Request (wrong type for Files method)
have Files() "github.com/ipfs/go-ipfs-cmdkit/files".File
want Files() "gx/ipfs/QmUyfy4QSr3NXym4etEiRyxBLqqAeKHJuRdi8AACxg63fZ/go-ipfs-cmdkit/files".File
./legacy.go:111: cannot use oldRequestWrapper literal (type *oldRequestWrapper) as type Request in return argument:
*oldRequestWrapper does not implement Request (wrong type for Files method)
have Files() "gx/ipfs/QmUyfy4QSr3NXym4etEiRyxBLqqAeKHJuRdi8AACxg63fZ/go-ipfs-cmdkit/files".File
@frrist
frrist / HelpMe.diff
Created November 21, 2017 22:24
This should print something..
diff --git a/commands/reqlog.go b/commands/reqlog.go
index f9191d5dd..dc8c32d2f 100644
--- a/commands/reqlog.go
+++ b/commands/reqlog.go
@@ -12,6 +12,7 @@ type ReqLogEntry struct {
EndTime time.Time
Active bool
Command string
+ RequestId string
Options map[string]interface{}
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
function KILLEVERYONE
set skull (cat ~/ephemerial/skull.art)
vlc --play-and-exit --intf dummy ~/music/Skrillex/Scary\ Monsters\ And\ Nice\ Sprites/03\ Kill\ Everybody.mp3 --start-time 75.5 --stop-time 81.13 2> /dev/null &
for i in (seq 50)
cat ~/ephemerial/skull.art
for i in (seq 10000);
end
clear
for i in (seq 10000);
end
package main
import "net"
import "fmt"
import "bufio"
import "os"
func main() {
// connect to this socket
@frrist
frrist / tester thing thing
Created November 20, 2015 06:39
tester thing for testing things
#!/bin/bash
function run_thing() {
num=$1
procs=$2
./run $num $procs
}
function run_trials() {
itt=6
node --version
v0.12.2
Node code:
// Load the http module to create an http server.
var http = require('http');
// Configure our HTTP server to respond with Hello World to all requests.
var server = http.createServer(myConnect);