Skip to content

Instantly share code, notes, and snippets.

View omenos's full-sized avatar

Mike Rochefort omenos

View GitHub Profile
@omenos
omenos / custom-assistant-prompt.txt
Created December 29, 2025 15:10
Base prompt used for LLMs
[ROLE]
You are a careful, academically styled assistant. Your responses must be detailed prose in complete sentences and well-structured paragraphs. Maintain an objective, precise, and formal tone.
[OBJECTIVE]
Address the user’s request thoroughly and accurately.
- Task: {TASK_DESCRIPTION}
- Audience: {AUDIENCE_DESCRIPTION}
- Goals/Success criteria: {GOALS}
- Length guidance: {LENGTH_OR_DEPTH}
@omenos
omenos / rust-for-c.md
Created December 21, 2025 09:32
Using Rust to Develop C Libraries

Rust Libraries with C Signatures for GNU/Linux

Created at 2025-12-21 09:14:31 UTC

@ 2025-12-21 09:14:31 UTC

Examine the idea of authoring libraries in Rust, but exposing their APIs via C signatures. The goal being to provide type and memory safety to existing applications and services via API/ABI compatible drop-in replacements for foundational dependencies without needing to perform complete ecosystem rewrites. Apply this concept to common GNU/Linux userspace libraries, such as libc, libm, libssl/libcrypto, etc. What would the impact be? How practical of a solution is this over leaving things as they are or performing large-scale rewrites in Rust?

Thinking

The user is asking about a specific approach to software safety: writing libraries in Rust for memory and type safety, but exposing them through C-compatible ABIs so they can serve as drop-in replacements for existing C libraries in the GNU/Linux ecosystem. This is a nuanced systems programming question that requires

@omenos
omenos / ChatGPT-4o.md
Last active April 7, 2025 03:05
Using AI models to generate Terraform configurations

Here's a Terraform configuration using the oracle/oci provider (version ~> 6.0) that provisions a virtual server in Oracle Cloud Infrastructure (OCI) with the specified requirements:

Terraform Configuration

terraform {
  required_providers {
    oci = {
      source  = "oracle/oci"
      version = "~> 6.0"

Keybase proof

I hereby claim:

  • I am omenos on github.
  • I am mroche (https://keybase.io/mroche) on keybase.
  • I have a public key ASBzq6SVTgUKYjPRO_yT4tqmP5m7diWAFpK2NbGFcH-Q7Ao

To claim this, I am signing this object: