Skip to content

Instantly share code, notes, and snippets.

View refs's full-sized avatar
🤖
Another pointless day where I accomplish nothing 🍸

Alex Unger refs

🤖
Another pointless day where I accomplish nothing 🍸
View GitHub Profile
package main
import (
"fmt"
"io"
"log"
"os"
"strconv"
"sync"
@refs
refs / configs.md
Last active October 8, 2019 08:42

backend.toml

# "look ma, no hands"
# commented on each individual directive are the available parameters
# requires:
#   - /data/users.json (https://gist.github.com/refs/6efa7ef2a6d8259594c88125d0fdccf0)
# follow same naming convention as jfd... (b)ackend, (-)noauth only jwt tokens, (o)wncloud storage driver

[core]
#!/bin/sh
# This hardcoded stuff is too volatile.
# - load all configs on a folder
# - read the folder *.toml files
# - launch revad with -c on the current toml
# - set -p (pid) to the name of the file (minus extension) with the .pid extension
# run storage-home by default within the main pane of the new session
tmux new-session -s "reva" -d -c /Users/aunger/code/reva revad -c ./examples/separate/storage-home.toml -p storage-home.pid
#!/bin/sh
# ==============================
# usage: reva-panes path/to/toml
# - it starts the panes on detached mode, so
# - when attached to the session [C-c] will kill the daemon
# ==============================
# at least arg1 must exist
if [ $# -eq 0 ]; then
echo "wrong number of arguments" && exit 1
@refs
refs / gist:77aace5f89c0ad7e17aff0858c0b3aa7
Created December 23, 2019 13:55 — forked from fiorix/gist:9664255
Go multicast example
package main
import (
"encoding/hex"
"log"
"net"
"time"
)
const (
@refs
refs / tmux-cheatsheet.markdown
Created February 12, 2020 15:45 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
diff --git a/go.mod b/go.mod
index c546224..e9188f6 100644
--- a/go.mod
+++ b/go.mod
@@ -3,23 +3,14 @@ module github.com/owncloud/ocis-reva
go 1.13
require (
- github.com/cespare/xxhash/v2 v2.1.1 // indirect
- github.com/cs3org/reva v0.1.1-0.20200320145721-40c4334849c3
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"os/signal"
"strconv"
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #