Shell script for placing external display logically related to the main MacBook display
This script makes it easy to set hotkeys for switching the related logical position of an external display using displayplacer.
- Install the main part:
Shell script for placing external display logically related to the main MacBook display
This script makes it easy to set hotkeys for switching the related logical position of an external display using displayplacer.
| /** | |
| * Parses Tradernet comments based on type codes. | |
| * * @param {string[][]} comments The range of comments (J2:J). | |
| * @param {string[][]} types The range of type codes (D2:D). | |
| * @return {string[][]} Processed array of strings. | |
| * @customfunction | |
| */ | |
| function PARSE_TRADERNET_DATA(comments, types) { | |
| // 1. Guard against single-cell inputs or empty ranges | |
| if (!Array.isArray(comments)) return [["Error: Input must be a range"]]; |
| /** | |
| * @fileoverview Google Photos Unsolicited Creations Bulk Deleter. | |
| * * This script automates the deletion of all auto-generated, unsaved creations | |
| * (Collages, Animations, Stylized Photos, etc.) found on the Google Photos | |
| * unsaved creations page (https://photos.google.com/unsaved). | |
| * * It handles: | |
| * 1. Sequential deletion to avoid race conditions. | |
| * 2. Virtual scrolling to load all items progressively. | |
| * 3. Robust retry logic to confirm the visual removal of each item. | |
| * * ----------------------------------------------------------------------------- |
| [Adblock Plus 2.0] | |
| ! Title: Vadym's custom ABP filters | |
| ! Description: Defines some AdBlock rules | |
| ! Version: 202505051600 | |
| ! Last modified: 05 May 2025 16:00 UTC | |
| ! Expires: 1 day | |
| ! Homepage: https://github.com/milichev/adblock-filters | |
| bt.rozetka.com.ua##RZ-TOP-PAGE-BANNER | |
| bt.rozetka.com.ua##A[id="rz-banner"][class="exponea-banner exponea-popup-banner exponea-animate"][href="https://rozetka.com.ua/ua/promo/springcontinues/"] | |
| www.olx.ua##.baxter-container |
| // create an object with all the hook deps | |
| const debug = useRef({ | |
| currentCampaignId, | |
| data: getCampaignQuery.data, | |
| getValues, | |
| isInitialFormDataSettled, | |
| reset, | |
| setValue, | |
| stepsData, | |
| storageStepsState, |
| /** | |
| * Accepts eslint `stdout` and processes all error messages related to React Hooks, if any. | |
| * | |
| * Essentially, the "fix" is only about adding a respective `eslint-disable-line` comments to mute the error unless it is addressed appropriately. | |
| * | |
| * Requires the following modules available: | |
| * - lodash | |
| * | |
| * Usage: | |
| * |
| <# | |
| .SYNOPSIS | |
| Provides possibility to colorize text in console using ANSI sequences. | |
| #> | |
| using namespace System.Drawing | |
| function ToColor { | |
| [CmdletBinding()] | |
| param ( |
| #region Scripting | |
| function Test-IsConsoleHost { | |
| @('ConsoleHost', 'Visual Studio Code Host') -contains ($host.name) | |
| } | |
| function Get-PromptParam { | |
| [CmdletBinding()] | |
| param ( | |
| [string] $name, |
| const pipeData = function(fn) { | |
| return function(data) { | |
| return Promise.resolve(fn(data)).then(function(res) { | |
| if (res === void 0) { | |
| return data; | |
| } | |
| const keys = Object.keys(res).filter(function(prop) { | |
| return res.hasOwnProperty(prop); | |
| }); | |
| return Promise.all(keys.map(function(prop) { |