Skip to content

Instantly share code, notes, and snippets.

@rikonor
rikonor / development.md
Created April 11, 2025 23:36
Guidelines for pm
metadata
description
PM Tool Development Guidelines

PM Tool Development Guidelines

This document outlines specific conventions and practices for developing the PM tool itself. These supplement any general guidelines provided by the pm welcome command.

Implementation Conventions

@rikonor
rikonor / names.txt
Created April 7, 2025 13:13
Roo Names
Aaroon (from Aaron)
Androow (from Andrew)
Barooy (from Barry)
Brooan (from Brian)
Carooline (from Caroline)
Chroostopher (from Christopher)
Daroothy (from Dorothy)
Derook (from Derek)
Edrooward (from Edward)
Eroic (from Eric)
@rikonor
rikonor / 01_WORKFLOW.md
Last active April 12, 2025 17:34
Roo Profiles

Roo Collaboration Workflow Agreement

This document outlines the agreed-upon process for collaboration between the user and Roo in this environment.

Workflow Steps

  1. Collaborative Exploration:

    • We begin by discussing the task conversationally.
  • Roo will use available tools (read_file, search_files, execute_command, etc.) to gather necessary information and context.
@rikonor
rikonor / 01.sh
Created April 7, 2025 01:09
Signing and Verifying
# Generate private key
openssl genpkey -algorithm Ed25519 -out private.pem
# Derive public key
openssl pkey -in private.pem -pubout -out public.pem
# Generate signature
openssl pkeyutl -sign -inkey private.pem -rawin -in data_to_sign.txt -out signature.sig
# Verify signature
@rikonor
rikonor / dots.js
Last active April 7, 2025 01:09
dots
import React, { useState, useEffect } from 'react';
const DotGridEncoder = () => {
// State variables for customization
const [text, setText] = useState('life is war');
const [dotSize, setDotSize] = useState(4);
const [gridSpacing, setGridSpacing] = useState(8);
const [encoding, setEncoding] = useState('binary'); // 'binary', 'ascii', 'morse'
const [colorScheme, setColorScheme] = useState('monochrome'); // 'monochrome', 'gradient', 'rainbow'
@rikonor
rikonor / list_files.sh
Created March 25, 2025 17:47
Cline utilities
list_files() {
local dir="$1"
if [ -z "$dir" ]; then
echo "Usage: list_files <directory>"
return 1
fi
find "$dir" -type f -not -path '*/\.*' | sed 's|^|@/|'
}
@rikonor
rikonor / .0_explain.md
Last active January 24, 2025 17:16
Gist Directory

This can be used to create a gist with the contents of a directory, using a custom "ignore" file to filter out unwanted files.

The reason someone might want to do this is if they want to snapshot a directory for future reference but doesn't want to go through the hassle of setting up a full-fledged repository for it.

To use this, in a git repo create your .gistignore file, then run the commands in snapshot.sh.

To download a gist that was created in this way, run the commands in clone.sh.

@rikonor
rikonor / 01_tutorials.py
Last active January 4, 2025 21:26
Marimo Playground
import marimo
__generated_with = "0.10.9"
app = marimo.App()
@app.cell
def _():
import marimo as mo
return (mo,)
@rikonor
rikonor / client.rs
Created October 31, 2024 14:27
Log Anomyization
use std::{
sync::Arc,
time::{Duration, Instant, SystemTime, UNIX_EPOCH},
};
use anyhow::{Context, Error};
use async_trait::async_trait;
use ic_agent::{export::Principal, identity::AnonymousIdentity, Agent};
use rand::{rngs::StdRng, SeedableRng};
use rsa::{
@rikonor
rikonor / health_check.py
Last active October 17, 2024 17:20
Ansible health-check module
#!/usr/bin/python
from __future__ import absolute_import, division, print_function
import http.client
import socket
import ssl
import time
from ansible.module_utils.basic import AnsibleModule
__metaclass__ = type