Skip to content

Instantly share code, notes, and snippets.

View lukego's full-sized avatar

Luke Gorrie lukego

View GitHub Profile
@lukego
lukego / strace.txt
Created March 21, 2022 05:46
davinci resolve sound strace
[pid 8515] newfstatat(AT_FDCWD, "/nix/store/1pj4gnng9ibcbd3cy4002lnyjwv2sjv3-alsa-lib-1.2.5.1/share/alsa/alsa.conf", <unfinished ...>
[pid 8515] <... newfstatat resumed>{st_mode=S_IFREG|0444, st_size=10119, ...}, 0) = 0
[pid 8515] openat(AT_FDCWD, "/dev/snd/controlC1", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid 8515] <... openat resumed>) = 57
[pid 8515] ioctl(57, SNDRV_CTL_IOCTL_CARD_INFO <unfinished ...>
[pid 8515] <... ioctl resumed>, 0x7fde3fc78a90) = 0
[pid 8515] close(57 <unfinished ...>
[pid 8515] <... close resumed>) = 0
[pid 8515] openat(AT_FDCWD, "/dev/snd/controlC1", O_RDWR|O_CLOEXEC <unfinished ...>
[pid 8515] <... openat resumed>) = 57
@lukego
lukego / configuration.nix
Created March 20, 2022 16:32
NixOS configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, _pkgs, ... }:
let pkgs = import <nixpkgs> { overlays = [ (import "/home/luke/git/nixos-rocm") ]; }; in
{
;;; bayes1.lisp – toy probabilistic programming for Bayesian inference
(defpackage :bayes1
(:use :common-lisp :alexandria :serapeum)
(:nicknames :bayes))
(in-package :bayes1)
;;;; Hidden state tracking
;;;
;;; Every time a random variable is assigned a value, either by
@lukego
lukego / error.txt
Created November 1, 2021 09:08
Julia plotting error on gksqt
[luke@snowy:~]$ nix-shell --pure -p cacert julia_16-bin
[nix-shell:~]$ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.3 (2021-09-23)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
[luke@thinky:~/git]$ nix-shell -p lispPackages.quicklisp-to-nix-system-info
[nix-shell:~/git]$ quicklisp-to-nix-system-info --debug --verbose caveman
redefining QL-UTIL:WITHOUT-PROMPTING in DEFMACRO
redefining QL-UTIL:WITH-TEMPORARY-FILE in DEFMACRO
redefining QL-IMPL::ERROR-UNIMPLEMENTED in DEFUN
redefining QL-IMPL::NEUTER-PACKAGE in DEFMACRO
redefining QL-IMPL::FEATURE-EXPRESSION-PASSES-P in DEFUN
redefining QL-IMPL::DEFINE-IMPLEMENTATION-PACKAGE in DEFMACRO
redefining QL-IMPL:DEFINTERFACE in DEFMACRO
redefining QL-IMPL:DEFIMPLEMENTATION in DEFMACRO
@lukego
lukego / lispPackages-log.txt
Created October 19, 2021 14:31
Log of failing builds for lispPackages
[luke@thinky:~/git/nuddy/lisp]$ nix-build -k ~/git/nixpkgs -A lispPackages 2>&1 | tee lispPackages-log.txt
these derivations will be built:
/nix/store/8n7wfw32f4w095ldw9l13gyih19fb1q3-lisp-iolib-v0.8.4.drv
/nix/store/qq2jqypm5gh1gz47z8qpizbx9ri3wqjk-lisp-dbus-20200610-git.drv
/nix/store/sswgsqq6rcar80gqvyv58pyc7690r1cb-lisp-nyxt-2.0.0.drv
/nix/store/v6sqg061h42a2ca844lpwbsnx6n3mbi7-lisp-mgl-2021-10-07.drv
building '/nix/store/8n7wfw32f4w095ldw9l13gyih19fb1q3-lisp-iolib-v0.8.4.drv'...
building '/nix/store/v6sqg061h42a2ca844lpwbsnx6n3mbi7-lisp-mgl-2021-10-07.drv'...
mkdir: cannot create directory '/homeless-shelter': Permission denied
mkdir: cannot create directory '/homeless-shelter': Permission denied
@lukego
lukego / shell.nix
Created October 19, 2021 13:47
Nix environment for testing Lisp packages
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
# Executable dependencies
let exes = [
sbcl lispPackages.clwrapper
git z3 cvc4
pkg-config
]; in
@lukego
lukego / cffi-testlog.txt
Created October 8, 2021 11:32
CFFI test log
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 57144 100 57144 0 0 845k 0 --:--:-- --:--:-- --:--:-- 845k
This is SBCL 2.1.2.nixos, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
(ql)(progn (load "/home/luke/git/slime/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init") :from-emacs t) (funcall (read-from-string "swank:start-server") "/run/user/1000/slime.9089"))
This is SBCL 2.1.2.nixos, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* ; loading #P"/home/luke/git/slime/swank-loader.lisp"
@lukego
lukego / ggplot.org
Created September 29, 2021 06:58
ggplot not producing graphics
library(tidyr)
library(ggplot2)
ggplot(iris, aes(x = Sepal.Width, y = Sepal.Length, color = Species)) + geom_point()