Skip to content

Instantly share code, notes, and snippets.

View akiross's full-sized avatar
🥷
Ninja

Alessandro Re akiross

🥷
Ninja
View GitHub Profile
@akiross
akiross / README.md
Created September 21, 2024 15:52
Deploying nix flakes to nixos hosts using github actions

All Nix(OS) deploy

  • update-flake-lock.yml
  • deploy-host-flake.yml
  • flake.nix
  • some-service somewhere on git

This is an example of (all nix) deployment. The architecture is the following:

  1. you have some-service flake somewhere on a repository; let's assume it's private and hosted at github.com/foobar/some-service.
@akiross
akiross / ShowImage.vue
Last active January 23, 2025 21:46
vtkjs example showing a random image
<script setup>
import { ref, onMounted, onBeforeUnmount } from "vue";
// Without this import, it will fail with "renNode is undefined"
// If Geometry is used as a profile, you won't see anything on the screen, but no error.
// Thank you harry for helping me finding the issue:
// https://discourse.vtk.org/t/error-in-vtkgenericrenderwindow-for-vtk-js/15154
import "@kitware/vtk.js/Rendering/Profiles/Volume";
import vtkGenericRenderWindow from "@kitware/vtk.js/Rendering/Misc/GenericRenderWindow";