Skip to content

Instantly share code, notes, and snippets.

View s3rgeym's full-sized avatar
🏴‍☠️
Анархия - основа Интернета

[object Object] s3rgeym

🏴‍☠️
Анархия - основа Интернета
View GitHub Profile
#!/usr/bin/env python
import argparse
import json
import re
import signal
import subprocess
import sys
from urllib.request import Request, urlopen
MODEL_NAME = "qwen2.5-coder:7b"
@s3rgeym
s3rgeym / main.go
Last active June 1, 2026 23:59
Go VNC Scanner
package main
import (
"bufio"
"context"
"crypto/des"
"encoding/binary"
"flag"
"fmt"
"io"
data="""\
1. [✓] org.freedesktop.Platform.GL.default 24.08 u flathub 25.8 MB / 147.8 MB
2. [✓] org.freedesktop.Platform.GL.default 24.08extra u flathub 25.9 MB / 147.8 MB
3. [✓] org.freedesktop.Platform.Locale 24.08 u flathub 850.4 kB / 388.9 MB
4. [✓] org.freedesktop.Platform.ffmpeg-full 24.08 u flathub 5.4 kB / 12.1 MB
5. [✓] org.freedesktop.Sdk.Locale 24.08 u flathub 1.9 MB / 394.4 MB
6. [✓] org.freedesktop.Sdk.Locale 25.08 u flathub 18.5 kB / 394.8 MB
7. [✓] org.gnome.Platform.Locale 49 u flathub 18.5 kB / 385.8 MB
8. [✓] org.gnome.Platform.Locale 50 u flathub 18.5 kB / 386.0 MB
9. [✓] org.gnome.Platform 50 u flathub 1.4 MB / 408.8 MB
vim.pack.add({
'https://github.com/mikavilpas/yazi.nvim',
'https://github.com/nvim-lua/plenary.nvim',
}, { confirm = false })
require('yazi').setup()
vim.keymap.set('n', '<leader>y', function()
require('yazi').yazi({ open_for_directories = true })
end)
python -c'print(__import__("requests").get("https://ipinfo.io/ip").text)'
#!/usr/bin/env python
import re
SIZE_UNITS = {"kB": 1 << 10, "MB": 1 << 20, "GB": 1 << 30}
def parse_size(v):
s, u = v.split()
return float(s) * SIZE_UNITS[u]
==> no candidate packages found for pruning
(3/3) Performing snapper post snapshots for the following configurations...
==> root: 3015
~/workspace/hh-applicant-tool -> main
(.venv) ❯ flatpak update -y
Looking for updates
Info: runtime org.kde.Platform branch 6.8 is end-of-life, with reason:
We strongly recommend moving to the latest stable version of the Platform and SDK
def parse_size(size):
num, unit = size.split()
exp = ['B', 'kB', 'MB', 'GB'].index(unit)
return float(num) * 1024**exp
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-6.18.7-arch1-1] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: Samsung SSD 980 500GB
Serial Number: S64DNG0R240119V
Firmware Version: 3B4QFXO7
PCI Vendor/Subsystem ID: 0x144d
IEEE OUI Identifier: 0x002538
Total NVM Capacity: 500,107,862,016 [500 GB]