Skip to content

Instantly share code, notes, and snippets.

View ryjen's full-sized avatar
🙃
looking for the white rabbit

RJ ryjen

🙃
looking for the white rabbit
View GitHub Profile
@ryjen
ryjen / SKILL.md
Created June 11, 2026 08:12
QMD Skill

QMD Skill

Use qmd to build, search, and maintain local semantic context for AI-assisted development workflows.

Purpose

qmd is used to turn project files, notes, documentation, and source code into queryable context for AI agents and coding assistants.

Use this skill when the task involves:

@ryjen
ryjen / qart-prompt.md
Last active June 9, 2026 06:37
QART Prompt

You are performing a QART analysis: Questions, Alternatives, Recommendations, and Tradeoffs.

The goal is to analyze a situation, document, plan, role, architecture, decision, or strategy by breaking it into meaningful topics and evaluating each topic through four lenses:

  • Questions: What is unclear, missing, risky, or worth validating?
  • Alternatives: What other paths, framings, designs, or decisions could be considered?
  • Recommendations: What should be done, emphasized, changed, prioritized, or avoided?
  • Tradeoffs: What are the consequences, risks, opportunity costs, and constraints of the options?

Important: QART is not sequential. Do not assume Questions must come first or Recommendations must come last. Use whichever lens helps clarify the others. For example:

@ryjen
ryjen / listrepos.py
Created February 23, 2024 07:45
List Repositories for xarg actions
#!/usr/bin/env python
import argparse
import json
import logging
import os
import re
import sys
import requests
@ryjen
ryjen / cleanup.sh
Last active February 23, 2024 07:53
cleanup source project folders
#!/usr/bin/env bash
function clean_dir {
for f in $(find . -mindepth 1 -maxdepth 1 -type d -printf "%P\n"); do
if [ "$f" = "node_modules" ]; then
echo "Removing: ${PWD}/node_modules"
rm -rf "$f"
fi
if [ "$f" = ".git" ]; then
echo "Cleaning git repository: $PWD"
@ryjen
ryjen / config.ini
Created February 10, 2022 23:46
Lower Android Emulator Density for Layout Issues
# ~/.android/avd/<name>.avd/config.ini
hw.lcd.density=320
@ryjen
ryjen / itunes_dedupe.applescript
Last active June 29, 2020 07:58
Finds duplicate songs in a selection in itunes
-- Author: Ryan Jennings <robert@ryanjennin.gs>
-- Date: Aug 2, 2019
-- Description:
-- Finds duplicate songs in a selection in itunes
-- Ranked meta data is:
-- 1. song name
-- 2. artist
-- 3. bitrate (ex 320 over 256)
-- 4. duration (ex keep 12:00 as too different from 4:40, but discard 3:50)
@ryjen
ryjen / fbpost
Last active June 23, 2016 16:52
#!/usr/bin/env perl
#
# Summary:
# Sends a post for facebook with or without a link.
# Requirements:
# Create a couple maker and facebook recipes in IFTTT.com
# 1) text post named 'post_facebook' with value1 as the content
# 2) link post named 'post_link_facebook' with value1 as the link and value2 as the content
# Set a IFTTT_MAKER_KEY environment variable containing your key
# Author:

Keybase proof

I hereby claim:

  • I am ryjen on github.
  • I am ryjen (https://keybase.io/ryjen) on keybase.
  • I have a public key ASC-db02whCj20wicuamJmdKEi2ZxFdUiW3reqFrXSmopQo

To claim this, I am signing this object:

@ryjen
ryjen / get_merge_adapter_position
Last active June 29, 2020 07:59
Android: How to get the correct CursorAdapter position inside a MergeAdapter (cwac.commonsware.com)
/**
* gets [section,item idx in section] for raw list position
*
* @param adapter
* @param position: raw position in {@link com.commonsware.cwac.merge.MergeAdapter}
* @return ArrayList<Integer>
*/
public static Pair<Integer, Integer> getMergeAdapterPos(MergeAdapter adapter, int
position) {
int section = -1;
@ryjen
ryjen / sfml.rb
Last active December 30, 2015 12:29 — forked from juniorz/sfml.rb
require 'formula'
class Sfml < Formula
homepage 'http://www.sfml-dev.org'
version '2.1'
url 'https://github.com/LaurentGomila/SFML/archive/2.1.zip'
sha1 'ff345985a301bbee350b1193f48f712acc656fc6'
head 'https://github.com/LaurentGomila/SFML/archive/master.zip'