Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
👋

Adam Kaminski thimslugga

👋
View GitHub Profile
# -*- mode: justfile -*-
# ==============================================================================
# Settings - Control Just's behavior
# ==============================================================================
# Set the shell used to execute recipes. Array form is recommended.
# -u: Treat unset variables as an error.
# -c: Read commands from string.
set shell := ["bash", "-uc"]
@oca159
oca159 / settings.json
Created April 10, 2025 20:07
Zed settings.json
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette
{
"edit_predictions": {
@riaf
riaf / README.md
Created April 2, 2025 05:03
Script to manually apply your shell PATH to macOS GUI apps. Fixes issues finding Homebrew/custom tools via launchd & launchctl setenv.

Sync Your Shell PATH to macOS GUI Apps Manually with This Script

The Problem

Are you struggling with macOS GUI applications (like IDEs, text editors, or other tools launched from Finder or Spotlight) not finding command-line tools installed via Homebrew (/opt/homebrew/bin), MacPorts, or in custom directories like ~/bin or /usr/local/bin? This happens because GUI applications on macOS do not automatically inherit the PATH environment variable set by your login shell configuration files (like .zshenv, .zprofile, .bash_profile, or .bashrc). Your carefully configured shell PATH works in the Terminal, but GUI apps remain unaware of it.

The Solution

This Bash script provides a simple, manual way to apply the PATH from your current Terminal session to the macOS GUI environment. Instead of complex automatic synchronization, you run this script whenever you want to update the PATH that GUI applications will use.

@mkbabb
mkbabb / 01-instructions.md
Last active May 8, 2025 16:06
DNS Resolution Test Script

I'll complete the text with the process management information:

This script performs DNS TXT record lookups once per minute for 24 hours straight. Each lookup uses a unique random name in the format 'delver-xxxxxxxx'.

Requirements

  • Python 3.x
  • Your computer must stay awake the entire time (disable sleep/hibernate)
  • Internet connection for the full 24 hours

Setting Up MCP Servers on Windows

A step-by-step guide to setting up Model Context Protocol (MCP) servers for Claude Desktop on Windows.

Prerequisites

  1. Install Node.js (v18.x or later)
    • Download from: https://nodejs.org/
    • Verify installation by opening Command Prompt (CMD) and running:
      node --version
      npm --version
@thisismatu
thisismatu / html.json
Last active November 12, 2024 12:14
.config/zed/snippets/html.json
{
"HTML document": {
"prefix": "html",
"body": ["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\t<title>Document</title>\n</head>\n<body>\n$1\n</body>\n</html>", "$0"],
"description": "HTML document"
}
}
@toriato
toriato / !README.md
Last active March 4, 2025 10:27
Podman quadlet example

Podman quadlet example

@usrbinkat
usrbinkat / README.md
Last active May 17, 2025 13:15
Ollama + Open-Webui + Nvidia/CUDA + Docker + docker-compose

image

UPDATE: This is tested and working on both Linux and Windows 11 used for LlaMa & DeepSeek

Here's a sample README.md file written by Llama3.2 using this docker-compose.yaml file that explains the purpose and usage of the Docker Compose configuration:

ollama-portal

A multi-container Docker application for serving OLLAMA API.

@ziehmon
ziehmon / Time lapse G-code
Last active January 14, 2025 05:58
Bambu Lab A1 Timelapse G-Code
;===================== date: 20240606 =====================
G92 E0
G17
G2 Z{layer_z + 0.4} I0.86 J0.86 P1 F20000 ; spiral lift a little
G1 Z{max_layer_z + 0.4}
{if !spiral_mode && print_sequence != "by object"}
; don't support timelapse gcode in spiral_mode and by object sequence for I3 structure printer
M622.1 S1 ; for prev firware, default turned on
M1002 judge_flag timelapse_record_flag
M622 J1
@frstycodes
frstycodes / settings.json
Last active January 7, 2025 04:00
VS Code settings for Miniamal Look
/* Make sure to add following extensions:
****************************************
* 1. APC Customization UI++
* 2. Symbols Icon Theme
* 3. AbelFubu theme -> AbelFubu Contrast variant *Note: theme is only for syntax highlighting, ui colors are included in this file.
* 4. Make sure to change a few settings like font, font size to your liking.
****************************************
*/
{