Skip to content

Instantly share code, notes, and snippets.

View vladak's full-sized avatar

Vladimir Kotal vladak

  • Europe
View GitHub Profile
@vladak
vladak / ubuntu-notes.md
Last active December 6, 2021 10:07
Ubuntu notes

Service management

  • temporary: sudo service stop mydesktop
  • permanent: sudo systemctl disable mydesktop

DNS servers debugging

  • get local DNS server address: cat /etc/resolv.conf
  • get list of DNS servers: netplan get all
  • show who is listening on port 53 netstat -peanut (without lsof)

What is OpenGrok

  • blindingly fast source code search and cross-reference engine
    • can be used for searching and source code browsing
    • “grok” = profoundly understand
      • in our case, source code
  • the IP/project is still owned by Oracle
    • developed as open source (CDDL license)
  • Searching computer programs that use different semantics
  • written in Java/JSP
  • originally developed as a tool perform security vulnerability research quickly
@vladak
vladak / projektor.md
Last active October 2, 2019 12:38
projektor MS
xrandr --addmode DP-2 1440x900
@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 / 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 / varmilo keyboard.md
Last active April 5, 2025 17:40
Varmilo keyboard details
@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 (