I hereby claim:
- I am gonzih on github.
- I am gonzih (https://keybase.io/gonzih) on keybase.
- I have a public key ASDuSCBmos0345fAhkjGxVRvU8p40Ikp8RGA5wu5UxdTLQo
To claim this, I am signing this object:
(ns echo-server | |
(:import (java.net InetAddress DatagramPacket DatagramSocket))) | |
(defonce udp-server (atom nil)) | |
(defonce state (atom [])) | |
(def port 1111) | |
(defn localhost [] (.getLocalHost InetAddress)) |
const std = @import("std"); | |
const testing = std.testing; | |
const assert = std.debug.assert; | |
pub const Runner = struct { | |
const Self = @This(); | |
const VTable = struct { add: *const fn (*anyopaque, *usize) void }; | |
vtable: *const VTable, | |
ptr: *anyopaque, |
let | |
pkgs = import <nixpkgs> {}; | |
in pkgs.clangStdenv.mkDerivation rec { | |
name = "unreal-engine-build"; | |
# UE4_LINUX_USE_LIBCXX = "0"; | |
UE_USE_SYSTEM_MONO = "1"; | |
# SDL_VIDEO_X11_VISUALID = ""; | |
common = with pkgs; [ |
sudo qemu-system-x86_64 \ | |
-kernel arch/x86_64/boot/bzImage \ | |
-initrd ramdisk.img \ | |
-display none \ | |
-serial stdio \ | |
-append "root=/dev/vda console=ttyS0 nokaslr" \ | |
-drive format=raw,file=/home/gnzh/mydev/linsicles/buildroot/output/images/rootfs.ext4,if=virtio |
extern crate libspartan; | |
extern crate merlin; | |
use libspartan::{Instance, SNARKGens, SNARK}; | |
use merlin::Transcript; | |
use std::io::prelude::*; | |
// read file into Transcript | |
fn file_transcript(filename: &str) -> Transcript { | |
let mut transcript = Transcript::new(b"spartan"); | |
let mut file = std::fs::File::open(filename).unwrap(); |
type Links = Vec<String>; | |
type Proxies = Vec<String>; | |
#[derive(Clone, Debug)] | |
struct Opts { | |
links: Option<Links>, | |
proxies: Option<Proxies>, | |
} | |
impl Opts { |
{ config, pkgs, ... }: | |
let | |
secrets = import /opt/nix/secrets.nix; | |
externalInterface = "enp2s0"; | |
internalInterface = "wg0"; | |
externalPort = 51820; | |
externalNetMask = "10.200.200.1/24"; | |
in | |
{ |
pkgname=cudnn9 | |
pkgver=7 | |
pkgrel=4 | |
pkgdesc="NVIDIA CUDA Deep Neural Network library (version 9)" | |
arch=('x86_64') | |
url="https://developer.nvidia.com/cuDNN" | |
license=('proprietary') | |
depends=('cuda-sdk') | |
source=("http://files.fast.ai/files/cudnn-9.1-linux-x64-v7.tgz") | |
sha512sums=('7eadb64a3d5e49aec2761e6f7dc0295c1d356910b114eed450c47081fc81b6e3b7748f3a4153f6a9d957691e3689cd52823bfa12816b1950dfc8794d6f332749') |
base-files busybox dnsmasq dropbear firewall fstools hostapd-common -ip6tables iptables iw iwinfo jshn jsonfilter kernel kmod-ath kmod-ath9k kmod-ath9k-common kmod-cfg80211 kmod-crypto-aes kmod-crypto-arc4 kmod-crypto-core kmod-gpio-button-hotplug -kmod-ip6tables kmod-ipt-conntrack kmod-ipt-core kmod-ipt-nat -kmod-ipv6 kmod-ledtrig-usbdev kmod-lib-crc-ccitt kmod-mac80211 kmod-nf-conntrack -kmod-nf-conntrack6 kmod-nf-ipt -kmod-nf-ipt6 kmod-nf-nat kmod-nf-nathelper kmod-nls-base kmod-ppp kmod-pppoe kmod-pppox kmod-slhc kmod-usb-core kmod-usb-ohci kmod-usb2 libblobmsg-json libc libgcc libip4tc -libip6tc libiwinfo libiwinfo-lua libjson-c libjson-script liblua libnl-tiny libubox libubus libubus-lua libuci libuci-lua libxtables lua luci luci-app-firewall luci-base luci-lib-ip luci-lib-nixio luci-mod-admin-full -luci-proto-ipv6 luci-proto-ppp luci-theme-bootstrap mtd netifd -odhcp6c odhcpd opkg ppp ppp-mod-pppoe procd rpcd swconfig uboot-envtools ubox ubus ubusd uci uhttpd uhttpd-mod-ubus usign wpad-mini qos-scripts |
I hereby claim:
To claim this, I am signing this object: