Skip to content

Instantly share code, notes, and snippets.

View vladak's full-sized avatar

Vladimir Kotal vladak

  • Europe
View GitHub Profile
@vladak
vladak / freebsd-vbox.md
Last active January 3, 2022 17:26
FreeBSD on VirtualBox
# pre-flight check
VBoxManage list ostypes | grep FreeBSD

# new VM
VM=FreeBSD
zfs create tank/vm/vkotal/$VM
VBoxManage createvm --basefolder /tank/vm/vkotal --name $VM --ostype FreeBSD_64 --register

# CPU
@vladak
vladak / freebsd-ktls.md
Last active April 5, 2022 14:13
FreeBSD in kernel TLS implementation notes

This is a collection of random notes about FreeBSD's in kernel TLS implementation based on reading the source code (so far). The focus is TLS for NFS/RPC.

FreeBSD in kernel TLS

  • supports TLSv1.0 to TLSv1.3
  • development time frames:
    • first FreeBSD commit (b2e60773) 27-Aug-2019, this might be just the "upstreaming" work
    • development on going (March 2021)
  • TCP only
  • no rekeying so far (as of April 2021)
@vladak
vladak / lucene-luke.md
Last active April 28, 2025 22:26
How to run Luke

Lucene has Luke built in however I cannot start it directly via lucene/luke/bin/luke.sh on Ubuntu 20.04 with OpenJDK 11.

git clone https://github.com/apache/lucene.git Lucene
cd Lucene
./gradlew assemble
java -cp './lucene/luke/build/lucene-luke-9.0.0-SNAPSHOT/*' \
    -Xmx1024m -Xms512m -XX:MaxMetaspaceSize=256m org.apache.lucene.luke.app.desktop.LukeMain
@vladak
vladak / solaris-layered-debugging.md
Last active July 3, 2023 13:22
debugging a problem in Solaris from the top layer (userland) to the bottom layer (hardware)

Debugging a problem in Solaris through several OS layers

Background

This is a story about an operating system problem that occupied me at work in 2015 for couple of days. The goal is to give you an overview of debugging techniques and associated tools. I'd like to use this opportunity (writing this article for my students of the Unix programming class at the Mathematical-physical faculty of the Charles university in Prague in 2021) to provide some historical points, some background and some details about operating system work (I feel old writing this). As a bit of a spoiler, the cause of the problem turned out to be completely different than what it seemed initially and involved traversing multiple layers in the operating system. I love this kind of problems because it is fun and great learning experience. I vaguely remember a job advertisement in Netfix bunch of years back that demanded that the applicants posses intimate knowledge of the operating system internals down to (

@vladak
vladak / varmilo keyboard.md
Last active June 22, 2025 03:25
Varmilo keyboard details
@vladak
vladak / freenas.md
Last active June 13, 2025 21:06
TrueNAS notes
@vladak
vladak / pytest-woes.md
Last active January 31, 2020 14:48
pytest woes

pytest woes

These problems were encountered during OpenGrok development however most likely they are generic.

setup.py

Initial setup:

python3 -m venv env
. env/bin/activate
@vladak
vladak / ips-mediator-hell.md
Last active August 24, 2021 08:01
IPS mediators - mixing version and implementation

Question: is mixing mediator-version with mediator-implementation in Solaris IPS a good idea ?

TLDR answer: no, generally it's not

Case 1

Suppose we have 2 packages that mediate usr/include/moomin (also they deliver symlinks in lib which is not really mediated since the link names differ), the foo package mediates using the mediator-version, the bar package mediates using mediator-implementation:

uls-0:/builds/vkotal/ips$ grep -v ^# foo.p5m 
set name=pkg.fmri [email protected],5.11-0
@vladak
vladak / projektor.md
Last active October 2, 2019 12:38
projektor MS
xrandr --addmode DP-2 1440x900