Skip to content

Instantly share code, notes, and snippets.

@jorgemanrubia
jorgemanrubia / CLAUDE.md
Last active November 17, 2025 05:50
CLAUDE.md I am using for Omarchy. Place it in ~/.coinfig and run Claude code from there. https://x.com/jorgemanru/status/1968221757866905887

Claude Linux System Configuration Assistant

System Context

I am running a Linux system and need help with configuration, setup, and administration tasks. Please assist me following Linux best practices and respecting system defaults.

Current System Information

  • Distribution: Omarchy Linux (Arch-based)
  • Window Manager: Hyprland
  • Home Directory: /home/jorge
  • Working Directory: Check with pwd before making assumptions
@eclecticc
eclecticc / logo.txt
Last active October 8, 2025 02:14
Framework Logo in 24 lines of ASCII
RMMR RMMR
FRMWWWWWWMF FRMWWWWWWMRF
RMWWWWWWWWWWWWWMMWWWWWWWWWWWWWMR
MWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWR
MWWWWWWWWWWWWWMMMMMMWWWWWWWWWWWWWM
MWWWWWWWWMRF FRMWWWWWWWWM
WWWWWWMF RMWWWWWM
FMWWWWWF RWWWWWMF
FMWWWWWWM FMWWWWWMRF
FMWWWWWWWWM FWWWWWWWWWMF
@peterc
peterc / CONVENTIONS.md
Last active November 12, 2025 16:34
CONVENTIONS.md file for AI Rails 8 development
  • You MUST NOT try and generate a Rails app from scratch on your own by generating each file. For a NEW app you MUST use rails new first to generate all of the boilerplate files necessary.
  • Create an app in the current directory with rails new .
  • Use Tailwind CSS for styling. Use --css tailwind as an option on the rails new call to do this automatically.
  • Use Ruby 3.2+ and Rails 8.0+ practices.
  • Use the default Minitest approach for testing, do not use RSpec.
  • Default to using SQLite in development. rails new will do this automatically but take care if you write any custom SQL that it is SQLite compatible.
  • An app can be built with a devcontainer such as rails new myapp --devcontainer but only do this if requested directly.
  • Rails apps have a lot of directories to consider, such as app, config, db, etc.
  • Adhere to MVC conventions: singular model names (e.g., Product) map to plural tables (products); controllers are plural.
  • Guard against incapable browsers accessing controllers with `allo
@jheddings
jheddings / ex-notes.py
Last active October 23, 2025 08:52
Import Apple Notes into Notion.
#!/usr/bin/env python3
# !! NOTE - this script is no longer maintained... please see the repo for further
# updates: https://github.com/jheddings/notes2notion
# this script attempts to migrate from Apple Notes to Notion while retaining as
# much information and formatting as possible. there are limitations to the
# export data from Notes, so we try to preserve the intent of the original note.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
@romannurik
romannurik / centered_triangle.html
Created May 3, 2011 05:43
A simple CSS trick to create a horizontally- or vertically-centered 'selected' callout triangle using zero images.
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 40px;
}
a {
display: inline-block;