Skip to content

Instantly share code, notes, and snippets.

@claudioluciano
claudioluciano / pen-to-svg.ts
Created January 24, 2026 13:29
Pencil node to SVG
#!/usr/bin/env bun
/**
* Pencil .pen to SVG Converter
* Converts Pencil design files directly to scalable SVG format.
*
* Usage:
* bun pen-to-svg.ts <node_id> -f <file.pen> [-o output.svg]
* bun pen-to-svg.ts --list -f <file.pen>
*/
@claudioluciano
claudioluciano / pen-to-png.ts
Last active January 24, 2026 13:30
Pencil node to PNG via MCP
#!/usr/bin/env bun
/**
* Pencil Screenshot Exporter
* Exports frames from Pencil .pen files as PNG images via the MCP server.
*
* Usage:
* bun pencil-export.ts <node_id> -f <file.pen> [-o output.png]
* bun pencil-export.ts --list -f <file.pen>
*
* Requirements:

Keybase proof

I hereby claim:

  • I am claudioluciano on github.
  • I am claudioluciano1 (https://keybase.io/claudioluciano1) on keybase.
  • I have a public key ASBUykjsN9S7UiCWOgKsImT0PQdkXP4N59_H6MUaj6M3Wwo

To claim this, I am signing this object:

@claudioluciano
claudioluciano / spoiler_obsidian.css
Last active August 17, 2025 18:47
Obsidian - snippet to create spoilers on notes
:root {
--spoiler-bg-color: rgb(23, 23, 26);
--spoiler-border-radius: 2px;
--spoiler-transition-duration: 0.3s;
--spoiler-transition-timing: ease-in-out;
}
/* Document */
/* Hide the checkbox */
@claudioluciano
claudioluciano / tag_increment.sh
Created August 9, 2023 14:42
List all tags and increment the version in a repo with tags for packages
# This code will get the latest tag for a package and increment it by one.
# The function get_latest_tags will get all the tags for a package
# The function get_latest_tag_for_package will get the latest tag for a package
# Then the latest tag will be incremented by one using awk and sed
#!/bin/bash
get_latest_tags() {
git for-each-ref --sort=-taggerdate --format '%(refname:short)' refs/tags/*/**
}