Skip to content

Instantly share code, notes, and snippets.

@aitchwhy
aitchwhy / karabiner.json
Created February 20, 2025 19:16
karabiner (Feb 2025)
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "KBD: BluetoothConverter、IKBC_C87、XD60: Swap Win/CMD and Alt/Opt",
"enabled": false,
"manipulators": [
{
copy all mac apps list
```
#!/bin/zsh
# Basic setup
setopt ERR_EXIT
TIMESTAMP=$(date +'%Y%m%d_%H%M%S')
OUTPUT_FILE="${HOME}/Desktop/mac-apps_${TIMESTAMP}.txt"
@aitchwhy
aitchwhy / Brewfile
Created January 19, 2025 00:45
configs
brew "act"
brew "actionlint"
brew "aider"
brew "angle-grinder"
brew "ast-grep"
brew "atuin"
brew "awscli-local"
brew "bat"
brew "biome"
brew "bitwarden-cli"
@aitchwhy
aitchwhy / mbp-brewfile.md
Last active January 15, 2025 16:57
Mac Apps (dotfiles + configs + GUI apps, pkgs, etc)

Run brew bundle dump --all --verbose --file=- | pbcopy

tap "coder/coder"
tap "homebrew/bundle"
tap "homebrew/services"
tap "koekeishiya/formulae"
tap "olets/tap"
tap "rfidresearchgroup/proxmark3"
tap "stripe/stripe-cli"
@aitchwhy
aitchwhy / filesystem.html
Created January 7, 2025 14:58
Apple File System Guide
<!DOCTYPE html> <html lang=en style><!--
Page saved with SingleFile
url: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html#//apple_ref/doc/uid/TP40010672-CH10-SW1
saved date: Tue Jan 07 2025 09:57:42 GMT-0500 (Eastern Standard Time)
--><meta charset=utf-8>
<title>macOS Library Directory Details</title>
<meta http-equiv=X-UA-Compatible content="IE=7">
<meta id=book-resource-type name=book-resource-type content=Guide>
<meta scheme=apple_ref id=identifier name=identifier content=//apple_ref/doc/uid/TP40010672>
<meta id=document-version name=document-version content=4.4.6>
@aitchwhy
aitchwhy / brews.txt
Created January 5, 2025 18:17
brew list + brew bundle list (Jan 5, 2025)
# Brew list
abseil
act
actionlint
angle-grinder
aom
aribb24
arm-none-eabi-gcc
ast-grep
@aitchwhy
aitchwhy / aive-systems.md
Last active December 3, 2024 04:57
AiveSystems

AiveSystems

Tagline: "Secure AI for Healthcare: Where Privacy Meets Intelligence" (More memorable and emphasizes both security and healthcare focus)

Elevator Pitch: Our enterprise platform, HealthGuardAI, revolutionizes healthcare communication by providing a HIPAA-compliant environment for managing and deploying AI solutions. We combine military-grade encryption with healthcare-specific LLM fine-tuning to enable secure, intelligent automation while ensuring zero data leakage. Our solution reduces administrative overhead by 60% while maintaining complete regulatory compliance and auditability.

Market Opportunity:

@aitchwhy
aitchwhy / mac-menubar-README.md
Last active November 10, 2024 00:43
macos menubar README (bartendar 5)

MacOS Menu Bar Organization

A clean, context-aware menu bar organization system using Bartender 5

Quick Reference

Category Icon Color Priority Display Rule
System Status 🔵 Blue Highest Always Visible
Security & Access 🛡️ 🔴 Red High Show on Click
@aitchwhy
aitchwhy / graph.py
Created February 17, 2019 18:47
AW Interview question
'''
You're playing a game against an opponent with the following rules.
- Goal : maximize the number of nodes in your region
- How to Play : You pick the starting node. At each turn, your region grows by 1 step.
Given an undirected graph of the game + your opponent's pick, pick the best node for you.
'''
from collections import deque
@aitchwhy
aitchwhy / moloco_1_strings.py
Last active February 12, 2019 18:25
Moloco SWE questions / solutions
'''
Using one of the languages from {Go, Python, Java, C++},
implement a function/method that is given two strings and returns whether one can be obtained by the other after removing exactly one character.
Specifically, given two strings x and y, return true if and only if (1) x can be obtained by removing one character from y and/or (2) if y can be obtained by removing one character from x.
Assume that both strings only contain English alphabets and that neither is an empty string.
Note that x and y can be quite long (each containing millions of characters).
'''