Skip to content

Instantly share code, notes, and snippets.

View alex-ameen's full-sized avatar

Alex Ameen alex-ameen

  • Block
  • Austin Texas
View GitHub Profile
# Look upon my works, ye Mighty, and despair!
# Nothing beside remains.
# Round the day of that colossal wreck, boundless and bare the lone and level sands stretch far away.
# - P.B.Shelley
#
# This pipe has come to drain your harbor so that we might play in the sand.
jobs:
- name: nixly-job
plan:
- task: hello-world-task
@alex-ameen
alex-ameen / create-img.nix
Last active April 18, 2022 01:14
Create a NixOS image ( in one line )
let sources = import ./nix/sources.nix; eval = import "${sources.morph}/data/eval-machines.nix" { networkExpr = ./deploy/morph.nix; }; pkgs = import sources.nixpkgs {}; inherit (eval) uncheckedNodes nodes; inherit (pkgs) lib; in
nodes.cookiemonster.config.system.build.vm
# https://i.ckie.dev/enEbAOg.mp4
@alex-ameen
alex-ameen / foldl-listToAttrs.md
Last active April 4, 2023 13:21
Compare performance of foldl' and listToAttrs in nix
@alex-ameen
alex-ameen / flox.yml
Last active April 13, 2023 20:31
flox install in github actions
# ============================================================================ #
#
#
#
# ---------------------------------------------------------------------------- #
#
name: "Flox Tests"
on:
push:
@alex-ameen
alex-ameen / TEMPLATE.sh
Created May 1, 2023 16:54
A starter bash script. Just change `FILE` and fill in the rest
#! /usr/bin/env bash
# ============================================================================ #
#
#
#
# ---------------------------------------------------------------------------- #
set -eu;
set -o pipefail;
#! /usr/bin/env bash
# ============================================================================ #
#
# Grep for demangled symbols from C++ or Swift objects and binaries.
#
#
# ---------------------------------------------------------------------------- #
set -eu;
set -o pipefail;