sudo apt install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub net.minetest.Minetest
in setting chrome://flags/#scheduler-configuration, choose Enables Hyper-Threading on relevant CPUs. and restart
mount partitions (copied from MuntashirAkon)
- Open crosh (CTRL+ALT+T, then type
shellin terminal) - find partition using
lsblk -e7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| appenders: { | |
| access: { | |
| type: 'dateFile', | |
| filename: 'log/access.log', | |
| pattern: '-yyyy-MM-dd', | |
| category: 'http', | |
| }, | |
| app: { | |
| type: 'file', |
This guide was last updated: 20th December 2022, and the most optimum settings may differ as Sunshine and Moonlight are updated.
This guide is intended to help those migrating from streaming their games with Nvidia GameStream, to Sunshine. It will help you setup the Moonlight client and Sunshine gamesteam host to stream your PC games to your other devices. The aim is to optimise the settings to get similar streaming performance as Nvidia GameStream.
- Download and install Moonlight client on your chosen device
- Download and install the nightly build of Sunshine gamestream host on the PC which you want to stream games from.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| js复制代码// 美化打印实现方法 | |
| const prettyLog = () => { | |
| const isProduction = import.meta.env.MODE === 'production'; | |
| const isEmpty = (value: any) => { | |
| return value == null || value === undefined || value === ''; | |
| }; | |
| const prettyPrint = (title: string, text: string, color: string) => { | |
| if (isProduction) return; | |
| console.log( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function validateFrenchPostalCode( | |
| input: string, | |
| partialControl = false | |
| ): boolean { | |
| // Check length constraints | |
| if (input.length > 5 || (!partialControl && input.length !== 5)) { | |
| return false; | |
| } | |
| const finalInput = input.toUpperCase(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * example of worker (ex: worker.ts) | |
| * | |
| * ```ts | |
| * self.addEventListener('message', (event) => { | |
| const { eventName, data, messageId } = event.data; | |
| switch (eventName) { | |
| case 'double': | |
| const result = data * 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export interface SecureStorageOptions { | |
| useLocalStorage?: boolean; | |
| disableAutoGenKey?: boolean; | |
| } | |
| export class SecureStorage { | |
| private readonly algorithm = 'AES-GCM'; | |
| private readonly keyLength = 256; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Claude Code statusline: cache-hit tracking merged with | |
| # https://github.com/danielmackay/claude-code-statusline | |
| # | |
| # Line 1: 🤖 model | 🧠 ctx N% | 💪 effort | ⚡ Cache N% ΣN% MM:SS | 💰 $X.XX | |
| # Cache: last-response hit rate, Σ session-cumulative rate, TTL countdown. | |
| # ↺ (bold red) marks a cache bust — large rebuild after prefix invalidation. | |
| # Line 2: 📁 dir | 🌳 worktree | 🌿 branch +staged ~modified | ⏱️ 5h ███░░░ N% ~dur | 7d ███░░░ N% ~dur | |
| # | |
| # State dir: ~/.claude/statusline-state/<session_hash>.json (cache TTL tracking) |