Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Bobby BobbyWibowo

I may be slow to respond.
View GitHub Profile
i3v /
Last active Jul 27, 2021
Reproducing CrystalDiskMark tests with fio - fixes for
# This script is based on .
# 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
shane-axiom / nginx_google_analytics
Last active Sep 21, 2021
google analytics in nginx
View nginx_google_analytics
# send logs for all traffic (including non-html) to google analytics
# in server block:
# set $google_analytics_id "UA-THECORRECT-ID";
# include /srv/nginx/google_analytics;
# in location blocks:
# post_action @ga;
# notes: post_action has been referred to by nginx devs as a "dirty hack" and this approach may stop working one day.