MAC OS

# AH le MAC :)

## Shell Profile stuff Zprofile etc...

Loading order on macOS:

`.zshenv → .zprofile → .zshrc → .zlogin → .zlogout`

#### Usage Notes:
`/etc/zshenv` : (optional) read first and everytime. ( good place for system wide ENV VAR )

`.zprofile` and `.zlogin` are basically the same thing - they set the environment for login shells

`.zshrc` This gets loaded after .zprofile. It's typically a place where you "set it and forget it" type of parameters like $PATH, $PROMPT, aliases, and fun

Azure AD/Intune Device Export using MS Graph

MS Graph script to export all devices information from EntraID environment note - alternative option is to 'export' from GUI of Devices|All devices
#Providing scope definition
Connect-MgGraph -Scopes "Device.Read.All"

<#Get all devices and export to AllDevices.csv path - include columns specified under "Select-Object".
- find additional fields to include beyond:
DisplayName
operating system
operating system version
registration date/time
last logon date/time
account enabled status
compliance?
compliance grace period?
ownership
#>
Get-MgDevice -All | Select-Object DisplayName, OperatingSystem, OperatingSystemVersion, Registra

2833. Furthest Point From Origin

You are given a string moves of length n consisting only of characters 'L', 'R', and '_'. The string represents your movement on a number line starting from the origin 0. In the ith move, you can choose one of the following directions: move to the left if moves[i] = 'L' or moves[i] = '_' move to the right if moves[i] = 'R' or moves[i] = '_' Return the distance from the origin of the furthest point you can get to after n moves.
/**
 * @param {string} moves
 * @return {number}
 */
var furthestDistanceFromOrigin = function(moves) {
    let L = 0, R = 0, U = 0;

    for (let ch of moves) {
        if (ch === 'L') L++;
        else if (ch === 'R') R++;
        else U++; // wildcard
    }

    return Math.abs(R - L) + U;
};

Haskell Perfect Numbers

import Data.Bits

import Control.Applicative

prime :: Int -> Bool
prime 1 = False
prime 2 = True
prime 3 = True
prime x
    | x `mod` 2 == 0 = False
    | x `mod` 3 == 0 = False
    | otherwise = all
                    -- check if x is not divisibile by the divisors
                    ((/= 0) . (x `mod`))

                    -- only take divisors less than or equal to sqrt(x)
                    . takeWhile (<= (floor . sqrt . fromIntegral $ x))

                    -- generate divisors as a

ensureDir

[typescript] ensureDir #typescript
export async function ensureDir(fileOrDirPath: string) {
  const entryStat = await fs.stat(fileOrDirPath);

  try {
    await fs.mkdir(entryStat.isDirectory() ? fileOrDirPath : path.basename(fileOrDirPath), {
      recursive: true
    });
  } catch (err: unknown) {
    logger.debug({ err }, `Failed to ensure directory exists: ${fileOrDirPath}`);
    throw err;
  }
}

Block comments WP

// ============================================================
// BLOCCO TOTALE COMMENTI WORDPRESS
// ============================================================

// 1. Chiude i commenti su tutti i post esistenti e futuri
function disable_comments_status() {
    return false;
}
add_filter( 'comments_open', 'disable_comments_status', 20, 2 );
add_filter( 'pings_open',    'disable_comments_status', 20, 2 );

// 2. Nasconde i commenti già esistenti
add_filter( 'comments_array', '__return_empty_ar

タイトルの後ろだけborderを途切れさせるboxをCSSのみでやる

<div class="box">
  <p class="caption">ポラーノの広場</p>
  <p>あのイーハトーヴォのすきとおった風、夏でも底に冷たさをもつ青いそら、うつくしい森で飾られたモリーオ市、郊外のぎらぎらひかる草の波。</p>
</div>

chat gpt ide

# ChatGPT Snippet Workspace — Design Spec

**Date:** 2026-04-13
**Status:** Draft for review
**Owner:** Paul Montag

## Summary

Build a ChatGPT-first coding workspace that unifies chat, editable code artifacts, runnable contexts, and reusable snippets in one product. The product should make two things feel effortless in v1:

1. turning good ChatGPT code output into durable, reusable snippets, and
2. opening a real project/workspace so ChatGPT can iterate directly against code in context.

The p

Mapa RGB en Y

vector bbox = relbbox(0,@P);
int select = chi("axis");
v@Cd = vector(chramp("color",bbox[select]));

2615. Sum of Distances

You are given a 0-indexed integer array nums. There exists an array arr of length nums.length, where arr[i] is the sum of |i - j| over all j such that nums[j] == nums[i] and j != i. If there is no such j, set arr[i] to be 0. Return the array arr.
/**
 * @param {number[]} nums
 * @return {number[]}
 */
var distance = function(nums) {
    const groups = new Map();

    // 1. Collect indices for each value
    for (let i = 0; i < nums.length; i++) {
        if (!groups.has(nums[i])) groups.set(nums[i], []);
        groups.get(nums[i]).push(i);
    }

    const result = Array(nums.length).fill(0);

    // 2. Process each group independently
    for (const idx of groups.values()) {
        const m = idx.length;
        if (m === 1) continue; 

Customize responsiveness of mobile menu

This overrides code for twenty-twenty-five version 1.4 _Please make sure that the code works for more recent versions_
/* Menu - "mobile" menu displays at < 1005px */
@media (min-width: 600px) {
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		bottom: 0;
		display: none;
		left: 0;
		position: fixed;
		right: 0;
		top: 0;
	}
}
/* 1005px is what made sense for a specific site, but adjust as needed*/
@media (min-width: 1005px) {
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		background-color: inherit;
		display: block;
		position

2452. Words Within Two Edits of Dictionary

You are given two string arrays, queries and dictionary. All words in each array comprise of lowercase English letters and have the same length. In one edit you can take a word from queries, and change any letter in it to any other letter. Find all words from queries that, after a maximum of two edits, equal some word from dictionary. Return a list of all words from queries, that match with some word from dictionary after a maximum of two edits. Return the words in the same order they appear in queries.
/**
 * @param {string[]} queries
 * @param {string[]} dictionary
 * @return {string[]}
 */
var twoEditWords = function(queries, dictionary) {
    // Helper: returns true if a and b differ in <= 2 positions
    function withinTwoEdits(a, b) {
        let diff = 0;
        for (let i = 0; i < a.length; i++) {
            if (a[i] !== b[i]) {
                diff++;
                if (diff > 2) return false; // early exit
            }
        }
        return true;
    }

    const result = [];

Obtener tipoAmazon por linea

SELECT DISTINCT
	AR.tipoProductoAmazon, 
	R.nombreRefaccion, 
	L.linea 
FROM AMAZON_REFACCION AR
	INNER JOIN REFACCION R
		ON R.cveRefaccion = AR.cveRefaccion
	INNER JOIN U_PRODUCTO P
		ON P.cveRefaccion = R.cveRefaccion
	INNER JOIN LINEA L
		ON L.cveLinea = P.cveLinea
WHERE L.cveLinea = 80

desktop app

# Desktop Dictation Tool Spec

## 1. Product Requirements Document

### 1.1 Product Summary

Build a desktop dictation tool similar in spirit to Wispr Flow that can be invoked from anywhere using a customizable global hotkey. The product opens a lightweight floating widget, captures live speech, converts it to text with low latency, cleans speech disfluencies in real time, and inserts the result into the currently focused input when possible. When direct insertion is not possible, the tool

supa pokers

Texan Wire Wheels 15″ ’84s® Super Poke® 30 Spoke Elbow® wire wheels for late model cars, classic cars, vintage cars, street rods, hot rods, and low riders.

Direct bolt on wheels for most 1978-1989 Cadillac vehicles.

The wheels will fit most FWD vehicles with a bolt pattern of 5 on 4.5, 5.5, or 5 on 4.75.

 

Disclaimer 

This is a set of four wheels that come with CHROME NONAGON or CHROME 2‑BAR CAP COMBO—whichever is available at the time of purchase. 

 

**Please Note: You can 

pp - Image Slider

Whitney's image slider/gallery. Uses Glightbox. To install, be sure to `npm install glightbox`, and bring in the css from glightbox into the page part's head
<div class="pp-image-slider" data-gallery="gallery-{{Matrix.MatrixId}}">
   <div class="main-strip">
      {% for el in List.Items %}
         <div 
            class="pp-image-slider__strip-item {% if forloop.index == 1 %} active{% endif %}"
            data-alt="{{el.FieldValues.Image.Alt}}"
         >
            <a 
               class=" glightbox"
               data-index="{{forloop.index  | Minus: 1}}"
               data-title="{{el.FieldValues.Image.Alt}}"
               data-gallery="