В Linux стандартными средствами можно использовать часть оперативной памяти как диск. Для этого требуется указать тип монтирования tmpfs в команде mount
mount -t tmpfs -o size=5G tmpfs /mnt/ram
Теперь путь /mnt/ram можно использовать как обычный каталог. Для чего это может быть нужно?
▫️ Скорость работы с таким каталогом выше чем многие SSD и тем более HDD.
▫️ Если у вас очень быстрый SSD на NVMe M.2 то такой способ особо не прибавит вам скорости, но поможет сохранить ресурс SSD когда требуется обрабатывать очень много мелких файлов и оперативка позволяет выделить нужный объем.
▫️ Оперативка это энергозависимая память, поэтому выключении питания все файлы безвозвратно теряются. Такой "non persistent" каталог гарантирует удаление временных файлов.
Я написал небольшой скрипт для условного теста и сравнения скорости копирования файлов между SSD и RAM.
Вот мои результаты:
Single File Size: 30.0Gb
ssd > ssd: 0:00:12.850 / 2.3Gb/s
sdd > ram: 0:00:06.453 / 4.6Gb/s
ram > ram: 0:00:06.995 / 4.3Gb/s
ram > sdd: 0:00:06.217 / 4.8Gb/s
Dir size: 32.7Gb, File count: 11127
ssd > ssd: 0:00:15.063 / 2.2Gb/s
sdd > ram: 0:00:08.486 / 3.9Gb/s
ram > ram: 0:00:08.032 / 4.1Gb/s
ram > sdd: 0:00:07.026 / 4.7Gb/s
Скрипт для теста ↗️
На моём железе прирост скорости ~2x. Плюс экономия ресурса SSD.
В Windows такой фишки по умолчанию нет, но обязательно найдутся аналогичные решения
#linux#triks
#markdown#android#bsd#cheatsheet#cheatsheets#command_line#console#documentation#examples#hacktoberfest#help#linux#macos#man_page#manpages#manual#osx#shell#terminal#tldr#windows
The tldr-pages project offers simple, easy-to-understand help pages for command-line tools, focusing on practical examples rather than long, complex manuals. It’s great if you’re new to the command line or forget command options, as it shows the most useful commands clearly. You can access these pages through various clients or online without installing anything. This saves you time and frustration by giving quick, clear guidance on common tasks, making it easier to learn and use command-line tools effectively. Plus, you can contribute by adding or improving pages yourself. This helps you and others get fast, practical help with commands[1][4].
https://github.com/tldr-pages/tldr
#rust#cli#command_line_interface#command_line_tool#dns#icmp#linux#macos#mtr#netbsd#network#networking#ping#ratatui#rust#rustlang#tool#traceroute#tui#tui_rs#windows
Trippy is a powerful tool that combines traceroute and ping functions to help you analyze network problems easily. It works on Linux, BSD, macOS, and Windows, and you can install it through many package managers or directly with commands like `cargo install trippy`. Running a simple trace is as easy as typing `sudo trip example.com`. Trippy offers detailed network tracing with features like multipath strategies and unprivileged modes, making it flexible for different needs. Using Trippy helps you quickly find where network issues occur, saving time and improving troubleshooting efficiency. Full guides and documentation are available online to get you started smoothly.
https://github.com/fujiapple852/trippy
#python#cybersecurity#fyp#hacking#hacking_tool#indonesia#information#information_gathering#ip_geolocation#linux#osint#osint_python#osint_tool#pentesting#phone_number#python#python_hacking#termux#termux_hacks#termux_tool
GhostTrack is a simple tool you can install on Linux or Termux to track locations, phone numbers, or social media usernames using open-source intelligence (OSINT). It offers menus for IP tracking (which can be combined with another tool called Seeker), phone number tracking, and username tracking on social media. This helps you gather information about a target’s location or identity easily. The benefit is that you can quickly find useful data for security, investigation, or personal knowledge without needing advanced skills, all through a straightforward Python-based program created by HunxByts.
https://github.com/HunxByts/GhostTrack
#shell#alpine#alpine_linux#boot#distro#grub#installer#iso#linux#linux_distribution#liveos#netboot#netinst#netinstall#operating_systems#os#reinstall#shell_script#vps#windows
You can use a powerful script to easily reinstall Linux or Windows on your server with just one command. It supports 19 popular Linux versions and all Windows versions from Vista to Windows 11, automatically downloading official ISO files and drivers. It works for switching between Linux and Windows, handles different network setups without manual IP input, and supports BIOS, EFI, and ARM servers. The script is lightweight, safe, and fetches all resources live from official sources. This saves you time and effort in system installation or reinstallation, especially on low-memory or cloud servers. You can also customize passwords, SSH keys, and ports during installation.
https://github.com/bin456789/reinstall
#shell#cassowary#docker#freerdp#gnome#hacktoberfest#integration#kde#libvirt#linux#linux_app#nautilus#nix_flake#podman#qemu#qemu_kvm#seamless#winapps#windows#wine#xfce
You can run Windows applications like Microsoft Office and Adobe Creative Cloud directly on your Linux desktop (KDE, GNOME, or XFCE) as if they were native apps using WinApps. It works by running Windows inside a virtual machine (using Docker, Podman, or libvirt) and then showing Windows apps seamlessly on Linux with FreeRDP. Your Linux home folder is accessible in Windows, and you can right-click files in Linux to open them with Windows apps. This lets you use all Windows programs without leaving Linux, improving productivity and convenience without needing dual boot or separate hardware.
https://github.com/winapps-org/winapps
#php#ehr#emr#fhir#global_health#health#healthcare#hit#international#linux#medical#medical_informatics#medical_information#medical_records#openemr#osx#php#practice_management#proprietary_counterparts#sponsors#windows
OpenEMR is a free, open-source electronic health records (EHR) and medical practice management software that works on many platforms like Windows, Linux, and Mac. It offers features such as patient scheduling, electronic billing, integrated health records, and support for both outpatient and inpatient care. It supports modern standards like FHIR for easy and secure data sharing between healthcare providers. OpenEMR is highly customizable, allowing you to tailor it to your specific needs, and it is ONC certified, ensuring compliance with healthcare regulations. Using OpenEMR can save costs compared to paid EHRs and gives you control over your patient data while benefiting from a supportive community and free resources.
https://github.com/openemr/openemr
#cplusplus#aes#avx#avx_instructions#chrome#chrome_devtools#chromedriver#chromium#chromium_browser#content_shell#jpeg_xl#jpegxl#jxl#libjxl#linux#thorium#thorium_browser#thoriumos#web_browser#web_platform#webbrowser
Thorium is a fast, optimized web browser based on Chromium, designed to work well on modern CPUs with advanced instruction sets like AVX and SSE4. It offers better performance than standard Chromium and Chrome, opening tabs and rendering pages quickly. Thorium includes enhanced privacy features such as DNS over HTTPS and Do Not Track enabled by default, plus support for modern media formats like HEVC and JPEG XL. It keeps the familiar Chrome interface and supports all Chrome extensions, making it easy to switch. Available on Windows, Linux, macOS, Android, and Raspberry Pi, it suits users wanting speed, privacy, and compatibility across devices[3][5][1].
https://github.com/Alex313031/thorium