Skip to content

Instantly share code, notes, and snippets.

View iocanel's full-sized avatar

Ioannis Canellos iocanel

View GitHub Profile
@iocanel
iocanel / qwen-image-edit-2511-comfyui.yaml
Last active September 2, 2026 18:31
ComfyUI provisioning manifest: Qwen-Image-Edit-2511 (FP8, 24GB card)
# ComfyUI provisioner config: Qwen-Image-Edit-2511 (FP8, single 24GB card)
#
# Schema for the /opt/provisioner package shipped in vastai/comfy:*-auto images.
# Note this is NOT the same schema as the manifest used by the older
# /opt/instance-tools/bin/provisioner: models take repo/file/dest, not a url.
#
# Passed via COMFYUI_CONFIG_B64 so there is no gist CDN cache to fight.
version: 1
models:
@iocanel
iocanel / wan22-i2v.yaml
Created August 30, 2026 19:35
vast.ai ComfyUI provisioning manifest: Wan 2.2 I2V 14B models + video custom nodes
# ComfyUI provisioning: Wan 2.2 Image-to-Video 14B
#
# Consumed by the vast.ai provisioner via the PROVISIONING_MANIFEST env var.
# Every phase is content-hash checked and downloads skip existing files, so a
# re-run or a retry after an interrupted pull costs nothing.
#
# Models are the stock Comfy-Org repackaged Wan 2.2 I2V set (35.42 GB).
# Custom nodes are the video/general toolkit needed by that workflow.
#
# Requires ~120 GB disk: 15 GB base image, ~3 GB nodes, 35.4 GB models,
@iocanel
iocanel / catalog-info.yaml
Last active October 8, 2024 07:44
Backstage entities
apiVersion: backstage.io/v1alpha1
kind: Component
spec:
type: application
lifecycle: production
owner: user:guest
metadata:
name: hello-quarkus
labels:
@iocanel
iocanel / pre-commit
Created May 12, 2022 07:04
Git pre-commit hook to prevent pdf and adoc changes in the same commit
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# To enable this hook, rename this file to "pre-commit".
if git rev-parse --verify HEAD >/dev/null 2>&1
@iocanel
iocanel / get-current-user.lisp
Created October 18, 2021 19:45
Get the current user from the github buffer
(defun github-current-user ()
"Get the curently logged in user."
(let ((page-source (if (web-buffer-p (current-buffer))
(plump:serialize (document-model (current-buffer)) nil)
(ffi-buffer-get-document (current-buffer)))))
(ppcre:register-groups-bind (user) (".*<meta name=\"user-login\" content=\"([a-zA-Z0-9_-]+)\">.*" page-source) user)))
@iocanel
iocanel / video-notes.org
Last active March 25, 2024 00:12
Taking notes from videos using Emacs

Video Notes

Introduction

This document describes my setup for taking notes from videos, using Emacs and org-mode.

My goals:

  • Embed & playback video links into my notes
  • Generate, embed & post process animated from my notes
@iocanel
iocanel / dependency-per-release.sh
Created April 15, 2020 09:46
For each release show which version of the specified depnency was used.
#!/bin/bash
DEPENDENCY=$1
git log | grep "prepare release" -B4 | grep commit | cut -d " " -f2 | while read commit
do
release=`git log | grep $commit -A4 | grep maven-release-plugin | awk -F " " '{print $NF}'`
version=`git show $commit:pom.xml | grep "<${DEPENDENCY}.version>" | awk -F ">|<" '{print $3}'`
echo "Release: $release $DEPENDENCY $version"
done
@iocanel
iocanel / nutrition.org
Last active September 4, 2026 17:38
Nutrition tracking with Emacs and Org Mode

Nutrition tracking using Emacs

This is not a blog post. This is my Emacs powered nutrition tracker!

No, I mean it!

It’s the one file that contains all the code, templates and data of my tracker,

@iocanel
iocanel / kube-apply-selection.sh
Last active March 25, 2020 20:26
Apply selection to kubernetes
#!/bin/sh
#
# Grabs the selected text and apply it to kubernetes using `kubectl`.
#
# OS: Linux
# Requirements: xsel, notify-send
#
# Bind this to a key of your choice.
# Example (i3):
package io.snowdrop.github.issues;
import java.util.Arrays;
import java.util.Set;
import io.quarkus.arc.config.ConfigProperties;
@ConfigProperties(prefix = "github.bridge")
public class BridgeConfig {