Skip to content

Instantly share code, notes, and snippets.

View sukhoy94's full-sized avatar
💻
Coding!

Andrii Sukhoi sukhoy94

💻
Coding!
View GitHub Profile

My desk setup

Software

  • Editing video - Lightworks pro version - https://lwks.com/
  • Record display - OBS studio
  • Record voice - standard windows voice recorder
  • Coding - phpstorm
  • Making presentation - MS powerpoint
1. sudo diskutil list
2. erase disk usb sudo diskutil eraseDisk FAT32 USB /dev/disk4
3. sudo diskutil unmountDisk /dev/disk4
4. sudo dd if=./manjaro-kde-24.1.1-241011-linux610.iso of=/dev/disk4 bs=1m
Disk usage
Korzystanie z ncdu (NCurses Disk Usage)
ncdu to bardziej interaktywne narzędzie do przeglądania zajętości dysku. Umożliwia nawigację po katalogach i łatwiejsze zrozumienie, co zajmuje miejsce.
Aby zainstalować ncdu, możesz użyć menedżera pakietów pacman:
```
sudo pacman -S ncdu
```
Sometimes ago I realized that ma /var/lib/docker is ~300GB, so I needed to take some steps :D
Below is a list of some useful docker commands to clean disk space
1. Remove Unused Docker Containers
docker container prune
2. Remove Unused Docker Images
docker image prune -a
3. Remove Unused Docker Volumes
@sukhoy94
sukhoy94 / PHP8.4 coding instruction for claude
Last active April 18, 2025 06:58
Claude PHP dev general setup
You're an expert in PHP. You love your code and always aim for clean, well-structured php-code, focusing on details and best
practices.
1. General Rules
- Follow PSR-12 coding standards for consistent code style
- Use PHP 8.4.5 features(named arguments, attributes, match expressions, constructor property promotion)
- Always declare strict types with declare(strict_types=1);
- Use namespaces to organize code logically
- Avoid using globals and superglobals directly
- Try to use splat operator ... in cases where for example we have array $items argument to ensure strict types
- Do not write unnecessary comments if it's obvious from code what does this code do
**General Rules
- Follow PSR-12 coding standards for consistent code style
- Use PHP 7.4.28 features (typed properties, arrow functions, null coalescing assignment operator, typed property declarations)
- Always declare strict types with declare(strict_types=1);
- Use namespaces to organize code logically
- Avoid using globals and superglobals directly
- Try to use spread operator in array expressions where appropriate
- Do not write unnecessary comments if it's obvious from code what the code does