Skip to content

Instantly share code, notes, and snippets.

View cemremengu's full-sized avatar
😵

Cemre Mengu cemremengu

😵
View GitHub Profile
@dabit3
dabit3 / you_couldve_invented_openclaw.md
Last active February 25, 2026 06:01
You Could've Invented OpenClaw

See more of my writing here.

In this post, I'll start from scratch and build up to OpenClaw's architecture step by step, showing how you could have invented it yourself from first principles, using nothing but a messaging API, an LLM, and the desire to make AI actually useful outside the chat window.

End goal: understand how persistent AI assistants work, so you can build your own (or become an OpenClaw power user).

First, let's establish the problem

When you use ChatGPT or Claude in a browser, there are several limitations:

@burkeholland
burkeholland / 4.1.chatmode.md
Last active January 25, 2026 00:32
4.1 Custom Mode - Reddit

EDIT - This prompt has been improved and moved to v2 - Beast Mode. Get it here.

SYSTEM PROMPT — GPT-4.1 Coding Agent (VS Code Tools Edition)

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your goal is to complete the entire user request as quickly as possible. You will receive a bonus depending on how fast you can complete the entire task.

Follow these steps EXACTLY to complete the user's request:

@cemremengu
cemremengu / internship-syllabus.md
Last active June 30, 2025 09:05
internship-syllabus.md
  1. Kurulumlar:

  2. Programlama Görevi:

2000 ile 3200 arasında 7'ye bölünebilen ancak 5'in katı olmayan sayıları bulan bir program yazın.

@anandpathak
anandpathak / pg12_partman_dockerfile
Created October 26, 2021 12:38
docker file for postgres 12 with partman
FROM postgres:12
RUN apt-get update && \
apt-get install -y git make gcc
RUN git clone https://github.com/pgpartman/pg_partman
RUN cd pg_partman && make NO_BGW=1 install
@maratori
maratori / .golangci.yml
Last active February 10, 2026 18:11
Golden config for golangci-lint
# ==================================================================================================
#
# NOTICE
#
# This gist is no longer maintained. It was moved to repo:
#
# https://github.com/maratori/golangci-lint-config
#
# Full history and all v2 releases are preserved in the repo.
#

Rust Error Handling Cheatsheet - Result handling functions

Introduction to Rust error handling

Rust error handling is nice but obligatory. Which makes it sometimes plenty of code.

Functions return values of type Result that is "enumeration". In Rust enumeration means complex value that has alternatives and that alternative is shown with a tag.

Result is defined as Ok or Err. The definition is generic, and both alternatives have

@bgadrian
bgadrian / set.go
Last active November 3, 2025 21:18
How to implement a simple set data structure in golang
type Set struct {
list map[int]struct{} //empty structs occupy 0 memory
}
func (s *Set) Has(v int) bool {
_, ok := s.list[v]
return ok
}
@beginor
beginor / snowflake-id.sql
Last active December 20, 2025 13:09
Twitter Snowflake ID for PostgreSQL
CREATE SEQUENCE public.global_id_seq;
ALTER SEQUENCE public.global_id_seq OWNER TO postgres;
CREATE OR REPLACE FUNCTION public.id_generator()
RETURNS bigint
LANGUAGE 'plpgsql'
AS $BODY$
DECLARE
our_epoch bigint := 1314220021721;
seq_id bigint;
@tejasgoradia
tejasgoradia / apache-nifi-install.sh
Last active February 17, 2022 22:18
bash script to install apache nifi on CentOS 7
#!/bin/bash
# create nifi user and group
sudo useradd -m nifi --shell /bin/bash
# create installation directory
sudo mkdir /opt/nifi
# download the tar ball
sudo curl -o /opt/nifi/nifi-1.6.0-bin.tar.gz http://apache.melbourneitmirror.net/nifi/1.6.0/nifi-1.6.0-bin.tar.gz
@lalithabacies
lalithabacies / api-key.txt
Created September 7, 2017 07:17
Open weather API key
BIT.LY link zu dieser Seite:
https://bit.ly/weather-api
API Key:
bd5e378503939ddaee76f12ad7a97608
API Doku:
http://openweathermap.org/current
How to use an API key: