Skip to content

Instantly share code, notes, and snippets.

View jexjws's full-sized avatar
🧟
What's Happening??!

voyage200🍬 jexjws

🧟
What's Happening??!
View GitHub Profile
@OmerFarukOruc
OmerFarukOruc / claude.md
Last active March 18, 2026 15:07
AI Agent Workflow Orchestration Guidelines

AI Coding Agent Guidelines (claude.md)

These rules define how an AI coding agent should plan, execute, verify, communicate, and recover when working in a real codebase. Optimize for correctness, minimalism, and developer experience.


Operating Principles (Non-Negotiable)

  • Correctness over cleverness: Prefer boring, readable solutions that are easy to maintain.
  • Smallest change that works: Minimize blast radius; don't refactor adjacent code unless it meaningfully reduces risk or complexity.
@liviaerxin
liviaerxin / README.md
Last active February 23, 2026 17:34
FastAPI and Uvicorn Logging #python #fastapi #uvicorn #logging

FastAPI and Uvicorn Logging

When running FastAPI app, all the logs in console are from Uvicorn and they do not have timestamp and other useful information. As Uvicorn applies python logging module, we can override Uvicorn logging formatter by applying a new logging configuration.

Meanwhile, it's able to unify the your endpoints logging with the Uvicorn logging by configuring all of them in the config file log_conf.yaml.

Before overriding:

uvicorn main:app --reload
@mnpenner
mnpenner / color.ts
Last active April 22, 2024 02:41
RGB color hex to lightness
// based on https://stackoverflow.com/a/56678483/65387
type RGB = [r: number, g: number, b: number]
const UNK = 255 / 2
/**
* @param hex RGB hex string like "#CCCFDB"
* @returns RGB tuple in [0-255]
*/
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active March 16, 2026 08:27
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
@michaelbutler
michaelbutler / Steam_Proton_Exe.md
Last active February 10, 2026 20:52
How to run another .exe in an existing proton wine prefix

Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?

Simply run this command in a terminal:

cd /path/to/steam/steamapps/compatdata/20920/pfx

STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
    "$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
@baymaxium
baymaxium / content.md
Created October 20, 2017 01:46
今日头条与百度必有一战

原文:硅谷密探

硅谷Live / 实地探访 / 热点探秘 / 深度探讨

站在硅谷看国内的科技新贵。

作为一个科技行业的内容生产者,我们的同行并不喜欢今日头条,因为它让工程师凌驾于内容生产者之上。然而这么一款产品,却比那些浇筑了情怀的媒体更为吸引受众,而且差距随着时间的流逝越来越大。

转载粉丝日志 #在Ubuntu上安装PPTP VPN服务

1. 使用apt源服务来安装PPTPD服务

sudo apt-get update
sudo apt-get install pptpd

2. 安装完成之后编辑pptpd.conf配置文件

sudo vim /etc/pptpd.conf