If you're using **[Trunk](https://trunk.io)** (a dev tool that includes linting, formatting, etc.), and it detects auto-fixable lint issues, you can run the auto-fix with:
```bash
trunk check --fix
```
### Explanation:
* `trunk check`: runs the Trunk pipeline (linters, formatters, etc.)
* `--fix`: automatically applies any fixes that the linters support (like ESLint or Prettier).
---
If you only want to fix issues for a specific linter (e.g., ESLint), you can run:
```bash
trunk check --fix
FROM ubuntu:24.10 AS base
# Install SSH server
RUN apt-get update && \
apt-get install -y openssh-server && \
mkdir -p /var/run/sshd
# Create user with password
RUN useradd -m docker && echo "docker:docker" | chpasswd
# Allow password login (not recommended for production)
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config && \
sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
# Expose SSH port
EXPOSE 2
/**
* @param {number[][]} matrix
* @return {void} Do not return anything, modify matrix in-place instead.
*/
var setZeroes = function(matrix) {
const rows = matrix.length;
const cols = matrix[0].length;
let firstRowHasZero = false;
let firstColHasZero = false;
// Check if the first row contains zero
for (let c = 0; c < cols; c++) {
if (matrix[0][c] === 0) {
firstRowHasZero = true;
break;
}
}
// Check if the first colum
FROM ubuntu:latest AS pentaho-setup
LABEL maintainer="Pentaho Data Integration" \
description="Pentaho Data Integration (PDI) is a powerful, metadata-driven ETL tool that enables users to extract, transform, and load data from various sources into a target system." \
version="10.2.0.0-222"
RUN apt -qq update && \
apt -qq install -y default-jre gnupg lsb-release && \
echo "deb http://cz.archive.ubuntu.com/ubuntu bionic main universe" >> /etc/apt/sources.list && \
apt-key adv -
services:
github-latest:
stdin_open: true
tty: true
build: .
command: /bin/bash
volumes:
- ./openwisp-controller:/opt/openwisp-controller
ports:
- 0.0.0.0:8000:8000
depends_on:
- redis
- influxdb
redis:
image: redis:alpine
command: redis-server --port 6379 &
ports:
- 6379:6379
influxdb:
image: influxdb:1.8-alpine
volumes:
- ./influxdb:/var/lib/influxdb
ports:
- "8086:8086"
environment:
services:
github-latest:
stdin_open: true
tty: true
build: .
command: /bin/bash
volumes:
- ./openwisp-radius:/opt/openwisp-radius
ports:
- 0.0.0.0:8000:8000
depends_on:
- redis
- influxdb
redis-openwisp-github:
image: redis:alpine
command: redis-server --port 6379 &
ports:
- 6379:6379
influxdb-openwisp-github:
image: influxdb:1.8-alpine
volumes:
- ./influxdb:/var/lib/influxdb
ports:
- 8086:8086
services:
github-latest:
stdin_open: true
tty: true
build: .
command: /bin/bash
volumes:
- ./openwisp-wifi-login-pages:/opt/openwisp-wifi-login-pages
ports:
- 0.0.0.0:8080:8080
- 0.0.0.0:3030:3030
param(
[string] $token,
[string] $repositoryUrl,
[string] $team,
[string] $sourceBranch,
[string] $targetBranch,
[string] $slackNotificationChannelId,
[switch] $lockSource,
[switch] $noSquash
)
$ErrorActionPreference = "Stop"
$InformationPreference = "Continue"
$v = $PSVersionTable.PSVersion
if ($v -lt [Version]'7.2') {
throw [System.Exception] "Powershell Version $v Unsupported - Please retry using version 7.2+"
}
$azureUrl = "https://dev.azure.com/myorg"
SELECT
u.id AS "ID Usuario",
CONCAT(u.firstname, ' ', u.realname) AS "Nombre Completo",
COUNT(glpi_tickets.id) AS "Cantidad de Tickets Enviados"
FROM
glpi_tickets
JOIN
glpi_users u ON glpi_tickets.users_id_recipient = u.id
WHERE
{{fecha_creacion}} -- ← Sin alias aquí
GROUP BY
u.id, u.firstname, u.realname
ORDER BY
COUNT(glpi_tickets.id) DESC;
# Welcome to Cacher
We're delighted you've chosen Cacher to be your snippet organizer! Whether you're a solo developer or a member of your team, Cacher is here to help you organize and use snippets more efficiently.
Our users create snippets to:
- Remember project-specific algorithms
- Create cheatsheets for useful libraries
- Share knowledge with colleagues
Take a few minutes to look over our **Getting Started** snippets. To view more detailed information on features, you can visit [Cacher
def ratio_lossed_gained_uncertainty(num_lossed:int,
num_gained:int,
alpha:float = 0.01,
verbose:bool = False) -> tuple[float, float]:
"""Estimate ratio lossed / gained with statistical uncertainty
Using confidence interval (CI) estimation for binomal estimation (loss, gain).
NOTE> In this case lossed is win and gained is loss, that is, ratio = lossed / gained.
<nav class="navigation">
<ul class="list">
<li class="item">
<a href="index.html" class="link">野菜</a>
</li>
<li class="item">
<a href="index2.html" class="link">肉</a>
</li>
<li class="item">
<a href="index3.html" class="link">魚</a>
</li>
<li class="item">
<a href="index4.html" class="link">米</a>
</li>
<li class="item">
<a href="index5.html" class="link">パン</a>
</li>
</ul>
</nav>
<ul class="products">
<li class="item">野菜1
#To convert any spaces to tabs in vim for the entire file, you can run:
:set noexpandtab
:retab!
#redo in vim
Press Ctrl-R (hold Ctrl and press r) to redo the last undone change.
For example, typing 4Ctrl-R will redo the last four changes
<div class="notice notice-success is-dismissible">
<p>Configuración guardada correctamente.</p>
<button type="button" class="notice-dismiss">
<span class="screen-reader-text">Dismiss this notice.</span>
</button>
</div>
<div class="notice notice-error is-dismissible">
<p>Ha ocurrido un error al guardar la configuración.</p>
<button type="button" class="notice-dismiss">
<span class="screen-reader-text">Descartar este aviso.</span>
</button>
</d
# useage
```
sum by(app, code) (irate(code_total{cluster=~"xxx", code!="xxx", app!="recall"}[2m]))
```
DECLARE @start DATETIME
SET @start = GETUTCDATE()
SELECT
o.StoreId,
SUM(
IIF(
o.PickupTimeUTC <= DATEADD(MINUTE, 60, @start),
IIF(p.ProductClassId IN (5, 7, 13, 23), 0.5, 1) * oi.Quantity,
0
)
) AS Skins_Tossed_Not_Complete
FROM Orders o
JOIN OrderItems oi ON o.Id = oi.OrderId
JOIN Products p ON oi.ProductId = p.Id
LEFT JOIN TossTimes t ON o.RevelId = TRY_CAST(t.CheckNumbe