nix build .#nixosConfigurations.exampleIso.config.system.build.isoImage
Then dd
it to your least favorite USB Stick for usage.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nix-shell | |
#! nix-shell -i bash --pure | |
#! nix-shell -p bash | |
#! nix-shell -p pciutils | |
#! nix-shell -p usbutils | |
#! nix-shell -p superiotool | |
#! nix-shell -p inteltool | |
#! nix-shell -p ectool | |
#! nix-shell -p msrtool | |
#! nix-shell -p dmidecode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import <nixpkgs> {}; | |
in pkgs.mkShell { | |
packages = [ | |
(pkgs.python3.withPackages (python-pkgs: [ | |
python-pkgs.onnxruntime | |
python-pkgs.opencv4 | |
python-pkgs.pillow | |
python-pkgs.numpy | |
])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
pkgs.mkShell { | |
# Everything you need to build iPXE roms on NixOS - I used it to build firmware for my Intel NIC. | |
nativeBuildInputs = with pkgs.buildPackages; [ gnumake gcc perl lzma mtools ]; | |
} |
On 03/03/2021 I discovered that my local dollar store had $4 strips of RGB lights. They could be controlled with an IR remote, similar to an old TV.
I purchased it, and immediately stripped the shrink wrap off the controller. I discovered 2 things from this:
- If I want to control the the RGB strip, I'm going to need to remove it
- It's actually pretty simple!
1 is because it has no reverse power protection as far as I can tell, so applying power to any of the colors could cause the microcontroller to turn on, and then switch everything to white - Spreading the power based love, as it were. 2 is because the way it works, well, is simple! You supply 5V on one line, and ground the color you want. Presumably you could use somthing akin to PWM to control the intensity.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sandbox.Game.EntityComponents; | |
using Sandbox.ModAPI.Ingame; | |
using Sandbox.ModAPI.Interfaces; | |
using SpaceEngineers.Game.ModAPI.Ingame; | |
using System.Collections.Generic; | |
using System.Collections; | |
using System.Linq; | |
using System.Text; | |
using System; | |
using VRage.Collections; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
namespace Translator | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
if(args.Length == 0) |
I hereby claim:
- I am krutonium on github.
- I am krutonium (https://keybase.io/krutonium) on keybase.
- I have a public key ASAGt7rpJTvpoOY5cZBMFeve7cI7WZJjNN4bU6zQG_utWQo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get current branch in git repo | |
function parse_git_branch() { | |
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ ! "${BRANCH}" == "" ] | |
then | |
STAT=`parse_git_dirty` | |
echo "[${BRANCH}${STAT}]" | |
else | |
echo "" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Net.Http; | |
namespace RebootModem | |
{ | |
class MainClass | |
{ | |
public static void Main(string[] args) | |
{ |