This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
address: 0.0.0.0 | |
port: 8080 | |
auth: false | |
tls: false | |
cert: cert.pem | |
key: key.pem | |
prefix: /dav | |
debug: false | |
# Default user settings (will be merged) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package client | |
import ( | |
"context" | |
"crypto/md5" | |
"crypto/tls" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"net" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remap prefix from 'C-b' to 'C-x' | |
#unbind C-b | |
#set-option -g prefix C-x | |
#bind-key C-x send-prefix | |
# split panes using | and - | |
bind | split-window -h | |
bind _ split-window -v | |
unbind '"' | |
unbind % |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ Copyright (C) urey-hiker (ureydev # aliyun.com) | |
usage: | |
local minheap = require("minheap") | |
local heap = minheap.new() | |
-- push an obj and ordered by ID in the heap | |
heap:push(ID, obj) | |
-- pop out the obj with the min ID | |
ID, obj = heap:pop() | |
-- peek the min obj and ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "sync" | |
type barrier struct { | |
wc int | |
c chan int | |
wg sync.WaitGroup | |
sync.Mutex | |
} |