Skip to content

Instantly share code, notes, and snippets.

View zhiyue's full-sized avatar
🌻
just do it.

zhiyue zhiyue

🌻
just do it.
View GitHub Profile
@entrepeneur4lyf
entrepeneur4lyf / windsurf-meta-workflow-prompt
Created March 15, 2025 23:02
Windsurf Memory Bank & Meta Workflow Promt
# Windsurf Memory System: Advanced Coding Assistant
I am Windsurf, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This drives me to maintain perfect documentation through the Windsurf Memory System. After each reset, I rely ENTIRELY on my Memory Bank to understand projects and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.
## Core Identity and Operating Principles
1. **Memory-Driven Architecture**: After each reset, you MUST read ALL memory bank files to regain context.
2. **Documentation Excellence**: Maintain impeccable records as your future self depends entirely on them.
3. **Rigorous Performance Standards**: Never compromise on quality standards or evaluation criteria.
4. **Structured Problem-Solving**: Follow defined workflows and methodologies for all tasks.
@lawndoc
lawndoc / New-DevDrive.ps1
Last active April 17, 2025 13:39
Scripted Dev Drive Setup
<#
.SYNOPSIS
Script to create a new Dev Drive
.DESCRIPTION
This script will create a new Dev Drive on a Windows system. By default, it will create a 100GB dynamically sized VHDX file located in C:\ProgramData\Custom Dev Drive\drive.vhdx that will be mounted to the V: letter drive. For more information about Dev Drives, please see https://learn.microsoft.com/en-us/windows/dev-drive/
.EXAMPLE
.\New-DevDrive.ps1
@WillianTomaz
WillianTomaz / wsl2-with-1password-info.md
Last active April 14, 2025 23:08
Instructions for using 1Password SSH Agent with WSL2 (on Windows 11)

LinkedIn

Saturday, April 22, 2023

How to Use 1Password SSH Agent with WSL2 (on Windows 11)

  • Note:

    • Always look for the official documentation, this tutorial may not suit you as there are new updates to the installation process.
    • References are at the end of the document.
  • Was used:

@noobnooc
noobnooc / cloudflare-worker-proxy.js
Last active April 15, 2025 22:43
cloudflare-worker-proxy
// Website you intended to retrieve for users.
const upstream = 'api.openai.com'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = upstream
// Countries and regions where you wish to suspend your service.
@nikvdp
nikvdp / atuin.zsh
Created August 18, 2022 14:44
Use atuin to power ctrl-r history search but with fzf. Also disable atuin's up arrow bindings and use ctrl-e to bring up atuin's own tui
# make sure you have `tac` [1] (if on on macOS) and `atuin` [2] installed, then drop the below in your ~/.zshrc
#
# [1]: https://unix.stackexchange.com/questions/114041/how-can-i-get-the-tac-command-on-os-x
# [2]: https://github.com/ellie/atuin
atuin-setup() {
! hash atuin && return
bindkey '^E' _atuin_search_widget
export ATUIN_NOBIND="true"
{
echo "Loaded kernel extensions:";
kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}';
echo $'\n'"Loaded user agents:";
launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}';
echo $'\n'"Inserted libraries:";
launchctl getenv DYLD_INSERT_LIBRARIES;
echo $'\n'"User cron tasks:";
crontab -l;
echo $'\n'"System launchd configuration:";
@abersheeran
abersheeran / proxy.worker.js
Last active February 26, 2025 13:28
A proxy download cloudflare worker
addEventListener("fetch", (event) => {
event.respondWith(
handleRequest(event.request).catch(
(err) => new Response(err.stack, { status: 500 })
)
);
});
async function handleRequest(request) {
const url = getUrl(request)
@Lulalaby
Lulalaby / xiaoxiao_tts.py
Created December 3, 2021 00:48 — forked from Dobby233Liu/xiaoxiao_tts.py
superb edit of an old parameterless script
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""Edge Microsoft TTS for Python."""
import sys
from ws4py.client.threadedclient import WebSocketClient
import binascii
import argparse
import json
import requests
import re
@a1994sc
a1994sc / cloudflared.yaml
Created November 9, 2021 03:13
cloudflared - k3s
---
apiVersion: apps/v1
#kind: Deployment
kind: DaemonSet
metadata:
name: cloudflared
namespace: ingress
labels:
group: cloudflare
spec:
@version-control
version-control / Enable UDP RDP Windows
Last active February 2, 2023 13:32
Enable UDP RDP Windows
Admin Priv
VM / Remote Machine
Enable-NetFirewallRule -DisplayName "Remote Desktop - User Mode (TCP-In)"
Enable-NetFirewallRule -DisplayName "Remote Desktop - User Mode (UDP-In)"
Laptop - Local Remote User
Set-ItemProperty 'HKLM:/Software/Policies/Microsoft/Windows NT/Terminal Services/Client' 'fClientDisableUDP' 0