Skip to content

Instantly share code, notes, and snippets.

View peterkc's full-sized avatar

Peter Chanthamynavong peterkc

View GitHub Profile
@mtibben
mtibben / bug-report.md
Last active April 30, 2018 20:52
Apple bug report 35065812: macOS High Sierra curl does not use certs in the keychain

In High Sierra, curl has switched from linking against SecureTransport, to use LibreSSL. However with this change, it seems that curl no longer recognises trusted certificates stored in the keychain.

# note that safari does not trust the site (expected)
$ open -a Safari https://self-signed.badssl.com/

# note that curl does not trust the site (expected)
$ curl https://self-signed.badssl.com
curl: (60) SSL certificate problem: self signed certificate

# trust the self-signed certificate by adding it to the keychain
@jbfriedrich
jbfriedrich / nsmb.conf
Last active November 3, 2025 18:57
macOS 11.2 NSMB configuration
# /etc/nsmb.conf - macOS 11.3 - 2021-04-29
#------------------------------------------------------------------------------
# SMB configuration for macOS 11.3 <-> Synology
#------------------------------------------------------------------------------
# Additional information:
# -----------------------
# https://support.apple.com/de-de/HT211927
# https://support.apple.com/en-us/HT208209
# https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
# https://photographylife.com/afp-vs-nfs-vs-smb-performance
#!/bin/bash
set -u
##############################################################################
# DEPRECATION NOTE
#
# This script is outdated. Use it at your own risk.
# First, it has a bug related to the option -o (basically, it does nothing).
# Second, there is a new github repo with a new version, with no known bugs
# and with improved features:
@mikestecker
mikestecker / optimising-unifi-performance.md
Last active September 9, 2025 09:52
optimising-unifi-performance

optimising-unifi-performance

NOTE: Content below is written by Adrian Mace. Click here for an updated version.

Below are the key settings that I apply on any unifi installation for optimal performance.

Settings

Settings > Site

  • Ensure Enable Advanced Features is enabled
    This allows you to follow along with the guide in it's entirety.
@XInTheDark
XInTheDark / claude_dr_prompt.md
Last active October 8, 2025 21:57
Custom Deep Research prompt for Claude

Notes

  • MCP servers enabled: Brave Search, Fetch, Puppeteer (optional).
  • Recommended way to use it: create a project "Deep Research" and add the prompt as custom instructions.
  • Recommended model: Sonnet 4 with Thinking. Sonnet vs Opus does not make much difference from experience.
  • (As of the time of writing,) Do not enable Claude's built-in web search feature!
    • I've compared the two versions and the quality difference is significant.
    • It seems that the built-in system prompt that gets enabled, is terrible for deep research. A few examples: It explicitly limits Claude to only running one or a few searches in most cases; it contains numerous instructions regarding never quoting directly,
#!/usr/bin/env bun
"use strict";
const fs = require("fs");
const { execSync } = require("child_process");
const path = require("path");
// ANSI color constants
const c = {
cy: '\033[36m', // cyan