Skip to content

Instantly share code, notes, and snippets.

View xk2600's full-sized avatar

Chris Stephan xk2600

View GitHub Profile
@antirez
antirez / lmdb.tcl
Created April 28, 2017 15:40
LMDB -- First version of Redis written in Tcl
# LVDB - LLOOGG Memory DB
# Copyriht (C) 2009 Salvatore Sanfilippo <antirez@gmail.com>
# All Rights Reserved
# TODO
# - cron with cleanup of timedout clients, automatic dump
# - the dump should use array startsearch to write it line by line
# and may just use gets to read element by element and load the whole state.
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!
@CMCDragonkai
CMCDragonkai / using_zfs_version_control_large_datasets.md
Last active August 5, 2024 16:57
Using ZFS to Version Control Large Datasets #zfs

Using ZFS to Version Control Large Datasets

Imagine you are a machine learning engineer. You're dealing with large datasets.

You are about to perform a large scale change to the data. Or even a small change.

You wish you had your data under version control. You wish you had a git for data.

But the data is too big for git. So you usually just backup via a copy.

@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

@AnotherKamila
AnotherKamila / screen.sh
Created December 1, 2019 12:31
some silly screen setup script
#!/bin/sh
MYSCREEN='eDP-1' # the laptop's built-in display
screens=` xrandr | grep ' connected' | grep -v $MYSCREEN | cut -d\ -f1`
notscreens=`xrandr | grep 'disconnected' | grep -v $MYSCREEN | cut -d\ -f1`
for s in $notscreens; do
xrandr --output $s --off
done
# Put me into /usr/local/etc/X11/xorg.conf.d/
# Replace XXX by the appropriate device:
# guess from `sudo libinput list-devices` (TODO I should write more precise instructions)
Section "ServerLayout"
Identifier ":-("
InputDevice "Trackpoint0" "CorePointer"
InputDevice "Touchpad0" "CorePointer"
EndSection