create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!/usr/bin/env python3 | |
| # | |
| # Example Usage | |
| # ------------------------------------------------------------------------------- | |
| # modify dates from 30-10-2024 to 2024-10-30 | |
| # find-replace-in-files25.py -g "*.html" "(\d\d)-(\d\d)-(\d\d\d\d)" "\3-\2-\1" | |
| # ------------------------------------------------------------------------------- | |
| import argparse |
| #!/usr/bin/env python3 | |
| import codecs | |
| import fnmatch | |
| from pathlib import Path | |
| from urllib.parse import urlparse | |
| import lxml.html | |
| import requests | |
| import urllib3 | |
| from lxml.etree import ElementTree |
| { | |
| "ad": { | |
| "flag": "🇦🇩", | |
| "name": "Andorra", | |
| "dialCode": "+376" | |
| }, | |
| "ae": { | |
| "flag": "🇦🇪", | |
| "name": "United Arab Emirates", | |
| "dialCode": "+971" |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!/usr/bin/osascript -l JavaScript | |
| // THE SHEBANG IS ONLY NEEDED IF YOU RUN IT AS A SHELL SCRIPT | |
| // ^^^ REMOVE THE SHEBANG LINE ABOVE IF RUNNING FROM SCRIPT EDITOR/AUTOMATOR!!!!! ^^^ | |
| // 1. In MacOS Spotlight type 'Script Editor' and paste the code below | |
| // 2. Click the top-left dropdown which says 'AppleScript' and select 'JavaScript' | |
| // 3. Under menu File pick Export | |
| // 4. In the Export dialog select File Format = Application | |
| // 5. Save the app in /Applications |
| function formatCSVValue(value) { | |
| value = String(value); | |
| // If the value contains a comma, newline, or quote, it needs to be quoted | |
| if (/[,\"\n]/.test(value)) { | |
| // Escape quotes by doubling them | |
| value = value.replace(/"/g, '""'); | |
| // Wrap the value in quotes | |
| value = `"${value}"`; | |
| } |
| #!/usr/bin/env bash | |
| find . -iname "*.m3u*" -exec yt-dlp --enable-file-urls file://$PWD/{} \; | |
| # same as above with subshell | |
| find * -iname '*.m3u*' -print -exec sh -c 'yt-dlp --enable-file-urls "file://$PWD/${1}"' _ {} \; |
| #!/usr/bin/env python3 | |
| import torch | |
| def is_metal_enabled(): | |
| """Checks if Metal acceleration is enabled for PyTorch.""" | |
| # Check if MPS backend is available on the system | |
| if not torch.backends.mps.is_available(): | |
| print("MPS backend is not available on this system.") | |
| return False |
| package com.legbehindneck; | |
| import java.io.IOException; | |
| import com.fasterxml.jackson.databind.JsonNode; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import com.fasterxml.jackson.core.JsonPointer; | |
| public class Main { | |
| public static void main(String[] args) { |
| ### ❗️❗️❗️ moved to https://github.com/glowinthedark/html-music-gallery-creator |