javascript:(async () => {while (true) {let prevHeight = document.body.scrollHeight;window.scrollTo(0, prevHeight);await new Promise(resolve => setTimeout(resolve, 1000));if (document.body.scrollHeight === prevHeight) break;}console.log('All tweets loaded');})();# Pie it`s mopdern PHP PECL packages installer. Use Pie insted PECL!
`sudo apt install php8.5-dev` (for install PECL extension) \
`wget https://github.com/php/pie/releases/latest/download/pie.phar` \
`mv ./pie.phar /usr/local/bin/pie` \
`chmod +x /usr/local/bin/pie` \
`pie completion >> ~/.zshrc` \
`pie completion >> ~/.bashrc` \
`source ~/.zshrc` or `source ~/.bashrc`
After that: \
`pie install ...` \
e.g. \
`pie install pecl/timezonedb` \al-sZBPOahv-DYwSnVqHOPTjuJxKu90V_4dA69FNh8GQwN# Les liens symboliques (symlinks) en Unix
## Anatomie d'un fichier Unix
Sur un système de fichiers Unix, un fichier a deux composants distincts :
- Le **contenu** — les données, stockées quelque part sur le disque
- Le **nom** — l'entrée dans un dossier qui pointe vers ce contenu
---
## Ce qu'est un symlink
Un lien symbolique est un fichier spécial dont le contenu n'est pas de la donnée, mais **un chemin vers un autre fichier**. C'est un pointeur, une flèche.
```
~/.zshrc → ~/dotfiles/z# Diagnostic en cas de panne — Linux / Crostini
## Les trois questions à se poser
1. **Qu'est-ce qui a échoué ?** — identifier le composant fautif
2. **Quand et pourquoi ?** — lire les logs
3. **Est-ce reproductible ?** — tester après correction
---
## Les codes de sortie
Toute commande Unix retourne un code de sortie entre 0 et 255 :
| Valeur | Signification |
|---|---|
| `0` | Succès |
| toute autre valeur | Échec |
```bash
echo $? # code de sortie de la dernière commande
```
---
## Gestion des processus Linux
## Qu'est-ce qu'un processus ?
Un processus est une instance d'un programme en cours d'exécution. Chaque processus possède :
| Attribut | Description |
|---|---|
| **PID** | *Process ID* — identifiant numérique unique |
| **PPID** | *Parent PID* — PID du processus qui l'a créé |
| **Propriétaire** | L'utilisateur qui l'a lancé |
| **État** | En cours d'exécution, en attente, suspendu... |
---
## Lister les processus : `ps`
```bash
ps aux
```
| Option | Signif@formkit/auto-animate: https://auto-animate.formkit.com/# btop — Guide de référence rapide
## Lancement
```bash
btop
```
---
## Interface
L'écran est divisé en panneaux :
| Panneau | Contenu |
|---|---|
| **CPU** | Utilisation par cœur + historique graphique |
| **Mémoire** | RAM + swap + historique graphique |
| **Réseau** | Débit entrant/sortant en temps réel |
| **Disque** | Activité I/O par partition |
| **Processus** | Liste triable, filtrable, avec CPU/mémoire |
> La souris est supportée — clic direct sur les éléments de l'interface.
--/*
========================================================
Modern JavaScript – Useful New APIs
========================================================
Krátký přehled několika moderních JS funkcí a API,
které zjednodušují async kód, práci s daty a generování ID.
Obsah:
1. crypto.randomUUID()
2. Iterator helpers
3. Promise.withResolvers()
4. Promise.try()
5. AbortSignal.timeout()
6. AbortSignal.any()
7. structuredClone()
=======================================================# Prompt: Update Forgejo Issues, Milestones, and Timeline
## Objective
You are the project planning agent for the Infrastructure project hosted on Forgejo at
`git.cleverthis.com` in the repository `infrastructure/infrastructure`. Your job is to
review the current specification, codebase, and Forgejo issue tracker, then bring the
project's implementation task tracking fully up to date with the latest specification.
The project's work is tracked as **Forgejo issues** organized under **milestone# Prompt: Update Forgejo Issues, Milestones, and Timeline
## Objective
You are the project planning agent for the CleverErnie project hosted on Forgejo at
`git.cleverthis.com` in the repository `cleverernie/cleverernie-core`. Your job is to
review the current specification, codebase, and Forgejo issue tracker, then bring the
project's implementation task tracking fully up to date with the latest specification.
The implementation task tracking is represented as **Forgejo issues** organized und# Prompt: Continue Execution from Forgejo Issues
## Role
Acting as **[Your Name Here]** (Forgejo username: `[your_username]`), continue implementing
the CleverAgents project by working through Forgejo issues assigned to you in the repository
`cleveragents/cleveragents-core` on `git.cleverthis.com`.
For the purposes of git commits, use:
- Git user name: `[Insert Full Name Here]`
- Git email: `[email.name]@cleverthis.com`
When accessing the remote server (push, pull, clone), use HTTPS (not SSH/**
* @param {number[][]} mat
* @return {number}
*/
var numSpecial = function(mat) {
const m = mat.length;
const n = mat[0].length;
// Count how many 1s appear in each row
const rowCount = new Array(m).fill(0);
// Count how many 1s appear in each column
const colCount = new Array(n).fill(0);
// First pass: fill rowCount and colCount
for (let i = 0; i < m; i++) {
for (let j = 0; j < n; j++) {
if (mat[i][j] === 1) {
rowCount[# Le mode strict en Bash — `set -euo pipefail`
## Principe général
Le mode strict transforme le comportement par défaut de bash : au lieu de continuer silencieusement en cas de problème, le script **échoue tôt et fort**. Cela évite les exécutions partielles silencieuses, source de bugs difficiles à diagnostiquer.
```bash
set -euo pipefail
```
---
## Les trois options
### `-e` — Arrêt sur erreur
Sans `-e`, si une commande échoue (code de retour non-zéro), bash continue quand même.
```bash#include <Wire.h>
#include <Adafruit_VL53L0X.h>
#define SDA_PIN 42
#define SCL_PIN 41
#define VL53_INT_PIN 39 // GPIO за interrupt
#define VL53_XSHUT_PIN 40 // GPIO за XSHUT
Adafruit_VL53L0X lox = Adafruit_VL53L0X();
volatile bool newMeasurement = false;
void IRAM_ATTR measureReady() {
newMeasurement = true;
}
void setup() {
Serial.begin(115200);
delay(100);
Serial.println("VL53L0X + XSHUT + Interrupt demo");
// XSHUT HIGH за включване на сензора
pinMode(VL53_XSHUT_PIN, OUTPUT)<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<html>
<body>
<div class="gridTable">
<div> <!-- Header -->
<div>Timeclock.Kiwi</div>
<div>Payroll</div>
<div>Checked</div>
</div>
<div> <!-- Body -->
<div>
<div>Cat</div>