Skip to content

Instantly share code, notes, and snippets.

@dvessel
dvessel / 06476883eab5710f7a0bede57a90cc050a86f10f.asset--AssetData--metadata.json
Last active November 4, 2024 09:43
Metadata for AppleIntelligence (Sequoia 15.1)
{
"model_type": "mlm",
"tamm_id": "afm-text-30b-instruct-v5-astc-6x6-20240709",
"checkpoint": "model.mlm",
"tokenizer": "afm-text-instruct-multilingual-100k-20240701",
"original_checkpoint": "bolttorchmodel://x5bhyxgsn7/440",
"export_date": "07/22/2024-11:36:33",
"mlm_config": {
"model_name": "ajax",
"backend": "metal",
Begin by enclosing all thoughts within <thinking> tags, exploring multiple angles and approaches.
Break down the solution into clear steps within <step> tags. Start with a 20-step budget, requesting more for complex problems if needed.
Use <count> tags after each step to show the remaining budget. Stop when reaching 0.
Continuously adjust your reasoning based on intermediate results and reflections, adapting your strategy as you progress.
Regularly evaluate progress using <reflection> tags. Be critical and honest about your reasoning process.
Assign a quality score between 0.0 and 1.0 using <reward> tags after each reflection. Use this to guide your approach:
0.8+: Continue current approach
0.5-0.7: Consider minor adjustments
Below 0.5: Seriously consider backtracking and trying a different approach
@fengyuentau
fengyuentau / insightface_eval.md
Created June 9, 2020 12:14
Guide to prepare data for the evaluation to the awesome face recognition algorithm from https://github.com/deepinsight/insightface.

Guide for insightface evaluation

The insightface face recognition algorithm is awesome, though there is no details about neither how to perform the evaluation on the algorithm nor how to prepare data for evaluation/training. Of course, one can find some details from issues, but it will take a lot of time to do that. Here, all the related details are collected for the sake of saving your time.

Preparing data

File you need for evaluation:

  • your_dataset.bin

NOTE: If you just want to perform the evaluation with the LFW dataset, just head to the Dataset-zoo from insightface to download on of the provided dataset, which contains lfw.bin for evaluation.

In case you want to create your own .bin file from your own dataset, following section is an example creating lfw.bin from LFW.

@bryant988
bryant988 / zillow.js
Last active October 22, 2025 03:18
Zillow Image Downloader
/**
* NOTE: this specifically works if the house is for sale since it renders differently.
* This will download the highest resolution available per image.
*/
/**
* STEP 1: Make sure to *SCROLL* through all images so they appear on DOM.
* No need to click any images.
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution.md
Last active October 29, 2025 11:37
Fix DNS resolution in WSL2

Permanent WSL DNS Fix (WSL 2.2.1+)

If you're encountering ping github.com failing inside WSL with a Temporary failure in name resolution, you're not alone — this has been a long-standing issue, especially when using VPNs or corporate networks.

This issue is now fixed robustly with DNS tunneling, which preserves dynamic DNS behavior and avoids limitations like WSL’s former hard cap of 3 DNS servers in /etc/resolv.conf.

DNS tunneling is enabled by default in WSL version 2.2.1 and later, meaning that if you're still seeing DNS resolution issues, the first and most effective fix is simply to upgrade WSL. Upgrading WSL updates the WSL platform itself, but does not affect your installed Linux distributions, apps, or files.

To upgrade WSL, follow these steps,

@BoGnY
BoGnY / README.md
Last active October 19, 2025 07:19
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)

Requirements

  • Install GPG4Win: this software is a bundle with latest version of GnuPG v2, Kleopatra v3 certificate manager, GNU Privacy Assistant (GPA) v0.9 which is a GUI that uses GTK+, GpgOL and GpgEX that are respectively an extension for MS Outlook and an extension for Windows Explorer shell
  • Install Git for Windows: so you can have a *nix based shell, this software is a bundle with latest version of Git which use MINGW environment, a Git bash shell, a Git GUI and an extension for Windows Explorer shell (Make sure your local version of Git is at least 2.0, otherwise Git don't have support for automatically sign your commits)
  • Verify