Skip to content

Instantly share code, notes, and snippets.

View astappiev's full-sized avatar
🇺🇦

Oleh Astappiev astappiev

🇺🇦
View GitHub Profile
@astappiev
astappiev / README.md
Last active April 25, 2025 12:43
Python utility that analyzes file size distributions across a directory tree. It scans a specified directory (or the current directory by default), collects file size information, and provides statistical summaries to help understand storage usage patterns.

Filesystem Size Statistics Tool

Overview

fs_sizes_stats.py is a Python utility that analyzes file size distributions across a directory tree. It scans a specified directory (or the current directory by default), collects file size information, and provides statistical summaries to help understand storage usage patterns.

Features

  • Fast recursive directory scanning with error handling for inaccessible files/directories
  • Categorizes files into configurable size buckets (from <1KB to ≥1GB)
@astappiev
astappiev / toJson(github) on push.json
Last active April 1, 2025 14:45
Github workflow variables dump
{
"token": "***",
"job": "build",
"ref": "refs/heads/collabrec",
"sha": "a11860ce874f5de77e17fccb23400087a23cabe5",
"repository": "l3s-learnweb/learnweb",
"repository_owner": "l3s-learnweb",
"repository_owner_id": "121796993",
"repositoryUrl": "git://github.com/l3s-learnweb/learnweb.git",
"run_id": "14198661043",
@astappiev
astappiev / rathole.sh
Created March 31, 2025 07:14
Rathole install script
#!/bin/bash
set -e
echo "Installing Rathole..."
apt install -y unzip
RATHOLE_VERSION="v0.5.0"
RATHOLE_URL="https://github.com/rapiz1/rathole/releases/download/${RATHOLE_VERSION}/rathole-x86_64-unknown-linux-gnu.zip"
@astappiev
astappiev / README.md
Last active January 5, 2024 12:23
Make `Ctrl-Y` act as `Ctrl-Z` on German layout via AutoHotKeys 2
  1. Downloads portable AutoHotKeys https://www.autohotkey.com/download/ahk-v2.zip

  2. Unpack it into C:\Users\{USERNAME}\AutoHotkey_2.x.x (you can use any other location, but this one should be safe and available)

  3. Press Win+R and type shell:startup, then click Ok or press Enter. This should open a Startup folder of current user.

  4. Now create a new text file there and put the following content into the file:

$^z:: ; catch all Ctrl+Z presses
@astappiev
astappiev / PVE-HP-ssacli-smart-storage-admin.md
Created May 1, 2021 15:58 — forked from mrpeardotnet/PVE-HP-ssacli-smart-storage-admin.md
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

@astappiev
astappiev / adb_cheatsheet.md
Last active February 3, 2021 16:26
Android ADB: remove OEM Bloatware without root access

Pre Requirements

  • Install the USB drivers for your device (or universal ADB)
  • Download the ADB binary for your particular OS (Windows, Mac, Linux)
  • On your phone, go to Settings and tap on About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
  • Now enter Developer Options and find USB Debugging. Enable it.
  • Plug your phone into the computer and change it from “charge only” mode to “file transfer (MTP)” mode.
  • On your computer, browse to the directory where you extracted the ADB binary.

ADB commands

@astappiev
astappiev / commands.md
Last active March 25, 2020 23:06
Exiftool examples

Read all dates

exiftool -time:all 00024.jpg

Update date (for photo)

exiftool.exe "-AllDates=2003:01:01 12:00:00" -overwrite_original -r .
@astappiev
astappiev / gist:f9c85d770cdc9d0399e2ddbc5c5cf31a
Created March 25, 2020 23:04
Use cmder from Intelij IDEA, WebStorm, PhpStorm
  1. Set an environment variable called CMDER_ROOT to your root Cmder folder (in my case C:\Program Files (x86)\Cmder). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script.

  2. In your IntelliJ terminal settings, use "cmd" /k ""%CMDER_ROOT%\vendor\init.bat"" as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable.