Skip to content

Instantly share code, notes, and snippets.

View spachava753's full-sized avatar
🌩️
Riding on the cloud

Shashank Pachava spachava753

🌩️
Riding on the cloud
View GitHub Profile
@spachava753
spachava753 / codex-failure.md
Last active February 22, 2026 06:28
Codex failures

Example 1:

## 🧑 USER [`EgJZd1`]

In the system prompt template I actually have a function to take a list of paths that will then examine and extract skills. There is a template function that does this that I have. Can you modify the template function to, instead of producing a single string, actually produce variables or a list of objects that has the skill name and then description? In the actual prompt template itself the user can decide how they want it to be formatted, whether it could be XML, JSON, CSV; it doesn't matter how they want it to be formatted. What we want to do actually is refactor the template skill function to return a list of pairs of name and description for each skill. After implementing and adding/updating any tests as necessary, do a code review loop


---
@spachava753
spachava753 / gen.sh
Created July 11, 2023 14:42
Simple script to call replicate API
#!/bin/bash
if [[ -z "$REPLICATE_API_TOKEN" ]] ; then
echo "The environment variable \"REPLICATE_API_TOKEN\" is not defined or empty."
exit 1
fi
if !command -v curl &> /dev/null; then
echo "curl is not installed"
exit 1
@spachava753
spachava753 / Makefile
Created February 17, 2021 20:25 — forked from thomaspoignant/Makefile
My ultimate Makefile for Golang Projects
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=example
VERSION?=0.0.0
SERVICE_PORT?=3000
DOCKER_REGISTRY?= #if set it should finished by /
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true
GREEN := $(shell tput -Txterm setaf 2)
@spachava753
spachava753 / isjson.go
Created February 17, 2021 20:16
Check if a string is valid json in Golang
// found on stack overflow: https://stackoverflow.com/questions/22128282/how-to-check-string-is-in-json-format
func isJSON(s string) bool {
var js map[string]interface{}
return json.Unmarshal([]byte(s), &js) == nil
}