3296. Minimum Number of Seconds to Make Mountain Height Zero

You are given an integer mountainHeight denoting the height of a mountain. You are also given an integer array workerTimes representing the work time of workers in seconds. The workers work simultaneously to reduce the height of the mountain. For worker i: To decrease the mountain's height by x, it takes workerTimes[i] + workerTimes[i] * 2 + ... + workerTimes[i] * x seconds. For example: To reduce the height of the mountain by 1, it takes workerTimes[i] seconds. To reduce the height of the mountain by 2, it takes workerTimes[i] + workerTimes[i] * 2 seconds, and so on. Return an integer representing the minimum number of seconds required for the workers to make the height of the mountain 0.
/**
 * @param {number} mountainHeight
 * @param {number[]} workerTimes
 * @return {number}
 */
var minNumberOfSeconds = function (mountainHeight, workerTimes) {

    const H = mountainHeight;

    // If there's only one worker, the formula is direct:
    // time = t * (1 + 2 + ... + H) = t * H(H+1)/2
    if (workerTimes.length === 1) {
        const t = workerTimes[0];
        return t * (H * (H + 1) / 2);
    }

    // Sort workers so the fastest ones are processed first.
    // This allows ear

Ultrasonic HC-R04_setup

// in setup()
  pinMode(TRIG, OUTPUT);
  pinMode(ECHO, INPUT);

  digitalWrite(TRIG, LOW);
  delay(1000);

// in loop()
  digitalWrite(TRIG, LOW);
  delayMicroseconds(2);

  digitalWrite(TRIG, HIGH);
  delayMicroseconds(10);
  digitalWrite(TRIG, LOW);

  duration = pulseIn(ECHO, HIGH);
  distance = duration / 58.0;
  meter = distance / 100.0;

🦑 Git - Collaboration sur un repo Github

# Git : Collaborer efficacement sur un même repo

## 1. Récupérer les branches de ses collaborateurs

Quand tes collaborateurs pushent directement sur ton repo (pas un fork), leurs branches sont sur `origin`.

### Récupérer toutes les branches distantes

```bash
git fetch origin
```

### Récupérer une seule branche spécifique

```bash
git fetch origin nom-de-la-branche
```

### Lister les branches distantes disponibles

```bash
git branch -r
```

### Basculer sur une branche d'un collaborateur

Rails - Cloudflare - Video Uploads Blocked

### Background
* In production environments using Cloudflare (business plan), video uploading 
performed by Rails can be blocked (page may load `No internet connection`) for
files larger than 100 MB.
* To verify if Cloudflare is the issue and not Nginx:
  * Check nginx for the following option: `client_max_body_size 500M;`
    * Usually within the `server {}` block 
  * Check the following logs:
    * `tail -f /var/log/nginx/error.log`
    * `tail -f /var/log/nginx/access.log`
    * If nothings 

How to shows difference introduced in a commit?

git log --patch
git log -p
git log -p app/\(features\)/beacon-money-account/info/free-activation/components/FreeActivationHero.tsx
git log -p ec60ac4 #using commit hash

# or using https://github.com/jonas/tig
tig

ayvens api

curl --location 'https://api.ayvens.com/rms/carmarket/b2c/vehicleads/' \
--header 'x-Ald-Subscription-Key: 6b2007dc3a864fcea99040d8c3e72a69' \
--header 'x-country: fr' \
--header 'User-Agent: Mozilla/5.0' \
--header 'x-partner: ald'

you can add filters if needed

arvals api

search for 
locationCount --> 525
registrationNumber
previousSalePriceGross
previousSalePriceNet
freeCarBenefit

16990
https://autoselect.arval.fr/voitures-occasion/offer/toyota-corolla-hybride-122h-dynamic-business-stage-academy-129192
23990
https://autoselect.arval.fr/voitures-occasion/offer/toyota-corolla-hybride-140h-active-130002

Developer Exercise

var EquipmentBookingUtils = Class.create();
EquipmentBookingUtils.prototype = {

    checkBooking: function(equipmentId, equipmentType, startTime, endTime) {

        var result = {
            booked_by: "",
            approver: ""
        };

        var gr = new GlideRecord('u_equipment_booking');
        gr.query();

        while (gr.next()) {

            if (gr.u_equipment == equipmentId && gr.u_status != 3) {

                if (startTime > gr.u_start_time && startTime

reveal question

1. go to question link : https://www.examtopics.com/discussions/microsoft/view/153758-exam-dp-700-topic-3-question-9-discussion/
2. open consol
3. past this document.getElementById('notRemoverPopup').style.display = 'none';
4. if pasting is not allowed type 'allow pasting'

3600. Maximize Spanning Tree Stability with Upgrades

You are given an integer n, representing n nodes numbered from 0 to n - 1 and a list of edges, where edges[i] = [ui, vi, si, musti]: ui and vi indicates an undirected edge between nodes ui and vi. si is the strength of the edge. musti is an integer (0 or 1). If musti == 1, the edge must be included in the spanning tree. These edges cannot be upgraded. You are also given an integer k, the maximum number of upgrades you can perform. Each upgrade doubles the strength of an edge, and each eligible edge (with musti == 0) can be upgraded at most once. The stability of a spanning tree is defined as the minimum strength score among all edges included in it. Return the maximum possible stability of any valid spanning tree. If it is impossible to connect all nodes, return -1. Note: A spanning tree of a graph with n nodes is a subset of the edges that connects all nodes together (i.e. the graph is connected) without forming any cycles, and uses exactly n - 1 edges.
/**
 * @param {number} n
 * @param {number[][]} edges
 * @param {number} k
 * @return {number}
 */
var maxStability = function (n, edges, k) {
    // -----------------------------
    // Disjoint Set Union (Union-Find)
    // -----------------------------
    class DSU {
        constructor(n) {
            this.parent = Array.from({ length: n }, (_, i) => i);
            this.size = Array(n).fill(1);
            this.components = n; // track how many connected components remain
        }

     

systemd‑journald: limits and configuration

## systemd‑journal: useful command

- **Check disk usage** \
`journalctl --disk-usage`

- **Clean journal** \
`sudo journalctl --vacuum-time=7d` \
(**7d** - delete files older 7days)

- **Set limit size** \
`sudo journalctl --vacuum-size=500M`\
(**500M** - keep only the last 500Mb)

- **Delete all journal logs** \
`sudo rm -rf /var/log/journal/*` \
`sudo systemctl restart systemd-journald`

## systemd‑journal: configuration
- open file configuration: \
`sudo nano /etc/systemd/journald.conf
`
```

~js snippets

var urls = document.getElementsByTagName('a'); 
for (var i = 0; i < urls.length; i++) { 
    console.log(urls[i].href); 
}

1009. Complement of Base 10 Integer

The complement of an integer is the integer you get when you flip all the 0's to 1's and all the 1's to 0's in its binary representation. For example, The integer 5 is "101" in binary and its complement is "010" which is the integer 2. Given an integer n, return its complement.
/**
 * @param {number} n
 * @return {number}
 */
/**
 * @param {number} n
 * @return {number}
 */
var bitwiseComplement = function(n) {
    // Edge case:
    // LeetCode defines the complement of 0 as 1.
    // Binary: "0" → flip → "1"
    if (n === 0) return 1;

    // We want to build a mask of all 1s that covers
    // exactly the bit-length of n.
    //
    // Example: n = 10 (1010)
    // mask should become 1111 (binary) = 15
    //
    // Start mask at 1 (binary: 1)
    let mask = 1;

    

Telegram:@lazarustoolz Bank To Bank Drop Wire Logs PayPal Zelle Venmo Apple Pay Skrill WU Transfer Bug MoneyGram Transfer


(transferring all over the world except banned/blacklisted countries)
Paypal Transfer Rates :
Code:
(Payment Only BTC or PM)
$3000 Transfer = $250 Charges
 
$3500 Transfer = $230
 
$4500 Transfer = $400
 
$6000 Transfer = $500
 
$8000 Transfer = $550
 
 
I  have some balance like as and I can still remit more  high balance into PayPal acct.
 
BUY BLANK/CLONED ATM/Credit CARD WITH OVER $100,000 READY FOR CASH OUT
We are a professional carding team with a large ring around the globe. With over 2 

SSMS AutoRecover Module

#region AutoRecover Module
function Get-AutoRecoverDatInfo {
    $LatestSSMSVersionDirectory = Get-ChildItem -Path "${env:APPDATA}\Microsoft\SSMS" -Directory | Sort-Object | Select-Object -Last 1 -ExpandProperty FullName
    Get-ChildItem -Path "${LatestSSMSVersionDirectory}\AutoRecoverDat" -Filter *.dat | ForEach-Object {
        $File = $_
        $Content = Get-Content -Path $File.FullName -Raw -Encoding Unicode
        $Lines = [regex]::Split($Content, "(?<={00000000-0000-0000-0000-000

防锁屏保活.vbs

Set ws = CreateObject("WScript.Shell")
' 无限循环
Do
    ' 模拟按下 F15 键 (无实际功能的键,但能刷新系统的活跃倒计时)
    ws.SendKeys "{F15}"
    ' 暂停 4 分钟 (240000 毫秒) 换取 CPU 不占用
    WScript.Sleep(240000)
Loop