Skip to content

Instantly share code, notes, and snippets.

View ngalioth's full-sized avatar
🎯
Focusing

Alioth ngalioth

🎯
Focusing
View GitHub Profile
@ngalioth
ngalioth / profile.ps1
Last active April 22, 2026 00:33
my pwsh profile with lazy init
# proxy
function Set-Proxy {
param([string]$ProxyUri = 'http://localhost:7890')
[System.Net.WebRequest]::DefaultWebProxy = [System.Net.WebProxy]::new($ProxyUri)
$ENV:HTTP_PROXY = $ProxyUri
$ENV:HTTPS_PROXY = $ProxyUri
$ENV:http_proxy = $ProxyUri
$ENV:https_proxy = $ProxyUri
@ngalioth
ngalioth / settings.json
Last active April 13, 2026 11:20
windows_terminal_theme_config.json
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions": [],
"copyFormatting": "none",
"copyOnSelect": false,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"keybindings": [
{
"id": "Terminal.CopyToClipboard",
@ngalioth
ngalioth / .wslconfig
Created March 30, 2024 08:17
wsl2 config bak
# 以下设置默认为更改值,需要保持默认注释掉配置项即可
# Settings apply across all Linux distros running on WSL 2
[wsl2]
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB
memory=4GB
# Sets the VM to use two virtual processors
processors=2