Skip to content

Instantly share code, notes, and snippets.

View wolfspider's full-sized avatar
🔧
Tooling on FP

Jesse Bennett wolfspider

🔧
Tooling on FP
  • NCFL
View GitHub Profile
@wolfspider
wolfspider / devfs.rules
Created September 17, 2019 00:46
/etc/devfs.rules
[devfsrules_common=7]
add path 'card[0-9]\*' mode 666
add path 'ums[0-9]\*' mode 666
@wolfspider
wolfspider / interopcheck.cs
Created September 8, 2019 16:04
Test to see if interop is working on dotnet core
using System;
using System.Security;
using System.Runtime.InteropServices;
namespace consoletest
{
class Program
{
[DllImport("libc")]
@wolfspider
wolfspider / foundationdb.conf
Created August 19, 2019 04:22
foundationdb config
## foundationdb.conf
##
## Configuration file for FoundationDB server processes
## Full documentation is available at
## https://www.foundationdb.org/documentation/configuration.html#foundationdb-conf
[general]
restart_delay = 60
## by default, restart_backoff = restart_delay_reset_interval = restart_delay
# initial_restart_delay = 0
@wolfspider
wolfspider / FreeBSD-Arcan.md
Last active September 27, 2022 10:01
Steps to get up and running with Arcan on FreeBSD

Installing Arcan on FreeBSD

Arcan from the beginning has had good FreeBSD support. This is a guide for installing it on your FreeBSD system and additional tips for getting it configured for graphical acceleration without utilizing Xorg/X11. For the most part the build instructions just work as described on the project page and Wiki for Arcan.

Disclaimer: This is a work in progress and will continue to receive updates as things are added

The first thing which needs to be considered is setting up a FreeBSD system with compatible hardware. The main site makes reference to i965 Intel and Nvidia graphics drivers being the main ones tested. AMD GPUs theoretically should work but there are no promises in that regard, your mileage may vary. The machine I have used in this case has the following specs relevant to running Arcan is a [Dell Optiplex 990](http://i.dell.com/sites/doccontent/shared-content/data-sheets/en/Documents/optiplex-9

@wolfspider
wolfspider / libpngarm64.sh
Created September 3, 2018 03:34
libpngarm64 command
./configure --enable-arm-neon=api --host=arm CFLAGS="-Os -fembed-bitcode -mios-version-min=11.0" LDFLAGS="-flto" CC="xcrun -sdk iphoneos clang -arch arm64" --enable-shared=no --enable-static=yes
@wolfspider
wolfspider / ARM64out.txt
Created June 19, 2018 02:14
ARM64 build output
(xenial)ackiosk@localhost:~/Documents/foundationdb$ make
Checking hgVersion.h
Compiling flow/version.cpp
/usr/bin/g++
Archiving lib/libflow.a
/usr/bin/g++
Linking bin/fdbserver
Stripping bin/fdbserver
!!! WARNING: DEPENDENCY ON NEWER LIBC DETECTED !!!
!!! WARNING: UNKNOWN SHARED OBJECT DEPENDENCY DETECTED: ld-linux-aarch64.so.1 !!!
@wolfspider
wolfspider / armdiff.txt
Created June 18, 2018 03:39
Changes to make AARCH64 build FoundationDB
diff --git a/Makefile b/Makefile
index ab1ee72..79d44e9 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ ARCH := $(shell uname -m)
TOPDIR := $(shell pwd)
-ifeq ($(ARCH),x86_64)
+ifeq ($(ARCH),aarch64)
@wolfspider
wolfspider / procstat.cc
Last active July 29, 2018 00:44
workbench code for FreeBSD FoundationDB Proc Conversion
#include <iostream>
#include <cinttypes>
#include <sys/types.h>
#include <sys/user.h>
#include <sys/param.h>
#include <sys/resource.h>
#include <sys/sysctl.h>
#include <sys/fcntl.h>
@wolfspider
wolfspider / procmap.md
Last active July 30, 2018 05:06
Proc Mapping to Native Function Notes for FoundationDB FreeBSD

Notes for mapping against proc in linprocfs to native functions in FreeBSD

Important Sections Duplicated From Linux

file: /foundationdb/flow/platform.cpp

line 262: GetResidentMemoryUsage

Gets the current rssize for the current process

@wolfspider
wolfspider / NFSXHyve.txt
Last active February 15, 2020 07:07
Xhyve Mac OS NFS Instructions
***Super Simple XHyve NFS instructions***
1. Create a user account with the same login as MacOS account and add to group "wheel"
2. edit /etc/exports and add line to allow all clients to connect to host with specific user (for example):
/usr/home/jessebennett -alldirs -maproot=jessebennett
3. change the file /etc/rc.conf to enable nfs daemon on startup add these to the file: