Skip to content

Instantly share code, notes, and snippets.

18.5 Unofficial Rules of Software Engineering (The Bitterly Useful Edition)

  • Complexity always wins. Especially at 3am.

    Your clever abstraction becomes your 3am nightmare. Hope you like recursive stack traces.

  • Code you wrote 6 months ago was clearly the work of an idiot.

    Unfortunately, that idiot was you.

@jlia0
jlia0 / agent loop
Last active October 28, 2025 01:55
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet

Here's a quick reference for Tmux, covering sessions, panes, and windows along with the command you mentioned.

Tmux Basics

  • Start a new session:
    tmux new -s <session_name>
  • Attach to an existing session:

tmux attach -t

@beowolx
beowolx / openchat_3_5.preset.json
Created December 22, 2023 16:49
This is the prompt preset for OpenChat 3.5 models in LM Studio
{
"name": "OpenChat 3.5",
"load_params": {
"n_ctx": 8192,
"n_batch": 512,
"rope_freq_base": 10000,
"rope_freq_scale": 1,
"n_gpu_layers": 80,
"use_mlock": true,
"main_gpu": 0,
#cloud-config
# This is the user-data configuration file for cloud-init. By default this sets
# up an initial user called "ubuntu" with password "ubuntu", which must be
# changed at first login. However, many additional actions can be initiated on
# first boot from this file. The cloud-init documentation has more details:
#
# https://cloudinit.readthedocs.io/
#
# Some additional examples are provided in comments below the default
version: "2"
networks:
gitea:
external: false
services:
gitea:
image: gitea/gitea:latest
environment:
@Darkflib
Darkflib / agents
Last active July 15, 2018 18:22
consul in docker
docker run -d --restart unless-stopped --name consul --net=host -v consul:/consul/data \
-e CONSUL_BIND_INTERFACE=wg0 -e 'CONSUL_LOCAL_CONFIG={"datacenter":"nbg", "leave_on_terminate": true}' \
consul agent -retry-join=10.88.88.3 -retry-join=10.88.88.5 -retry-join=10.88.88.7
@Darkflib
Darkflib / distributed minio
Created July 15, 2018 14:35
distributed containerised minio with a private network over 6 machines
docker run -d --restart unless-stopped -e MINIO_ACCESS_KEY=AKAARDVARKS -e MINIO_SECRET_KEY=oobidoobidowahwahwahwahhuba \
-v /mnt/minio:/minio \
--network host \
minio/minio server \
http://10.98.88.3/minio \
http://10.98.88.4/minio \
http://10.98.88.5/minio \
http://10.98.88.6/minio \
http://10.98.88.7/minio \
http://10.98.88.9/minio
@ubergesundheit
ubergesundheit / readme.md
Last active October 15, 2025 18:11
systemd traefik.service

systemd Service Unit for Traefik

Adapted from caddy systemd Service Unit

The provided file should work with systemd version 219 or later. It might work with earlier versions. The easiest way to check your systemd version is to run systemctl --version.

Instructions

We will assume the following:

@Darkflib
Darkflib / install-kube.sh
Last active May 27, 2018 19:59
kube - ubuntu
#!/bin/sh
#########
#
# Note: this does not provide a production ready cluster. It will produce a dev cluster with a single etcd daemon.
#
##########
apt-get -y update
apt-get -y upgrade
apt-get -y install apt-transport-https ca-certificates curl software-properties-common tmux vim