Skip to content

Instantly share code, notes, and snippets.

@nmc-eco
nmc-eco / fold-answers-code-Claude
Last active September 6, 2026 13:07
Folds all answer sections & code on Claude.ai sessions by default
// ==UserScript==
// @name Claude.ai - Fold Answers by Default
// @version 1.0
// @description Folds/collapses all answer sections on Claude.ai sessions by default with click-to-expand. Includes code-block folding and a prompt navigation pane.
// @author Adapted from Perplexity-Fold v1.2
// @match https://claude.ai/*
// @grant GM_addStyle
// @run-at document-idle
// ==/UserScript==
@nmc-eco
nmc-eco / fold-answers-code-Perplexity
Last active September 6, 2026 08:17
Fold / unfold answers and code blocks on Perplexity AI (using Violent Monkey)
// ==UserScript==
// @name Perplexity - Fold Answers by Default
// @version 1.2
// @description Folds/collapses all answer sections on Perplexity AI sessions by default with click-to-expand.
// @author Gemini
// @match https://www.perplexity.ai/*
// @grant GM_addStyle
// @run-at document-idle
// ==/UserScript==
@nmc-eco
nmc-eco / Google-AI_Web-Toggle
Created August 27, 2026 17:30
Google Al/Web Toggle (Violent Monkey)
// ==UserScript==
// @name         Google All/Web Toggle (Ctrl/Cmd+I)
// @match        https://www.google.com/search*
// @grant        none
// @run-at       document-start
// ==/UserScript==
(() => {
  const STORAGE_KEY = 'google_web_mode';
  const TOGGLE_KEY = 'I';
  // Default is now Web mode (AI off). Only an explicit '0' means All mode.

How to convert markdown to PDF:

This post reviews several methods for converting a Markdown (.md) formatted file to PDF, from UNIX or Linux machines.

Using Pandoc:

$ pandoc How_I_got_svg-resizer_working_on_Mac_OSX.md -s -o test1.pdf
@nmc-eco
nmc-eco / win-home-gpedit.md
Created October 17, 2025 06:19 — forked from lelegard/win-home-gpedit.md
Enabling the Group Policy Editor on Windows 10 Home

Enabling the Group Policy Editor on Windows 10 Home

On Windows 10 Home edition, there is no Local Group Policy Editor (gpedit.msc) and no Local Security Policy Editor (secpol.msc). These tools are reserved to Professional editions of Windows.

It is however possible to install them on Windows 10 Home if you need them.

Open a PowerShell window as administrator and run the following command:

@nmc-eco
nmc-eco / cuda-wsl2-ubuntu.md
Last active September 1, 2024 13:56 — forked from Ayke/cuda-wsl2-ubuntu.md
Everything About CUDA in WSL2 Ubuntu

Prerequisites, i.e. the most important things

  1. Time of writing: Jan 18, 2023 (updated Sep 01, 2024). The following assume you're trying to install CUDA on WSL2 Ubuntu.

  2. Check support matrix first before you install any version of CUDA, because chances are the latest CUDA does not have cuDNN support yet, then you'll have to re-install older version if you found out later.

    https://docs.nvidia.com/deeplearning/cudnn/support-matrix/index.html#cudnn-cuda-hardware-versions

    At the time of writing, the latest cuDNN version is 8.7 and it supports CUDA 11.8.

  3. Windows 10 must be build 20145 or later.

@nmc-eco
nmc-eco / audioplayer.py
Created March 1, 2020 11:24 — forked from deeplycloudy/audioplayer.py
Simple Python audio player with matplotlib and pyaudio
""" Play an audio file with pyaudio while concurrently showing audio playhead
on a matplotlib plot of the audio time series and spectrogram.
Adjust duration and filename in the script below to reflect your audio file.
v. 0.1
21 Mar 2012
Eric Bruning
"""