Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 1DBx6aysybKZgdyVVHkNVnLdaEX451XTtY https://explorer.blockstack.org/address/1DBx6aysybKZgdyVVHkNVnLdaEX451XTtY
@monotykamary
monotykamary / research_moa.exs
Last active July 30, 2024 05:26
Mixture of Agents with Elixir + Flow
#!/usr/bin/env elixir
Mix.install([
{:flow, "~> 1.2"},
{:jason, "~> 1.4"},
{:langchain, "0.3.0-rc.0"}
])
defmodule ResearchMoA do
alias LangChain.Chains.LLMChain
@monotykamary
monotykamary / smart_crawl.exs
Last active August 3, 2024 15:51
Crawl Website to JSON with Elixir Langchain
#!/usr/bin/env elixir
Mix.install([
{:langchain, "~> 0.3.0-rc.0"},
{:httpoison, "~> 2.2"},
{:floki, "~> 0.36"},
{:jason, "~> 1.4"}
])
defmodule WebScraper do
@monotykamary
monotykamary / pubmed_scraper.exs
Last active August 4, 2024 12:39
PubMed Scraping with Elixir Flow
#!/usr/bin/env elixir
Mix.install([
{:httpoison, "~> 2.2"},
{:floki, "~> 0.36"},
{:jason, "~> 1.4"},
{:flow, "~> 1.2"}
])
defmodule PubMedScraper do
@monotykamary
monotykamary / selective_blur.py
Created August 20, 2024 15:47
Quick and Dirty Selective Blur with OpenCV + MTCNN
import cv2
import numpy as np
from mtcnn import MTCNN
def create_blurred_video(input_video, output_video):
cap = cv2.VideoCapture(input_video)
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
fps = cap.get(cv2.CAP_PROP_FPS)
@monotykamary
monotykamary / compile.nim_nif.ex
Last active September 1, 2024 06:48
Cross compilation with Elixir and Nim NIFs
# lib/mix/tasks/compile.nim_nif.ex
defmodule Mix.Tasks.Compile.NimNif do
use Mix.Task.Compiler
@bindings_dir Path.join(["lib", "native", "bindings"])
@generated_dir Path.join(@bindings_dir, "generated")
@hash_file Path.join(@generated_dir, ".nif_hash")
defp ensure_directories_exist() do
@monotykamary
monotykamary / nimble.flake.nix
Created August 31, 2024 14:14
Devbox Flake for Nimble
{
description = "A flake that adds Nimble";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/master";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
@monotykamary
monotykamary / cmd
Last active October 4, 2024 06:02
Building Screenpipe with Devbox MacOS 15
# make sure we're using the right XCode
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
# build the CLI
devbox run build-release
# build the MacOS app
devbox run build-tauri
@monotykamary
monotykamary / 1_system_second_to_last_three.py
Last active March 12, 2025 07:31
Open WebUI Anthropic with Prompt Caching
"""
title: Anthropic Manifold Pipe
authors: monotykamary
author_url: https://github.com/monotykamary
funding_url: https://github.com/open-webui
version: 0.2.5
required_open_webui_version: 0.3.17
license: MIT
"""
@monotykamary
monotykamary / 1-warmup.md
Last active October 12, 2024 19:20
DF Test

Do you feel mastery in any part of your life? If so, where?

I suppose the area where I feel the deepest sense of mastery is in my curiosity and my ability to connect seemingly unrelated ideas. This isn’t necessarily a mastery of a specific discipline, but rather a mindset—an approach to the world that allows me to see patterns, recognize links, and pull insights from one domain to apply them in another. It’s a mastery of perspective, driven by a hunger for knowledge. I’ve found that this ability to make connections is essential to innovate, as it helps me break down complex problems through connecting the dots.

Who has been the most powerful influence on who you are today? How was that person significant to you?

There’s never been just one person who has profoundly influenced me, but Dr. Jordan Peterson has certainly left a lasting mark. His deep exploration of human psychology, culture, and the dynamics between men and women has significantly shaped my thinking. His teachings on self-improvement and