https://web.archive.org/web/20160118153748/http://www.json.org/java/index.html
| /usr/bin/python3 -c ' | |
| #!/usr/bin/python3 | |
| import glob | |
| import os | |
| import shlex | |
| import shutil | |
| import stat | |
| import subprocess | |
| import sys | |
| import time |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| if [ "$#" -eq 0 ]; then | |
| echo "Usage: sshforce [-Z] [ssh flags] <hostname> [ssh flags]" >&2 | |
| exit 1 | |
| fi | |
| # ssh short flags that consume the following argument as a value | |
| value_flags='BbcDEeFIiJLlmOopQRSWw' |
| chatgpt.com##body:xpath(//node()[.='Get started with company knowledge']/../../..) | |
| chatgpt.com##body:xpath(//node()[@aria-label='Banner' and contains(.,'ompany knowledge')]) | |
| chatgpt.com##body:xpath(//node()[text()='Invite team members']/..) | |
| chatgpt.com##body:xpath(//aside[contains(.,'Invite teammates')]/ancestor-or-self::div[contains(@class,'absolute')]) | |
| chatgpt.com##body:xpath(//button[.='Company knowledge']) | |
| chatgpt.com##body:xpath(//button[@aria-label='Invite team members']/..) | |
| chatgpt.com##body:xpath(//button[contains(.,'Company knowledge')]/..) | |
| chatgpt.com##body:xpath(//div[starts-with(text(), "ChatGPT can make mistakes. OpenAI doesn't")]) | |
| chatgpt.com##body:xpath(//node()[name()='svg']/node()[starts-with(@d, 'M16.418 17.1669V15.7479H15C14.6327')]/ancestor::*[self::div[@data-state='closed'] or self::button]) | |
| chatgpt.com##body:xpath(//node()[name()='svg']/node()[name()='use' and contains(@href,'#edbcb1')]/ancestor::*[self::div[@data-state='closed'] or self::button]) |
| function! s:LogTextYankPost() abort | |
| let l:logfile = expand('$HOME/.vimlog') | |
| let l:ts = strftime('%Y-%m-%d %H:%M:%S') | |
| let l:lines = [] | |
| call add(l:lines, '==== TextYankPost { ====') | |
| call add(l:lines, 'timestamp: ' . l:ts) | |
| " safe gets with defaults | |
| let l:inclusive = get(v:event, 'inclusive', 0) |
The formal grammar of XML is given in this specification using a simple Extended Backus-Naur Form (EBNF) notation. Each rule in the grammar defines one symbol, in the form
symbol ::= expression
Symbols are written with an initial capital letter if they are the start symbol of a regular language, otherwise with an initial lowercase letter. Literal strings are quoted.
| #!/bin/bash | |
| # uninstall_bitdefender.sh | |
| # Purpose: Remove Bitdefender Antivirus for Mac files as outlined in the vendor PDF. | |
| # Works in Recovery mode (preferred when Finder removal fails) and can also run in normal macOS. | |
| # Usage: | |
| # 1) Recovery mode (recommended if Finder method failed): | |
| # chmod +x uninstall_bitdefender.sh | |
| # ./uninstall_bitdefender.sh --volume "Macintosh HD" | |
| # 2) Normal mode (may fail due to protections, but safe to try): | |
| # sudo ./uninstall_bitdefender.sh |
| #!/usr/bin/env bash | |
| # what_is.sh - Inspect how Bash would resolve a command name. | |
| # Modes: | |
| # (A) Source to define the function: . what_is.sh | |
| # Then use: what_is <cmd> | |
| # (B) Source-and-run once: . what_is.sh <cmd> | |
| # (C) Execute (cannot see live aliases/functions in this shell): | |
| # ./what_is.sh <cmd> | |
| what_is() { |
| #!/bin/bash | |
| wget -o wget.log -r -np -nH --cut-dirs=2 -P out/ --show-progress \ | |
| --reject "index.html*" --reject-regex '\?C=.*' \ | |
| https://www.unicode.org/Public/zipped/16.0.0 |
(The content of this article is licensed under "CC-BY" which allows you to share, adapt, remix, and republish this work. All that's required is attribution like this: "© CC-BY <link to where you obtained this article>").
More info at: https://creativecommons.org/licenses/by/4.0/
A PowerShell Design Pattern: Handling Confirmation Prompts in Cmdlets
When writing custom PowerShell Cmdlets, a common scenario arises when your Cmdlet has the SupportsShouldProcess = $true attribute set to leverage PowerShell’s -Confirm infrastructure. This attribute enables built-in confirmation prompts that ask the user to verify potentially impactful actions before proceeding.