Skip to content

Instantly share code, notes, and snippets.

View jstolarek's full-sized avatar

Jan Stolarek jstolarek

View GitHub Profile
@jstolarek
jstolarek / kmix_pa.md
Last active July 30, 2020 20:09
Some thoughts on KMix and PulseAudio setup on my machine

Hardware:

  • GeForce RTX 2070 Super (3 Display ports, 1 HDMI port, and 1 USB-C port))
  • ROG Crosshair VIII Impact with SupremeFX S1220 audio codec - PulseAudio identifies this as Starship/Matisse HD Audio Controller. This is an on-board card with back and front panels, which I use, and an S/PDIF port, which I don't use

Software:

  • Debian Buster with backported kernel 5.6.0
  • nvidia drivers 440.64
  • PulseAudio 12.2
@jstolarek
jstolarek / memory_layout.md
Created February 4, 2018 18:26 — forked from CMCDragonkai/memory_layout.md
Linux: Understanding the Memory Layout of Linux Executables

Understanding the Memory Layout of Linux Executables

Required tools for playing around with memory:

  • hexdump
  • objdump
  • readelf
  • xxd
  • gcore
@jstolarek
jstolarek / install-ghc-head-pkgs.sh
Created May 9, 2013 08:10
Script for building and installing libraries with GHC HEAD
#!/bin/bash
# Description: This script builds and installs Haskell libraries specified on
# the list. It was written to install libraries with GHC HEAD.
# Source code for the libraries must be placed in subdirectories.
#
# Usage: To build and install libraries run the script without parameters:
# ./install-ghc-head-pkgs.sh
# To clean the build artefacts pass the "clean" parameter:
# ./install-ghc-head-pkgs.sh clean
@jstolarek
jstolarek / copy.c
Created November 23, 2012 13:45
Strange results when benchmarking FFI bindings using criterion library in Haskell
#include <stdlib.h>
#include "copy.h"
double* c_copy( double* inArr, int arrLen ) {
double* outArr = malloc( arrLen * sizeof( double ) );
for ( int i = 0; i < arrLen; i++ ) {
outArr[ i ] = inArr[ i ];
}