Skip to content

Instantly share code, notes, and snippets.

View TomMD's full-sized avatar

Thomas M. DuBuisson TomMD

View GitHub Profile
#!/bin/bash
# This script conforms to the Lift Script API v1
declare -a patterns
patterns=(XXX TODO FIXME)
directory=$1
commit=$2
command=$3
#!/usr/bin/env bash
function emit_results() {
results=$1
echo $results | \
jq '[ .[] |
select (.vulns != null) |
.vulns |
.[] |
.type = .id |
@TomMD
TomMD / gist:0d950753d13a33864e56d26217fec8d7
Created July 23, 2023 15:02
Basic shell.nix useful for some Haskell dev work
let
unstable = import <nixos-unstable> {};
new = import <nixos-21.11> {};
in new.mkShell {
buildInputs = [
new.ghc
new.haskellPackages.haskell-language-server
unstable.neovim
new.zlib.dev
# unstable.terraform
@TomMD
TomMD / bevy-flake.nix
Last active December 2, 2024 03:24
Nix Flake for bevy basics including default packages
{
description = "Bevy-based hello world";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
oxalica.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, flake-utils, oxalica }:
@TomMD
TomMD / shell.nix
Last active February 16, 2026 23:40
Solana on Nix shell.nix
with import <nixpkgs> {};
let agave = (builtins.getFlake "github:tommd/nixpkgs?ref=add-agave-forked-derivation").legacyPackages.${pkgs.system}.solana-agave;
platformTools = (builtins.getFlake "github:tommd/platform-tools?rev=79b7b43775d15cacb04a434fcb111a56bbb9b16a").packages.${pkgs.system}.default;
in mkShell {
# Packages provided as build inputs
buildInputs = [
agave
platformTools
openssl
gcc