Skip to content

Instantly share code, notes, and snippets.

View dbworku's full-sized avatar
💫

Daniel Worku dbworku

💫
View GitHub Profile
@dbworku
dbworku / README.md
Created May 19, 2025 16:10
System Prompts

How to make Cursor more predicatable

  1. Create a docs folder in the root and add it to your gitignore
  2. Set the prompt below as your system prompt (context that is given at the start of every new thread) in the Cursor settings.
  3. When starting new threads select a high reasoning model and ask it to work in "Planner Mode". Eg. OpenAi O3 is expensive but a good choice.

Here's an example thread prompt:

Act like a planner and help me build out a detailed plan for this task. Here's what I need:
@dbworku
dbworku / setup.sh
Last active May 11, 2025 01:32
Mac OSX setup script
#!/bin/bash
# Exit on any error
set -e
# Check and install Xcode CLI tools
if ! xcode-select -p &>/dev/null; then
echo "📦 Installing Xcode Command Line Tools..."
xcode-select --install
echo "⚠️ Please complete the Xcode CLI install, then re-run this script."
@dbworku
dbworku / langgraph.json
Last active March 2, 2025 17:22
Example StagehandToolkit Agent
{
"graphs": {
"test-agent": "./lib/langgraph/agent/test-agent.ts:testAgent"
},
"_INTERNAL_docker_tag": "20",
"env": ".env.local"
}
@dbworku
dbworku / pop-os-apps.sources
Created July 23, 2021 16:51
Pop_Upgrade Sources After failed 21.04 upgrade
X-Repolib-Name: Pop_OS Apps
Enabled: yes
Types: deb
URIs: http://apt.pop-os.org/proprietary
Suites: groovy
Components: main
@dbworku
dbworku / sample-release-d369779.pom
Created November 10, 2020 23:11
The :Application:checkDebugDuplicateClasses task failed.
1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.facebook.jni.CppException found in modules fbjni-0.0.2-runtime.jar (com.facebook.fbjni:fbjni:0.0.2) and sample-release-d369779-runtime.jar (com.facebook.profilo:sample:release-d369779)
Duplicate class com.facebook.jni.CppSystemErrorException found in modules fbjni-0.0.2-runtime.jar (com.facebook.fbjni:fbjni:0.0.2) and sample-release-d369779-runtime.jar (com.facebook.profilo:sample:release-d369779)
Duplicate class com.facebook.jni.DestructorThread found in modules fbjni-0.0.2-runtime.jar (com.facebook.fbjni:fbjni:0.0.2) and sample-release-d369779-runtime.jar (com.facebook.profilo:sample:release-d369779)
Duplicate class com.facebook.jni.DestructorThread$1 found in modules fbjni-0.0.2-runtime.jar (com.facebook.fbjni:fbjni:0.0.2) and sample-release-d369779-runtime.jar (com.facebook.profilo:sample:release-d369779)
Duplicate class com.facebook.jni.DestructorThread$Destructor found in modules fbjni-0.0.2-runtime.jar (com.facebook.fbjn
@dbworku
dbworku / Example.Swift
Created November 29, 2015 21:12
Swift-ful idiomatic extensions of dispatch_semaphore_t
//
// Example.swift
//
// Created by Daniel Worku on 11/16/15.
//
// The MIT License (MIT)
// Copyright (c) 2014 Daniel Worku
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in