Skip to content

Instantly share code, notes, and snippets.

View Impact123's full-sized avatar

Impact Impact123

View GitHub Profile

This is instruction how to run multi level compression for zram swap

The idea is that we want to be able to quickly swap memory away when we need memory, but cold pages should be compressed further. This instruction also includes traditional block storage for uncompressible pages that would not decrease otherwise any memory usage. Zstd have nice property that decompression speed is basically independend from compression level, so using higher levels will only participate in compression speed. Using zstd for default compresor causes some ui lags when memory need to be paged out, therefore is okay, but not great solution. Using zstd for recompression in the background have very little effect assuming you do not use every cpu cycle, and compressing old pages make it failry safe that they will not be needed anytime soon. This might consume 1 cpu core during recompression (accounted for recompress-idle-ram script) but otherwise allows best from both worlds, fast memory reclaim, fast swap read and very good com

@MichaelMKKelly
MichaelMKKelly / ha-server-hw-recommend.md
Last active October 16, 2025 08:36
Home Assistant Server Hardware Recommendations

Home Assisant Server hardware recomendations

The hardware that you should look at for running hope assistant depends greatly on your plans and requirements

Home Assistant Green

https://www.home-assistant.io/green/

This is a great product if you are just starting out and want to learn. It allows you to jump in without alot of complicated setup.

It is however limited as it is a very low poer and low performence hardwaree. If you are looking to run alot of addons (an addon is not an integration) to run addition services then you will find the green will get bogged down

@Impact123
Impact123 / Why no SBC.md
Last active March 27, 2026 19:17
Why I don't recommend SBCs for running servers

There's no question that many people successfully run SBCs and are happy with them but here's some of my personal and thus biased reasons why I don't recommend SBCs like the pi, HA Green, HA Yellow, HA Blue, etc for running servers.

  • They have a poor price performance ratio
    • BCM2711 is the Pi 4's CPU and BCM2712 is the Pi 5's CPU. N100 and N150 are popular CPUs for cheap Mini PCs.
  • Some need a powered USB hub if you want to reliably use their USB ports, for example for a external SSD [2]
    • This can also happen for certain Mini PCs but they already have "proper" internal storage capability.
  • Their internal storage isn't ideal [1]. SD cards corrupt easily
  • USB boot can be finicky and likely has to be configured:
  • You need a HDMI adapter or USB C cable and a
@rsms
rsms / apk-size-list.sh
Created September 1, 2022 17:50
apk: list installed packages sorted by file size (e.g. alpine linux)
#!/bin/ash
# list installed packages sorted by file size
apk info -e -s \* >/tmp/apksize
awk 'NR % 3 == 1' /tmp/apksize | cut -d ' ' -f 1 > /tmp/apkname
awk 'NR % 3 == 2' /tmp/apksize > /tmp/apksize2
while read -r n unit; do
B=$n
case "$unit" in
@Miouge1
Miouge1 / isdct-update.sh
Created July 14, 2016 13:54
Update all Intel DC SSD firmware on Debian/Ubuntu
#!/bin/sh
apt-get install unzip
apt-get -y install alien
mkdir isdct
cd isdct
wget https://downloadmirror.intel.com/23931/eng/DataCenterTool_3_0_0_Linux.zip
unzip DataCenterTool_3_0_0_Linux.zip
alien --to-deb isdct-3.0.0.400-15.x86_64.rpm
dpkg -i isdct_3.0.0.400-16_amd64.deb
@ndarville
ndarville / business-models.md
Last active May 29, 2026 04:06
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google