Skip to content

Instantly share code, notes, and snippets.

@eduherminio
eduherminio / Day_XX.cs
Last active November 13, 2022 22:56
AoC Day VS template
namespace $rootnamespace$;
public class $itemname$ : BaseDay
{
private readonly List<string> _input;
public $itemname$()
{
_input = ParseInput();
}
@eduherminio
eduherminio / heic-to-jpg
Created October 17, 2022 12:57
HEIC to JPG
Based on https://blog.jjhayes.net/wp/2020/09/03/open-source-heic-to-jpg-conversion/
1. Download ImageMagick (portable editions available)
https://imagemagick.org/script/download.php
2. Extract the magick executable
3. Move the directory with your .heic pictures at the same level of the executable
4. Execute the conversion by:
SET WEBHOOK_URL=<your_webhook_url>
curl ^
-H "Content-Type: application/json" ^
-d "{\"content\": \"<your message>\"}" ^
%WEBHOOK_URL%
@eduherminio
eduherminio / ubuntu.ps1
Created April 6, 2025 15:29
Ubuntu docker playground
docker run --rm -it -v ${PWD}:/home/Lynx ubuntu:22.04 bash
# python -m venv .venv
# .venv\Scripts\activate
# pip install numpy
# pip install matplotlib
# python Disservin_SMP_scaling.py -e .\Lynx.Cli.exe -m 16 -g 256
# deactivate
from subprocess import Popen, PIPE
import multiprocessing
import os
@eduherminio
eduherminio / publish.yml
Created April 24, 2025 13:32
GitHub Actions workflow for publish self-contained, single-file trimmed .NET apps
name: Release
on:
workflow_dispatch:
env:
DOTNET_VERSION: 8.0.x
jobs: