win, linux, mac: fix various typos #349

This commit fixes various typos in documentation and code.

Co-authored-by: RainRat <rainrat78@yahoo.ca>
This commit is contained in:
undergroundwires
2024-04-29 13:04:33 +02:00
parent 0fc2ffc1ea
commit 694bf1a74d
5 changed files with 21 additions and 21 deletions

View File

@@ -3711,7 +3711,7 @@ functions:
# User-specific: # User-specific:
# [~/.profile] # [~/.profile]
# User-specific shell initialization scripts. # User-specific shell initialization scripts.
# ✅ Recomended by Debian to edit for user-specific environment variables. # ✅ Recommended by Debian to edit for user-specific environment variables.
# [~/.bashrc] # [~/.bashrc]
# User-based configuration file to set environment variables for Bash shell. # User-based configuration file to set environment variables for Bash shell.
# ❌ Bash-specific. # ❌ Bash-specific.
@@ -3783,7 +3783,7 @@ functions:
if [[ -f "$cronjob_path" ]]; then if [[ -f "$cronjob_path" ]]; then
if [[ -x "$cronjob_path" ]]; then if [[ -x "$cronjob_path" ]]; then
sudo chmod -x "$cronjob_path" sudo chmod -x "$cronjob_path"
echo "Succesfully disabled cronjob \"$job_name\"." echo "Successfully disabled cronjob \"$job_name\"."
else else
echo "Skipping, cronjob \"$job_name\" is already disabled." echo "Skipping, cronjob \"$job_name\" is already disabled."
fi fi
@@ -3797,7 +3797,7 @@ functions:
echo "Skipping, cronjob \"$job_name\" is already enabled." echo "Skipping, cronjob \"$job_name\" is already enabled."
else else
sudo chmod +x "$cronjob_path" sudo chmod +x "$cronjob_path"
echo "Succesfully enabled cronjob \"$job_name\"." echo "Successfully enabled cronjob \"$job_name\"."
fi fi
else else
>&2 echo "Failed to enable cronjob \"$job_name\" because it's missing." >&2 echo "Failed to enable cronjob \"$job_name\" because it's missing."
@@ -3939,7 +3939,7 @@ functions:
echo "Backup file exists: $file." echo "Backup file exists: $file."
sudo mv "$backup_file" "$file" sudo mv "$backup_file" "$file"
echo "Moved to: $file." echo "Moved to: $file."
echo "Succesfully restored." echo "Successfully restored."
else else
>&2 echo "Failed to restore, backup file could not be found at $backup_file." >&2 echo "Failed to restore, backup file could not be found at $backup_file."
>&2 echo "Was the change initially applied by privacy.sexy?" >&2 echo "Was the change initially applied by privacy.sexy?"

View File

@@ -1468,7 +1468,7 @@ actions:
> **Caution**: > **Caution**:
> Disabling automatic updates can leave your system vulnerable to unpatched exploits. > Disabling automatic updates can leave your system vulnerable to unpatched exploits.
> Manually check and and apply updates to stay protected. > Manually check and apply updates to stay protected.
children: children:
- -
name: Disable automatic checks for updates name: Disable automatic checks for updates

View File

@@ -609,7 +609,7 @@ actions:
- https://web.archive.org/web/20240314101459/https://kb.digital-detective.net/display/BF/Location+of+Internet+Explorer+Data - https://web.archive.org/web/20240314101459/https://kb.digital-detective.net/display/BF/Location+of+Internet+Explorer+Data
- https://web.archive.org/web/20240314175030/https://kb.digital-detective.net/display/BF/Location+of+Internet+Explorer+11+Data - https://web.archive.org/web/20240314175030/https://kb.digital-detective.net/display/BF/Location+of+Internet+Explorer+11+Data
- https://web.archive.org/web/20240314100550/https://forensafe.com/blogs/internetexplorer.html - https://web.archive.org/web/20240314100550/https://forensafe.com/blogs/internetexplorer.html
# Includes Internet Explorer cache, tab recovery data, persistance storage (DOMStore, indexed DB etc.) # Includes Internet Explorer cache, tab recovery data, persistence storage (DOMStore, indexed DB etc.)
# Folders: CacheStorage\, Tracking Protection\, Tiles\, TabRoaming\, IECompatData\ # Folders: CacheStorage\, Tracking Protection\, Tiles\, TabRoaming\, IECompatData\
# DOMStore\, Recovery\ (that includes browser history), DomainSuggestions\, # DOMStore\, Recovery\ (that includes browser history), DomainSuggestions\,
# VersionManager\, UrlBlockManager\, Indexed DB\, imagestore\, IEFlipAheadCache\ # VersionManager\, UrlBlockManager\, Indexed DB\, imagestore\, IEFlipAheadCache\
@@ -1459,7 +1459,7 @@ actions:
name: Remove Windows product key from registry name: Remove Windows product key from registry
# Helps to protect it from being stolen and used for identity theft or identifying you. # Helps to protect it from being stolen and used for identity theft or identifying you.
docs: https://web.archive.org/web/20240314100853/https://winaero.com/remove-windows-10-product-key-from-registry-and-protect-it-from-being-stolen/ docs: https://web.archive.org/web/20240314100853/https://winaero.com/remove-windows-10-product-key-from-registry-and-protect-it-from-being-stolen/
# We use cscript.exe to execute instead of `slmgr` command directly to keep the output but surpress the dialogs. # We use cscript.exe to execute instead of `slmgr` command directly to keep the output but suppress the dialogs.
code: cscript.exe //nologo "%SYSTEMROOT%\System32\slmgr.vbs" /cpky code: cscript.exe //nologo "%SYSTEMROOT%\System32\slmgr.vbs" /cpky
- -
name: Clear volume backups (shadow copies) name: Clear volume backups (shadow copies)
@@ -1495,7 +1495,7 @@ actions:
- -
# If the service is not stopped, following error is thrown: # If the service is not stopped, following error is thrown:
# Failed to delete SRUM database file at: "C:\Windows\System32\sru\SRUDB.dat". Error Details: The process cannot access # Failed to delete SRUM database file at: "C:\Windows\System32\sru\SRUDB.dat". Error Details: The process cannot access
# the file 'C:\Windows\System32\sru\SRUDB.dat' because it is being used by another proces # the file 'C:\Windows\System32\sru\SRUDB.dat' because it is being used by another process
function: StopService function: StopService
parameters: parameters:
serviceName: DPS serviceName: DPS
@@ -7838,7 +7838,7 @@ actions:
This action can significantly increase security risks [6]. This action can significantly increase security risks [6].
> **Caution**: Disabling this service causes problems with software that depends on it [11] such as: > **Caution**: Disabling this service causes problems with software that depends on it [11] such as:
> - Prevents **Microsoft Store** app downloads [8] [9], impacting **`winget` CLI functionality [10]. > - Prevents **Microsoft Store** app downloads [8] [9], impacting **`winget`** CLI functionality [10].
> - Disables **`netsh advfirewall`** commands, used for Windows Firewall management [11]. > - Disables **`netsh advfirewall`** commands, used for Windows Firewall management [11].
### Overview of default service statuses ### Overview of default service statuses
@@ -7891,7 +7891,7 @@ actions:
firewall service stops unexpectedly [2]. firewall service stops unexpectedly [2].
> **Caution**: Disabling this service causes problems with software that depends on it [11] such as: > **Caution**: Disabling this service causes problems with software that depends on it [11] such as:
> - Prevents **Microsoft Store** app downloads (error code `0x80073D0A` [7] [12]), impacting **`winget` CLI functionality [13]. > - Prevents **Microsoft Store** app downloads (error code `0x80073D0A` [7] [12]), impacting **`winget`** CLI functionality [13].
> - Disables **`netsh advfirewall`** commands, used for Windows Firewall management [14]. > - Disables **`netsh advfirewall`** commands, used for Windows Firewall management [14].
### Overview of default service statuses ### Overview of default service statuses
@@ -8649,7 +8649,7 @@ actions:
- -
name: Maximize days until mandatory catch-up scan name: Maximize days until mandatory catch-up scan
docs: https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.WindowsDefender::Scan_MissedScheduledScanCountBeforeCatchup docs: https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.WindowsDefender::Scan_MissedScheduledScanCountBeforeCatchup
# Default and minumum is 2, maximum is 20 # Default and minimum is 2, maximum is 20
code: reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Scan" /v "MissedScheduledScanCountBeforeCatchup" /t REG_DWORD /d "20" /f code: reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Scan" /v "MissedScheduledScanCountBeforeCatchup" /t REG_DWORD /d "20" /f
revertCode: reg delete "HKLM\Software\Policies\Microsoft\Windows Defender\Scan" /v "MissedScheduledScanCountBeforeCatchup" /f 2>nul revertCode: reg delete "HKLM\Software\Policies\Microsoft\Windows Defender\Scan" /v "MissedScheduledScanCountBeforeCatchup" /f 2>nul
- -
@@ -9653,7 +9653,7 @@ actions:
- -
function: RunInlineCodeAsTrustedInstaller function: RunInlineCodeAsTrustedInstaller
parameters: parameters:
# "net stop" is used to stop dependend services as well, "sc stop" fails # "net stop" is used to stop dependent services as well, "sc stop" fails
code: net stop "WdNisDrv" /yes >nul & reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdNisDrv" /v "Start" /t REG_DWORD /d "4" /f code: net stop "WdNisDrv" /yes >nul & reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdNisDrv" /v "Start" /t REG_DWORD /d "4" /f
revertCode: reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdNisDrv" /v "Start" /t REG_DWORD /d "3" /f & sc start "WdNisDrv" >nul revertCode: reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdNisDrv" /v "Start" /t REG_DWORD /d "3" /f & sc start "WdNisDrv" >nul
- -
@@ -11405,8 +11405,8 @@ actions:
- -
category: Configure how downloaded files are handled category: Configure how downloaded files are handled
docs: |- docs: |-
These scripts configures Attachment Manager included in Windows that that takes further actions for These scripts configures Attachment Manager included in Windows that takes further actions for
files that you receive or download such as storing classification metadata and notfying other software [1]. files that you receive or download such as storing classification metadata and notifying other software [1].
[1]: https://support.microsoft.com/en-us/topic/information-about-the-attachment-manager-in-microsoft-windows-c48a4dcd-8de5-2af5-ee9b-cd795ae42738 "Information about the Attachment Manager in Microsoft Windows | support.microsoft.com" [1]: https://support.microsoft.com/en-us/topic/information-about-the-attachment-manager-in-microsoft-windows-c48a4dcd-8de5-2af5-ee9b-cd795ae42738 "Information about the Attachment Manager in Microsoft Windows | support.microsoft.com"
children: children:
@@ -11420,7 +11420,7 @@ actions:
intranet, local, or restricted zone [1]. intranet, local, or restricted zone [1].
It is used by Attachment Manager that is included in Windows to help protect the computer from It is used by Attachment Manager that is included in Windows to help protect the computer from
unsafe attachments that can be recieved with e-mail message or downloaded from Internet [2]. unsafe attachments that can be received with e-mail message or downloaded from Internet [2].
If the Attachment Manager identifies an attachment that might be unsafe, it prevents you from If the Attachment Manager identifies an attachment that might be unsafe, it prevents you from
opening the file, or it warns you before you open the file [2]. opening the file, or it warns you before you open the file [2].
@@ -14226,7 +14226,7 @@ actions:
function: UninstallNonRemovableStoreAppWithCleanup function: UninstallNonRemovableStoreAppWithCleanup
parameters: parameters:
packageName: Microsoft.AAD.BrokerPlugin # Get-AppxPackage Microsoft.AAD.BrokerPlugin packageName: Microsoft.AAD.BrokerPlugin # Get-AppxPackage Microsoft.AAD.BrokerPlugin
# Offical docs point to wrong "Microsoft.AAD.Broker.Plugin" # Official docs point to wrong "Microsoft.AAD.Broker.Plugin"
publisherId: cw5n1h2txyewy publisherId: cw5n1h2txyewy
- -
name: Remove "Microsoft Accounts Control" app name: Remove "Microsoft Accounts Control" app
@@ -14864,7 +14864,7 @@ actions:
function: UninstallNonRemovableStoreAppWithCleanup function: UninstallNonRemovableStoreAppWithCleanup
parameters: parameters:
packageName: Microsoft.Windows.OOBENetworkCaptivePortal # Get-AppxPackage Microsoft.Windows.OOBENetworkCaptivePortal packageName: Microsoft.Windows.OOBENetworkCaptivePortal # Get-AppxPackage Microsoft.Windows.OOBENetworkCaptivePortal
# Offical docs point to wrong "Microsoft.Windows.OOBENetworkCaptivePort" # Official docs point to wrong "Microsoft.Windows.OOBENetworkCaptivePort"
publisherId: cw5n1h2txyewy publisherId: cw5n1h2txyewy
- -
name: Remove "OOBE Network Connection Flow" app name: Remove "OOBE Network Connection Flow" app
@@ -18748,7 +18748,7 @@ functions:
# - By default, `Remove-MpPreference` sets default values for settings for all cases. # - By default, `Remove-MpPreference` sets default values for settings for all cases.
# - `setDefaultOnWindows11` parameter changes this behavior to set the default value using `Set-MpPreference` # - `setDefaultOnWindows11` parameter changes this behavior to set the default value using `Set-MpPreference`
# On Windows 10: # On Windows 10:
# - If `default` argument is is provided, it's set using `Set-MpPreference` # - If `default` argument is provided, it's set using `Set-MpPreference`
# - `default` argument should not be provided if `Remove-MpPreference` is supported in Windows 10. # - `default` argument should not be provided if `Remove-MpPreference` is supported in Windows 10.
revertCode: |- revertCode: |-
$propertyName = '{{ $property }}' $propertyName = '{{ $property }}'
@@ -19109,7 +19109,7 @@ functions:
call: call:
- -
function: RunPowerShell function: RunPowerShell
# See all default OS assocations: # See all default OS associations:
# 1. Open an elevated prompt # 1. Open an elevated prompt
# 2. Run `dism /online /export-defaultappassociations:C:\appassoc.xml` # 2. Run `dism /online /export-defaultappassociations:C:\appassoc.xml`
# 3. Inspect `C:\appassoc.xml` # 3. Inspect `C:\appassoc.xml`

View File

@@ -4,7 +4,7 @@ import { TimerStub } from '@tests/unit/shared/Stubs/TimerStub';
describe('batchedDebounce', () => { describe('batchedDebounce', () => {
describe('immediate invocation', () => { describe('immediate invocation', () => {
it('does not call the the callback immediately on the first call', () => { it('does not call the callback immediately on the first call', () => {
// arrange // arrange
const { calledBatches, callback } = createObservableCallback(); const { calledBatches, callback } = createObservableCallback();
const callArg = 'first'; const callArg = 'first';

View File

@@ -161,7 +161,7 @@ describe('VisibleTerminalScriptFileExecutor', () => {
): ScriptFileExecutorTestSetup; ): ScriptFileExecutorTestSetup;
}> = [ }> = [
{ {
description: 'unindentified os', description: 'unidentified os',
expectedErrorType: 'UnsupportedOperatingSystem', expectedErrorType: 'UnsupportedOperatingSystem',
expectedErrorMessage: 'Operating system could not be identified from environment', expectedErrorMessage: 'Operating system could not be identified from environment',
buildFaultyContext: (setup) => { buildFaultyContext: (setup) => {