Skip to content

Instantly share code, notes, and snippets.

View kfchou's full-sized avatar

Kenny Chou kfchou

View GitHub Profile
name create-adr
description Use when converting design documents into architectural decision records (ADRs), after completing a feature, or when a significant architectural choice was made and needs to be recorded or updated

Create ADR from Design Document

Overview

Extract architectural decisions from a design document and record them as ADRs. Focus on WHY decisions were made (context, rationale, trade-offs) — not HOW (code, steps, tests).

@kfchou
kfchou / setup.ps1
Last active August 28, 2024 00:08
New Windows Machine Setup
# PowerShell Script to Install Chocolatey and Common Packages
# Ensure running as Administrator
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
{
Write-Warning "You need to have Administrator rights to run this script."
exit
}
# Set execution policy to allow the script to run
@kfchou
kfchou / dev-get-started.ps1
Last active October 23, 2023 19:36
Minimal powershell script for installing apps needed for python development
# Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
refreshenv
# Install dev software
choco install -y git --package-parameters="'/GitAndUnixToolsOnPath /WindowsTerminal'"
@kfchou
kfchou / reset_audio_controller.md
Last active June 15, 2023 14:07
Fix Audio Rendering Error in Windows 10
# Disable sound controller
Disable-PnpDevice -InstanceId "your_sound_controller_instance_id" -Confirm:$false

# Wait for a few seconds (adjust the time if needed)
Start-Sleep -Seconds 5

# Enable sound controller
Enable-PnpDevice -InstanceId "your_sound_controller_instance_id" -Confirm:$false
@kfchou
kfchou / jneurosci_citation_format.xml
Last active October 25, 2017 21:53
Mendelay Citations
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" page-range-format="expanded" default-locale="en-US">
<info>
<title>The Journal of Neuroscience (No URL)</title>
<id>http://csl.mendeley.com/styles/styles/the-journal-of-neuroscience-no-url</id>
<link href="http://www.zotero.org/styles/the-journal-of-neuroscience" rel="self"/>
<link href="http://www.zotero.org/styles/harvard-cite-them-right" rel="template"/>
<link href="http://www.jneurosci.org/site/misc/ifa_organization.xhtml#References" rel="documentation"/>
<author>
<name>Ullrich Bartsch</name>