Skip to content

Instantly share code, notes, and snippets.

View jnsgruk's full-sized avatar
🚀

Jon Seager jnsgruk

🚀
View GitHub Profile
@jnsgruk
jnsgruk / flake.nix
Created September 18, 2025 13:05
test-vm-nixos
{
description = "nixos vm flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/pull/443606/head";
# nixpkgs.url = "github:jnsgruk/nixpkgs/homepage-dashboard-1.4.3";
};
outputs =
{
@jnsgruk
jnsgruk / 0-deploy-cos-lite.sh
Last active July 31, 2025 11:00
Charm Bundle Deployments with Parca Agent
#!/usr/bin/env bash
set -euo pipefail
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# Install and configure Parca Agent
sudo snap install --classic --channel edge parca-agent
sudo snap set parca-agent remote-store-bearer-token=DEADBEEF
sudo snap set parca-agent off-cpu-threshold=1
sudo snap start parca-agent
@jnsgruk
jnsgruk / deploy.sh
Created July 24, 2025 11:35
Deploy COS Script
#!/usr/bin/env bash
set -euxo pipefail
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# Prepare machine for Juju deployments on K8s
sudo snap install --classic concierge
sudo concierge prepare -p k8s
sudo apt-get install -y s3cmd
sudo snap install --classic terraform
This file has been truncated, but you can view the full file.
signal time=1723028215.712831 sender=org.freedesktop.DBus -> destination=:1.156 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
string ":1.156"
signal time=1723028215.712847 sender=org.freedesktop.DBus -> destination=:1.156 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string ":1.156"
method call time=1723028220.325340 sender=:1.147 -> destination=:1.39 serial=33 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
string "Signal"
uint32 1460
string ""
string "Laura"
string "Foobar"
package main
//go:generate bash -c "hugo -s ./webui --minify"
import (
"embed"
"flag"
"fmt"
"log"
"net/http"
@jnsgruk
jnsgruk / Cargo.lock
Last active November 28, 2023 14:59
Cargo.lock patch for Screenly CLI v0.2.3
diff --git a/Cargo.lock b/Cargo.lock
new file mode 100644
index 0000000..1af7aaf
--- /dev/null
+++ b/Cargo.lock
@@ -0,0 +1,3391 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
@jnsgruk
jnsgruk / srht.yaml
Created November 4, 2023 15:10
srht
image: nixos/unstable
repositories:
nixpkgs: https://nixos.org/channels/nixos-unstable
environment:
NIX_CONFIG: "experimental-features = nix-command flakes"
sources:
- https://github.com/jnsgruk/crafts-flake#sr-ht-tests
tasks:
- setup-system: |
sudo nixos-rebuild switch --flake ./crafts-flake
{ pkgs ? import <nixpkgs> { } }:
(pkgs.buildFHSUserEnv {
name = "toxy";
targetPkgs = pkgs: [ (pkgs.python3.withPackages (pp: with pp; [ tox ])) ];
runScript = "zsh";
}).env
@jnsgruk
jnsgruk / signature-profile.txt
Created December 1, 2022 10:11
Keyoxide Signature Profile
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
This is a personal signature profile for Jon Seager.
You can find Jon at https://jnsgr.uk.
Verify this profile at https://keyoxide.org/sig.
proof=https://hachyderm.io/@jnsgruk
@jnsgruk
jnsgruk / lxd-example.tf
Created August 23, 2022 20:01
Juju Terraform Providers
terraform {
required_providers {
juju = {
source = "juju/juju"
version = "0.4.0"
}
}
}
provider "juju" {}