Skip to content

Instantly share code, notes, and snippets.

View artemist's full-sized avatar

Artemis Tosini artemist

View GitHub Profile
#include <sys/cdefs.h>
#include <sys/ioctl.h>
#include <sys/param.h>
#include <sys/conf.h>
#include <fs/devfs/devfs.h>
#include <fcntl.h>
#include <errno.h>
#include <err.h>
#include <iostream>
@artemist
artemist / rustc.log
Created June 3, 2024 22:45
Rust cross build
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/0q5b8pmfjybwn6ws18agqhgjyqpjg6vz-rustc-1.78.0-src.tar.gz
source root is rustc-1.78.0-src
setting SOURCE_DATE_EPOCH to timestamp 1714405523 of file rustc-1.78.0-src/vendor/zip/tests/zip_crypto.rs
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
patching script interpreter paths in src/etc
src/etc/installer/pkg/postinstall: interpreter directive changed from "#!/bin/sh" to "/nix/store/f9ql5mvb7bzwkk8lfnw9wn80a09scif7-bash-5.2p26/bin/sh"
src/etc/test-float-parse/runtests.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/h0acdwisihd9kg7adymqmyrnbwb8bmyj-python3-3.11.9/bin/python3"
@artemist
artemist / config.nix
Last active May 19, 2023 17:06
Minimized nixpkgs bug example
{ inputs, ... }:
{
# Silence some errors
boot.initrd.enable = false;
boot.loader.grub.enable = false;
containers.test = {
nixpkgs = inputs.nixpkgs-unstable.outPath;
config = {
services.openssh.enable = true;
@artemist
artemist / zephyr-shell.nix
Created October 15, 2021 01:17
Shell to use the Zephyr SDK on NixOS
with import <nixpkgs> { };
mkShell rec {
packages = [
cmake
ninja
gnumake
dtc
python3
] ++ (with python3.pkgs; [
@artemist
artemist / signal_safety_number.asc
Created January 7, 2021 05:55
Signal Safety Number
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
I am Artemis Tosini. My primary signal safety number is: 57330 23603 61063 13997 95960 56453
-----BEGIN PGP SIGNATURE-----
iLgEARMKAB0WIQSSPlY0HnuoJdIGtZUmsCDxQILvZAUCX/aiEgAKCRAmsCDxQILv
ZD4JAgjaUHd5ybywvYpJS9IPuYLVwsQHBpy1FPBWMkj1czPrTE3bzksp5alnA53I
GADCRzds2a7xT6ivs4EH3suRWNSePwIJAQ0qWpTTJ1EE5+1EethfVUt/LfJsRpJO
zWQ3rPEALCAxgdC0Ka/CHtq/ZYIORGtSbXrux+uyloe36PlZR13StEUL
[ 90838,514] -> [email protected]_registry(new id wl_registry@2)
[ 90838,528] -> [email protected](new id wl_callback@3)
[ 90838,565] [email protected]_id(3)
[ 90838,570] [email protected](1, "wl_shm", 1)
[ 90838,574] -> [email protected](1, "wl_shm", 1, new id [unknown]@4)
[ 90838,579] [email protected](2, "zwp_linux_dmabuf_v1", 3)
[ 90838,583] [email protected](3, "wl_drm", 2)
[ 90838,586] [email protected](4, "wl_compositor", 4)
[ 90838,589] -> [email protected](4, "wl_compositor", 3, new id [unknown]@5)
[ 90838,594] [email protected](5, "wl_subcompositor", 1)
@artemist
artemist / keybase.md
Created September 9, 2019 19:56
keybase.md

Keybase proof

I hereby claim:

  • I am artemist on github.
  • I am artemisty (https://keybase.io/artemisty) on keybase.
  • I have a public key ASAJFXETTKSnocb24n8q_k0GBnaP0KokxuqKL1kwsdv2Two

To claim this, I am signing this object: