Skip to content

Instantly share code, notes, and snippets.

View naggie's full-sized avatar

Cal Bryant naggie

View GitHub Profile

Instructions:

  1. Remove everything but the SATA drive on the ODD port (this includes the SD, remove it too)
  2. Boot from USB to install ubuntu server or (whatever) to the SATA drive (It will detect no UEFI and install to MBR)
  3. Boot a live session from USB and run fdisk -l /dev/sda assuming that's your install HDD -- record the "Disk identifier," a hex number
  4. Insert the microSD into a USB reader (not the built in reader as that has to be active at boot)
  5. Check the device name with lsblkEdit syslinux.cfg to put your Device identifier in place of mine
  6. Run ./create-sd.sh /dev/sdb assuming sdb is the microSD
  7. Shutdown and transfer the SD card over to the internal reader.
  8. Remove the USB reader and connect everything
{ pkgs ? import <nixpkgs> {}, fetchurl } : pkgs.stdenv.mkDerivation {
#/data/shared/software/games/PC/custom_distribution/doom3/RBDOOM-3-BFG-1.3.0.42-full-win64-20211030-git-b4e0366.7z
# TODO precalc full as above?
# TODO mod_ultimateHD wrapper? (see .bat)
# TODO autoexec.cfg settings?
# TODO desktop file + icon
name = "doom3";
src = ./.;
@naggie
naggie / install-python-3.9
Created November 26, 2021 08:44
install python 3.9
#!/usr/bin/env bash
set -e
VERSION=3.9.5
NAME=Python-${VERSION}
TGZ_FILE=${NAME}.tgz
sudo apt update
sudo apt -y install \
@naggie
naggie / install-python3.7.sh
Created November 16, 2021 13:38
install-python3.7.sh
#!/usr/bin/env bash
set -e
VERSION=3.7.12
NAME=Python-${VERSION}
TGZ_FILE=${NAME}.tgz
sudo apt update
sudo apt -y install \

Keybase proof

I hereby claim:

  • I am naggie on github.
  • I am naggie (https://keybase.io/naggie) on keybase.
  • I have a public key ASB9uGHAMZgoCraaRl0O0-rYI5Q3Yzkbnv1k2G_v0l8Bkwo

To claim this, I am signing this object:

We couldn’t find that file to show.
@naggie
naggie / pedantically_commented_playbook.yml
Created October 10, 2016 08:24 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
////////////////////////////////////////////////////////////////////////////////
///
/// Beats-per-minute (BPM) detection routine.
///
/// The beat detection algorithm works as follows:
/// - Use function 'inputSamples' to input a chunks of samples to the class for
/// analysis. It's a good idea to enter a large sound file or stream in smallish
/// chunks of around few kilosamples in order not to extinguish too much RAM memory.
/// - Inputted sound data is decimated to approx 500 Hz to reduce calculation burden,
/// which is basically ok as low (bass) frequencies mostly determine the beat rate.