If .DS_Store was never added to your git repository, simply add it to your .gitignore file.
.gitignore
In your the root directory of your app and simply write
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>WebSocket Client</title> | |
<style> | |
#output { | |
border: solid 1px #000; | |
} | |
</style> | |
</head> |
#!/bin/sh -x | |
set -e | |
SIZES=" | |
16,16x16 | |
32,16x16@2x | |
32,32x32 | |
64,32x32@2x | |
128,128x128 |
#!/usr/bin/env python3 | |
# | |
# Example Usage: | |
# ------------------------------------------------------------------------------- | |
# modify dates from 30-10-2024 to 2024-10-30 | |
# find-replace-in-files-regex.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 "your_email@youremail.com"
#!/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}"' _ {} \; |