All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated

KarelWintersky / Web Routes Dump, print it as table

0 likes
0 forks
4 files
Last active 1746389962
https://t.me/wombatnotes/2224
var_dump( AppRouter::getRoutingRules() );
Печатает вот такой код:

array(23) {
  ["GET / Closure(30-32)="]=>
  array(7) {
    ["httpMethod"]=>
    string(3) "GET"
    ["route"]=>

KarelWintersky / ping_monitor.py

0 likes
0 forks
2 files
Last active 1744985631
./ping_monitor.py 8.8.8.8
1 Пример вывода при успешном
2 ```
3 Ping monitor for example.com
4
5 Status: pinging... (connection stable)
6 Current series: packets_lost=0 | duration=0.0 sec | 2023-05-15 14:30:45
7
8 Press Ctrl+C to exit...
9 ```

KarelWintersky / smart_monitor

0 likes
0 forks
4 files
Last active 1744195996
Связка скриптов для мониторинга SMART дисков в системе, с отправкой результата сканирования в телеграм

Создаем бота через @BotFather, получаем API-токен (например: 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11).

Узнаем chat_id:

Пишем боту любое сообщение.

Выполняем запрос (подставив свой токен): curl -s "https://api.telegram.org/bot<ВАШ_ТОКЕН>/getUpdates" | jq '.result[0].message.chat.id'

Получаем chat_id (например: 123456789).

Newer Older

Powered by Opengist ⋅ Load: 54ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文