I hereby claim:
- I am win-t on github.
- I am wint (https://keybase.io/wint) on keybase.
- I have a public key whose fingerprint is EE94 ED16 177C D701 4BA8 01D7 69AC 2B30 4E2A 3BA8
To claim this, I am signing this object:
package main | |
import ( | |
"encoding/json" | |
"net/http" | |
"sort" | |
"strconv" | |
"sync" | |
"github.com/payfazz/go-middleware" |
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
) | |
func main() { | |
addr, _ := net.ResolveUnixAddr("unix", "@testabstractsocket") |
main: main.o vec.o | |
# how to link against rust std ? | |
# or can we compile rust std into staticlib ? | |
gcc -o main main.o vec.o | |
main.o: main.c | |
gcc -o main.o -c main.c | |
vec.o: vec.rs | |
rustc --emit obj --crate-type staticlib -o vec.o vec.rs |
/* | |
# dpependencies in Cargo.toml | |
[dependencies] | |
diesel = { version = "1.4.4", features = ["postgres"] } | |
hyper = "0.13.4" | |
r2d2 = "0.8.8" | |
r2d2-diesel = "1.0.0" | |
tokio = { version = "0.2.16", features = ["full"] } | |
*/ |
#pragma once | |
template<typename F> | |
class DeferFinalizer final { | |
F func; | |
bool moved; | |
public: | |
DeferFinalizer(F&& f) | |
: func(std::forward<F>(f)) |
<?php | |
namespace main; | |
define("BACKEND_SOCKET", '<where the unix socket>'); | |
define("BASE_URL", '<where this file located>'); | |
function exit_500($msg) { | |
$msg = rtrim($msg, "\n") . "\nDebug trace:\n"; | |
foreach(debug_backtrace() as $trace) { |
I hereby claim:
To claim this, I am signing this object:
package resource | |
import ( | |
"context" | |
"fmt" | |
"io" | |
"runtime" | |
"sync/atomic" | |
"time" | |
) |