This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var productId = '[[*id]]' | |
$(document).ready(function () { | |
$.getJSON("https://s3.nitronix.ru/close/catalog/2bde8412-c1c5-4e25-8cb7-37e9db00101c/" + productId + ".json", function (data) { | |
var closes = data.closes; // Получаем список объектов закрытий | |
var $container = $('#closes'); // Находим контейнер для вставки | |
if ($container.length > 0) { | |
var maxImages = 4; // Максимальное количество изображений | |
// Для каждого объекта в "closes" создаем div с изображением и ссылкой |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.5" | |
services: | |
bunkerweb: | |
image: bunkerity/bunkerweb:1.5.1 | |
ports: | |
- published: 80 | |
target: 8080 | |
mode: host | |
protocol: tcp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var fired = false // Блокировка от повторнрого запуска, устарнавливает true после инициализации | |
window.addEventListener('scroll', () => { | |
if (fired === false) { | |
fired = true | |
// Тут код для запуска | |
} | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "DDoS-атака на порт 443" | |
COUNT_PACKETS=$1 | |
echo "Количество пакетов: $COUNT_PACKETS" | |
SITE_MONITORING=$2 | |
echo "Сайт мониторинга: $SITE_MONITORING" | |
# Бесконечный цикл |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$time = microtime(true); | |
$file = 'links.txt'; | |
if (file_exists($file)) { | |
$content = file_get_contents($file); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@php | |
use Illuminate\Support\Str; | |
$language = $getLanguage(); | |
$value = $getState(); | |
$validJson = !is_string($value) && Str::isJson(json_encode($value)); | |
@endphp | |
<x-dynamic-component class="filament-syntax-entry-component" :component="$getEntryWrapperView()" :entry="$entry" wire:ignore> | |
<div |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Получаем информацию о Docker | |
docker_info=$(docker info) | |
# Проверяем, содержится ли информация о Swarm.NodeID (это может указывать на неполный вывод info) | |
if echo "$docker_info" | grep -q "Swarm.NodeID"; then | |
echo "Пользователь не авторизован в Docker." | |
else | |
# Получаем имя пользователя |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by Andrey Stepanenko. | |
* User: webnitros | |
* Date: 06.05.2023 | |
* Time: 01:15 | |
*/ | |
namespace App\Console\Commands; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextInput::make('name') | |
->disabled() // Поле отключен | |
->dehydrated() // запрет на редактирование но при этом сохранять данные в базу | |
->dehydrateStateUsing(fn(string $state): string => mb_strtolower($state)) | |
->required(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: ./minio-upload my-bucket my-file.zip | |
bucket=$1 | |
file=$2 | |
host=minio.example.com | |
s3_key=svc_example_user | |
s3_secret=svc_example_user_password |
NewerOlder