Skip to content

Instantly share code, notes, and snippets.

View douglarek's full-sized avatar
💭
Acting cool, do not disturb

douglarek

💭
Acting cool, do not disturb
View GitHub Profile
@douglarek
douglarek / von_Neumann_1955_bilingual.md
Last active September 23, 2026 01:44
John von Neumann: Can We Survive Technology? (1955) [Bilingual EN-ZH, v1] | Chinese translation: gemini-3.8-flash; polished: gpt-6-sol | Source: https://sseh.uchicago.edu/doc/von_Neumann_1955.pdf

我们能从技术中幸存吗? / CAN WE SURVIVE TECHNOLOGY?

约翰·冯·诺伊曼(John von Neumann) / by John von Neumann
美国原子能委员会委员 / Member, Atomic Energy Commission
原载于《财富》(Fortune)杂志,1955年6月号;收录于《约翰·冯·诺伊曼文集》(John von Neumann Collected Works, ed. A. Taub, Vol. VI, pp. 504–519 / The Neumann Compendium, pp. 658–673)。

中文初译:gemini-3.8-flash;v1 中文润色与校订:gpt-6-sol。


@douglarek
douglarek / sing-box-rpm-verification.md
Created September 20, 2026 07:09
sing-box RPM Packaging Fix Verification Report (terrapkg/packages#17455, PR #17475)

sing-box RPM Packaging Fix Verification Report

  • Target Issue: terrapkg/packages#17455
  • Pull Request: terrapkg/packages#17475
  • Branch: douglarek:fix-sing-box -> terrapkg/packages:frawhide
  • Verification Environment: Clean fedora:rawhide Container (docker.io/library/fedora:rawhide)
  • Package Version: sing-box-1.14.1-3.fc46

@douglarek
douglarek / config.fish
Created December 21, 2025 12:42 — forked from TallonRain/config.fish
Set up Fish Shell to use gpg-agent as the SSH agent for Yubikeys and other smart cards on macOS
# Add these contents to ~/.config/fish/config.fish
# If using Brew, config.fish is located in /usr/local/Cellar/fish/[version]/etc/fish/
# Generally recommend using the installer from https://fishshell.com instead of brew
# to avoid version updates overwriting the config file
# Start or re-use a gpg-agent.
gpgconf --launch gpg-agent
# Ensure that GPG Agent is used as the SSH agent
set -e SSH_AUTH_SOCK
@douglarek
douglarek / 00-my.fish
Last active November 23, 2025 04:37
save it to ~/.config/fish/conf.d/00-my.fish
# https://www.reddit.com/r/fishshell/comments/19bf195/where_do_you_set_your_environment_variables/
# tide configure --auto --style=Lean --prompt_colors='True color' --show_time=No --lean_prompt_height='One line' --prompt_spacing=Compact --icons='Few icons' --transient=Yes
# global env
set fish_greeting
set -gx LC_ALL en_US.UTF-8
set -gx LANG en_US.UTF-8
set -gx LANGUAGE en_US.UTF-8
set -gx GPG_TTY $TTY
set -gx TMOUT 0
@douglarek
douglarek / download_fusion.sh
Created October 23, 2025 08:25 — forked from jetfir3/download_fusion.sh
Download VMware Fusion Pro Without a Broadcom Account
#!/usr/bin/env bash
# Download VMware Fusion for macOS without a Broadcom account.
#
# This script allows you to download various versions of VMware Fusion
# from Broadcom's Cloudflare CDN (versions 8.0.0 to 13.6.3)
# or from the archive.org VMware Workstation archive (versions 8.x.x+).
#
# Options:
# -k: Keep the downloaded file compressed (Cloudflare only; ignored for archive.org).
@douglarek
douglarek / gentoo-overlay-CLAUDE.md
Last active July 19, 2025 15:12
This md used by agents should theoretically be applicable to many current AI agents' clients, including but not limited to: sst/opencode, gemini-cli, claude-code, GitHub Copilot, Codex, etc. You only need to rename gentoo-overlay-CLAUDE.md to a file recognizable by the client.

Gentoo Overlay Development Guidelines

Global Rules

  1. Commit Co-authorship: After every successful git commit, automatically run:
    git commit --amend --no-edit --trailer="Co-authored-by: [AI_ASSISTANT_NAME] <noreply@[AI_PLATFORM]>"
    
    • For opencode: Co-authored-by: opencode <noreply@opencode.ai>
  • For Gemini CLI: Co-authored-by: gemini
@douglarek
douglarek / copilot-instructions.md
Last active June 23, 2025 02:57
Place it in the directory .github/copilot-instructions.md, use VSCode GitHub Copilot to automate ebuild operations (upgrades, etc.). If using Claude code, you can rename this file to CLAUDE.md and place it in the root directory. Experimental! Use claude-sonnet-4 for better results.

GitHub Copilot Instructions for Gentoo Overlay

Project Context

This is a Gentoo overlay repository called "gentoo-zh" containing custom ebuilds for various packages not available in the official Gentoo portage tree.

Ebuild Guidelines

General Principles

  • Follow Gentoo's ebuild standards and best practices
  • Use EAPI=8 for all new ebuilds unless specific compatibility requirements exist
@douglarek
douglarek / the-gentle-singularity.md
Last active June 11, 2025 12:28
https://blog.samaltman.com/the-gentle-singularity Sam Altman 萨姆·奥尔特曼 《温柔的奇点》发布于 2025 年 6 月 11 日上午 5:12 使用 deepseek-v3 双语翻译

The Gentle Singularity 温柔的奇点

We are past the event horizon[^1]; the takeoff has started. Humanity is close to building digital superintelligence, and at least so far it’s much less weird than it seems like it should be. 我们已经越过了事件视界;起飞已经开始。人类即将建造出数字超级智能,至少到目前为止,它远比我们想象的要平淡无奇。

Robots are not yet walking the streets, nor are most of us talking to AI all day. People still die of disease, we still can’t easily go to space, and there is a lot about the universe we don’t understand. 机器人尚未走上街头,大多数人也没有整天与 AI 对话。人们仍会因病去世,我们仍无法轻松进入太空,宇宙中还有许多我们无法理解的事物。

And yet, we have recently built systems that are smarter than people in many ways, and are able to significantly amplify the output of people using them. The least-likely part of the work is behind us; the scientific insights that got us to systems like GPT-4 and o3 were hard-won, but will take us very far.

@douglarek
douglarek / Gentoo 使用系列之精简linux-firmware.md
Last active December 14, 2024 04:06
Gentoo 使用系列之三:精简 linux-firmware

Important

假设你定制内核(或 gentoo-kernel 通用编译)使用的是模块化而不是固件编译进内核。

本文后续将在 gentoo wiki上维护:https://wiki.gentoo.org/wiki/User:Douglarek/Streamlining_linux-firmware

书接上文[^1],相对于定制内核来说,精简 linux-firmware[^2] 还是简单很多却是收益最大的。 在 Gentoo 中,如果不把 linux-firmware 编译进内核(有许可问题),那么运行系统除了 Linux 内核之外还是需要安装这个包的, 但是这个包包含的是 Linux 目前的所有私有固件相关的二进制[^3],大小达 1.2G 之巨,但是一个桌面系统运行起来需要的也不过其中 3、5 个文件。 下面让我们来精简它。

@douglarek
douglarek / chromium-irc-chats.txt
Created November 18, 2024 08:04
这个是在 gentoo IRC 群维护者回复 Chromium 为什么会给 ~arch 用户默认升级到 beta
[2024年11月17日星期日] [GMT+8 19:51:10] <douglarek> Why does the recent update of the chromium package include beta and dev without setting them as masked? Do ~amd users have to use dev by default? https://packages.gentoo.org/packages/www-client/chromium
[2024年11月17日星期日] [GMT+8 19:52:02] <douglarek> s/dev by default/beta by default
[2024年11月17日星期日] [GMT+8 20:03:25] <sam_> ~amd64 users have always had beta exposed to them
[2024年11月17日星期日] [GMT+8 20:03:32] <sam_> dev is unkeyworded (so functionally the same as masked)
[2024年11月17日星期日] [GMT+8 20:03:33] <sam_> cc kangie
[2024年11月17日星期日] [GMT+8 20:03:43] <sam_> i.e. nothing has functionally changed
[2024年11月18日星期一] [GMT+8 00:49:40] <Kangie> douglarek_: what sam_ said. You can select the 0/stable subslot if you don't want beta
[2024年11月18日星期一] [GMT+8 10:10:29] <douglarek_> Kangie: I know I have a choice, I just don't understand why ~amd users are expected to upgrade to beta by default.
[2024年11月18日星期一] [GMT+8 10:11:13] <Kangie> because you're EXPLICITLY OPTING INTO IT
[2