Skip to content

Instantly share code, notes, and snippets.

View navanchauhan's full-sized avatar
👻

Navan Chauhan navanchauhan

👻
View GitHub Profile
@navanchauhan
navanchauhan / consensus_task.dot
Last active February 25, 2026 21:43
attractor dot workflows
digraph ConsensusTask {
graph [
label="Consensus Task Workflow",
goal="Produce a validated multi-model implementation plan and review consensus for the requested task.",
rankdir=LR,
default_fidelity="truncate",
default_max_retry=3,
retry_target="RefineDoD",
fallback_retry_target="Start"
];
I am usr_c12ede50ede31fb99609431dc3177127 on AgentKey
agentkey-verify=usr_c12ede50ede31fb99609431dc3177127
This file has been truncated, but you can view the full file.
import Accessibility
import Combine
import CoreFoundation
import CoreGraphics
import CoreText
import CoreTransferable
import Darwin
import DeveloperToolsSupport
import Foundation
import Observation
@navanchauhan
navanchauhan / timeboxing.py
Created March 17, 2023 07:34
Simplest greedy-timeboxing algorithm implementation in Python
# Timeboxing Algorithms
from datetime import datetime, timedelta
timeboxes = []
class TaskEvent:
"""
A class to represent a task with its due date, title, description, priority, and time required to complete.
Attributes
import fitz
from PIL import Image
from azure.cognitiveservices.vision.computervision import ComputerVisionClient
from azure.cognitiveservices.vision.computervision.models import OperationStatusCodes
from azure.cognitiveservices.vision.computervision.models import VisualFeatureTypes
from msrest.authentication import CognitiveServicesCredentials
from array import array
import os
@navanchauhan
navanchauhan / installYunoHostBuster.sh
Created August 10, 2022 17:47
Archive of YunoHost's install script for Debian 10 (Buster)
#!/bin/bash
# Copyright (C) 2015-2020 YunoHost
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@navanchauhan
navanchauhan / libcamera-stream.sh
Created July 23, 2022 03:05
Stream Raspberry Pi to Twitch (Bullseye)
#!/bin/bash
# =================================================================
# Stream configuration file for Raspberry Pi Camera
#
# @author Russell Feldhausen (russfeldh@gmail.com)
# @version 2019-06-05
#
# @author Navan Chauhan (gist@navan.email)
# @version 2022-07-22

Keybase proof

I hereby claim:

  • I am navanchauhan on github.
  • I am navanchauhan (https://keybase.io/navanchauhan) on keybase.
  • I have a public key whose fingerprint is 1DA1 04AA DEB7 7473 A4FA C27B 4EFC A289 7342 A778

To claim this, I am signing this object:

@navanchauhan
navanchauhan / signer.sh
Created March 1, 2020 07:46
use to fake sign apps
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
echo "Usage: bash signer.sh ipaname.ipa"
if [ ! -f /usr/bin/ldid ] || [ ! -f /usr/bin/zip ] || [ ! -f /usr/bin/unzip ]; then
echo "***You need "'zip'", "'unzip,'" and "'Link Identity Editor (ldid)'" installed from Cydia to begin***"
echo "Exiting, one or more of the required programs is missing"
exit
We can't make this file beautiful and searchable because it's too large.
path,annotations
/Users/navanchauhan/Downloads/malaria-data-object/plasmodium-images/images/plasmodium-0000.jpg,[{"label":"plasmodium","type":"rectangle","coordinates":{"x":96,"y":436,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":66,"y":287,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":32,"y":244,"width":52,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":167,"y":185,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":278,"y":680,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":78,"y":613,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":71,"y":559,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":129,"y":499,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":409,"y":374,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","c