This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://learn.microsoft.com/en-us/onedrive/developer/code-snippets/quickxorhash?view=odsp-graph-online | |
| # Usage: python C:\tools\quickxor.py -f file --base64 | |
| # This will present the hash of the file as you would see it in the OneDrive databases. | |
| import argparse | |
| import base64 | |
| MASK64 = 0xFFFFFFFFFFFFFFFF | |
| class QuickXorHash: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Source - https://stackoverflow.com/a/68879891 | |
| # Posted by CarloDePieri, modified by community. See post 'Timeline' for change history | |
| # Retrieved 2026-07-19, License - CC BY-SA 4.0 | |
| echo -e "\nRunning prepare-commit-msg hook..." | |
| echo "First parameter: $1" | |
| echo "Second parameter: $2" | |
| echo "Third parameter: $3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "better-todo-tree.general.tags": [ | |
| "BUG", | |
| "HACK", | |
| "FIXME", | |
| "TODO", | |
| "XXX", | |
| "[ ]", | |
| "[x]", | |
| "noqa" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| function gitmd() { | |
| local ref="${1:-HEAD}" | |
| local outfile="$2" | |
| # Colors (terminal only) | |
| local BOLD="\033[1m" | |
| local RESET="\033[0m" | |
| local CYAN="\033[36m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script checks the status of mutation testing at a configurable interval (default: 90 seconds). | |
| interval_seconds="${1:-90}" | |
| if ! [[ "$interval_seconds" =~ ^[0-9]+$ ]] || [[ "$interval_seconds" -le 0 ]]; then | |
| echo "Usage: $0 [interval_seconds]" | |
| exit 1 | |
| fi | |
| prev_complete="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://lazyadmin.nl/powershell/powershell-profile/ | |
| # Set Default location | |
| Set-Location C:\ | |
| function Install-Python-Dependencies { | |
| # https://www.w3tutorials.net/blog/utf8-script-in-powershell-outputs-incorrect-characters/ | |
| # Set output encoding to UTF-8 | |
| [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 | |
| # Set input encoding to UTF-8 (for reading user input with non-ASCII chars) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Step 1 - List all valid distributions that can be installed using WSL. | |
| wsl --list --online | |
| # NAME FRIENDLY NAME | |
| # AlmaLinux-8 AlmaLinux OS 8 | |
| # AlmaLinux-9 AlmaLinux OS 9 | |
| # AlmaLinux-Kitten-10 AlmaLinux OS Kitten 10 | |
| # AlmaLinux-10 AlmaLinux OS 10 | |
| # Debian Debian GNU/Linux | |
| # FedoraLinux-43 Fedora Linux 43 | |
| # FedoraLinux-42 Fedora Linux 42 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://learn.microsoft.com/en-us/answers/questions/5682431/how-to-make-the-previewer-work-again | |
| Get-ChildItem . -Recurse | Unblock-File |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| // Note that the Halton bases must consist of coprime integers. | |
| // Learn more about the Halton sequence: https://en.wikipedia.org/wiki/Halton_sequence | |
| // Learn more about low discrepancy sequences: https://en.wikipedia.org/wiki/Low-discrepancy_sequence | |
| // Learn more about coprime numbers: https://en.wikipedia.org/wiki/Coprime_integers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
NewerOlder