Skip to content

Instantly share code, notes, and snippets.

View mogorman's full-sized avatar

Matthew O'Gorman mogorman

View GitHub Profile
@mogorman
mogorman / test.livemd
Created September 1, 2022 22:43
teller.io challenge

Teller Bank Challenge

Mix.install([:req, :jason, :kino])
Resolving Hex dependencies...
LIBCAMERA_LOG_LEVELS=0 cam --list
[0:11:45.689660322] [9008] INFO IPAManager ipa_manager.cpp:138 libcamera is not installed. Adding '/nix/store/src/ipa' to the IPA search path
[0:11:45.689750858] [9008] DEBUG IPAModule ipa_module.cpp:329 ipa_ipu3.so: IPA module /nix/store/4bfvazgbkll6xyj20fvwfyg0vj120wwn-libcamera-unstable-2022-03-16/lib/libcamera/ipa_ipu3.so is signed
[0:11:45.689776347] [9008] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/nix/store/4bfvazgbkll6xyj20fvwfyg0vj120wwn-libcamera-unstable-2022-03-16/lib/libcamera/ipa_ipu3.so'
[0:11:45.689800218] [9008] DEBUG IPAModule ipa_module.cpp:329 ipa_vimc.so: IPA module /nix/store/4bfvazgbkll6xyj20fvwfyg0vj120wwn-libcamera-unstable-2022-03-16/lib/libcamera/ipa_vimc.so is signed
[0:11:45.689813566] [9008] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/nix/store/4bfvazgbkll6xyj20fvwfyg0vj120wwn-libcamera-unstable-2022-03-16/lib/libcamera/ipa_vimc.so'
[0:11:45.689828240] [9008] INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[0:11:
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 5.16.0 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.3.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=100300
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23502
@mogorman
mogorman / nixos.md
Created March 29, 2021 16:59 — forked from martijnvermaat/nixos.md
Installation of NixOS with encrypted root
# dmesg
[ 0.000000] Linux version 5.7.11 (nixbld@localhost) (gcc version 9.3.0 (GCC), GNU ld (GNU Binutils) 2.31.1) #1-NixOS SMP Wed Jul 29 08:20:01 UTC 2020
[ 0.000000] Command line: systemConfig=/nix/store/832yan87v11px6k56gwfb6yqjj8zj3n2-nixos-system-zaphod-20.09pre236419.a45f68ccac4 init=/nix/store/832yan87v11px6k56gwfb6yqjj8zj3n2-nixos-system-zaphod-20.09pre236419.a45f68ccac4/init loglevel=4 intel_iommu=on
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64
{ config, lib, pkgs, ... }:
let
home-manager = builtins.fetchTarball {
url = "https://github.com/rycee/home-manager/archive/master.tar.gz";
};
impermanence = builtins.fetchTarball {
url =
"https://github.com/nix-community/impermanence/archive/master.tar.gz";
@mogorman
mogorman / rpn.ex
Last active April 18, 2020 01:06
Distru rpn example
defmodule Distru.Rpn do
def rpn_string(numbers) do
String.split(numbers, " ")
end
def rpn(numbers) do
Enum.reduce(numbers, [], fn term, acc ->
case Integer.parse(term) do
:error ->

Keybase proof

I hereby claim:

  • I am mogorman on github.
  • I am mog (https://keybase.io/mog) on keybase.
  • I have a public key whose fingerprint is 3928 4349 DB16 C376 2F0A D3AF 440E F66B 6A0A A743

To claim this, I am signing this object: