Skip to content

Instantly share code, notes, and snippets.

View Aeva's full-sized avatar

Aeva Aeva

View GitHub Profile
@Aeva
Aeva / seaside-town.rkt
Created June 12, 2022 05:19
Seaside Town
#lang racket/base
; Copyright 2022 Aeva Palecek
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
@Aeva
Aeva / psmove_windows.md
Last active January 17, 2023 01:09
notes on using psmove on windows

To successfully pair multiple PS4 Move Controllers on Windows with the psmove utility:

  1. Make sure your computer supports bluetooth, and that bluetooth is currently activated.
  2. Download one of the release Windows binary distributions from https://thp.io/2010/psmove/. I picked the MSVC Win64 build of 4.0.12, which seems to work mostly ok.
  3. Extract the archive. Copy the contents of the "lib" folder into the "bin" folder.
  4. Open an administrator cmd shell, and cd to the bin folder. Leave this shell open for the following commands.
  5. Plug exactly one move controller into a working USB port, and turn the controller on.
  6. Run psmove.exe pair, and follow the instructions it prints. You may will see an OS notification popup to confirm the device pairing, and you should hit approve. You may need to try this process multiple times. If this worked, then the commandline output will look something like this:
Connected controllers: 1
@Aeva
Aeva / nixos_swap_insert_and_delete_howto.md
Last active April 16, 2024 16:59
how to swap insert and delete keys on nixos

First, scan through these helpful links:

This is what I ended up adding to /etc/nixos/configure.nx file. This is specific to the keyboard that is in my laptop. Unless you also have the same basic US keyboard they shiped with my framework 13 (circa April 2024), you will want to modify this udev rule accordingly. The information on how to do that can be found in the reddit post and 60-evdev.hwdb file

@Aeva
Aeva / shell.nix
Created May 4, 2024 20:05
shell.nix for monogame
{ pkgs ? import <nixpkgs> {} }:
# This seems sufficient enough to run a mgdesktopgl project with `dotent run`.
# I have not tested this beyond running a blank one without crashing.
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
dotnet-sdk_6
];
@Aeva
Aeva / monogame_distrobox_shell.nix
Created May 13, 2024 01:55
distrobox nix-shell and notes on setting up monogame for development on nixos
{ pkgs ? import <nixpkgs> {} }:
let
# To use this shell.nix on NixOS your user needs to be configured as such:
# users.extraUsers.adisbladis = {
# subUidRanges = [{ startUid = 100000; count = 65536; }];
# subGidRanges = [{ startGid = 100000; count = 65536; }];
# };