Skip to content

Instantly share code, notes, and snippets.

@Pix13
Pix13 / cdm_fio.sh
Last active May 15, 2024 13:12 — forked from i3v/cdm_fio.sh
Reproducing CrystalDiskMark tests with fio - fixes for https://unix.stackexchange.com/revisions/480191/9
#!/bin/bash
# This script is based on https://unix.stackexchange.com/revisions/480191/9 .
# The following changes proved to be necessary to make it work on CentOS 7:
# * removed disk info (model, size) - not very useful, might not work in many cases.
# * using "bw" instead of "bw_bytes" to support fio version 3.1 (those availible through yum @base)
# * escaping exclamation mark in sed command
# * the ".fiomark.txt" is not auto-removed
LOOPS=5 #How many times to run each test
@Pix13
Pix13 / gist:bfd13e87881f36886f60a3b3add7bed1
Created November 21, 2022 07:49
Armbian SoC optimizations
#!/bin/bash
#
# Copyright (c) Authors: https://www.armbian.com/authors
#
# This file is licensed under the terms of the GNU General Public
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
# Functions:
#
@Pix13
Pix13 / zram-cust.sh
Last active May 26, 2020 13:37 — forked from sultanqasim/zram.sh
ZRAM config for Raspberry Pi 3
#!/bin/bash
# Custom SoC ZRAM script
# Tuned for quad core, 1 GB RAM models
# put me in /etc/init.d/zram.sh and make me executable
# then run "sudo update-rc.d zram.sh defaults"
# Custom SoC system memory: 628133888
modprobe zram
echo 3 >/sys/devices/virtual/block/zram0/max_comp_streams
@Pix13
Pix13 / keybase.md
Created February 13, 2017 09:52
keybase.md

Keybase proof

I hereby claim:

  • I am pix13 on github.
  • I am lens13 (https://keybase.io/lens13) on keybase.
  • I have a public key ASCqwBm-yCHaEvYHdhdKYnwgC-YHJaCxJ-BWMBdS0-mF-Ao

To claim this, I am signing this object: