Package management

Install the package:

$ rpm -ivh blktrace

Upgrade the package:

$ rpm -Uvh blktrace

Remove the installed package:

$ rpm -ev blktrace
$ rpm -ev --nodeps blktrace

Display the installed package info:

$ rpm -qi blktrace
Name        : blktrace                     Relocations: (not relocatable)
Version     : 1.0.1                             Vendor: Red Hat, Inc.
Release     : 6.el6                         Build Date: Wed 07 Sep 2011 12:51:04 PM PDT
Install Date: Fri 23 Dec 2016 12:15:57 PM PST      Build Host:
Group       : Development/System            Source RPM: blktrace-1.0.1-6.el6.src.rpm
Size        : 1042319                          License: GPLv2+
Signature   : RSA/8, Fri 23 Sep 2011 04:19:31 AM PDT, Key ID 199e2f91fd431d51
Packager    : Red Hat, Inc. <>
URL         :
Summary     : Utilities for performing block layer IO tracing in the linux kernel
Description :
blktrace is a block layer IO tracing mechanism which provides detailed
information about request queue operations to user space.  This package
includes both blktrace, a utility which gathers event traces from the kernel;
and blkparse, a utility which formats trace data collected by blktrace.

You should install the blktrace package if you need to gather detailed
information about IO patterns.

Find out what package a file belongs to:

$ rpm -qf /usr/bin/blktrace

Display list of configuration files for a package or command:

$ rpm -qc <package-name>
$ rpm -qcf /path/to/file

Download a package and its dependencies:

$ yum install yum-utils
$ yumdownloader --destdir=./ --resolve blktrace

Network bonding

Configure LACP bonding without reboot:

$  cat /sys/class/net/bond0/bonding/mode
802.3ad 4
$  cat /sys/class/net/bond0/bonding/xmit_hash_policy
layer2 0
$  echo 1 > /sys/class/net/bond0/bonding/xmit_hash_policy
$  cat /sys/class/net/bond0/bonding/xmit_hash_policy
layer3+4 1

Configure LACP bonding permanent to reboot:

$ vi /etc/sysconfig/network-scripts/ifcfg-bond0
BONDING_OPTS="mode=802.3ad xmit_hash_policy=layer3+4"

$ service network restart

After the Dark Ages ended, Europe began to get prosperous. It was time for the rebirth of greek ideas. Many people wanted to improve their lives and create inventions. Many famous artists like Leonardo da Vinci and Michelangelo were there at the time of the Renaissance. They created sculptures and art and other things to help Europe become prosperous. However, citizens thought about being free from kings the first time in many years. They started to get the idea of rebelling and ear their freedom. They thought it was unjust to obey the king and listen to him. As for the kings of Europe, they were having trouble keeping the people under their control. To prevent losing their power, they built walls around their land so the people could not leave to some other kindoms.

sublime-jekyll is a Sublime Text package for Jekyll static sites. This package is aimed at streamlining the process of managing and creating new Jekyll posts. It does this by providing quick and easy access to new post and draft commands, snippets and completions for Liquid template tags and filters, as well as some handy commands for adding dates and upload links to your posts.

If you use Jekyll as your static site generator, and Sublime Text as your text editor, you should absolutely install and use this package!


Create systemd file

$ cat /etc/systemd/system/jekyll.service
# Description: to make `jekyll serve` a system service and start on boot
# Usage: place this file at `/etc/systemd/system/jekyll.service`
# then run
#  sudo systemctl start jekyll.service
#  sudo systemctl enable jekyll.service

Description=Jekyll service

ExecStart=/home/username/gems/bin/bundle exec jekyll serve --host
ExecStop=/usr/bin/pkill -f jekyll


Start jekyll service

$ sudo systemctl daemon-reload
$ sudo systemctl start jekyll
$ sudo systemctl enable jekyll
$ sudo systemctl status jekyll
● jekyll.service - Jekyll service
     Loaded: loaded (/etc/systemd/system/jekyll.service; disabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-08-19 21:14:18 PDT; 7s ago
   Main PID: 35228 (ruby2.7)
      Tasks: 4 (limit: 13599)
     Memory: 83.8M
     CGroup: /system.slice/jekyll.service
             └─35228 ruby2.7 /home/[username]/www/vendor/bundle/ruby/2.7.0/bin/jekyll serve --host

Aug 19 21:14:19 skyhawk-01 jekyll[35228]: Configuration file: /home/username/www/_config.yml
Aug 19 21:14:19 skyhawk-01 jekyll[35228]:             Source: /home/username/www
Aug 19 21:14:19 skyhawk-01 jekyll[35228]:        Destination: /home/username/www/_site
Aug 19 21:14:19 skyhawk-01 jekyll[35228]:  Incremental build: disabled. Enable with --incremental
Aug 19 21:14:19 skyhawk-01 jekyll[35228]:       Generating...
Aug 19 21:14:19 skyhawk-01 jekyll[35228]:        Jekyll Feed: Generating feed for posts
Aug 19 21:14:21 skyhawk-01 jekyll[35228]:                     done in 2.455 seconds.
Aug 19 21:14:21 skyhawk-01 jekyll[35228]:  Auto-regeneration: enabled for '/home/username/www'
Aug 19 21:14:21 skyhawk-01 jekyll[35228]:     Server address:
Aug 19 21:14:21 skyhawk-01 jekyll[35228]:   Server running... press ctrl-c to stop.

On the night before I went to the beach, I was so excited for my trip to Half Moon Bay that I could not even sleep. I pictured my friends and me running into the ocean and diving into the waves.

Read more »

Install Command Line Tools

First, you need to install the command-line tools to be able to compile native extensions, open a terminal and run:

$ xcode-select --install

Install Ruby

Jekyll requires Ruby > 2.5.0. macOS Catalina 10.15 comes with ruby 2.6.3, so you’re fine. If you’re running a previous macOS system, you’ll have to install a newer version of Ruby.

With Homebrew

To run the latest Ruby version you need to install it through [Homebrew][Homebrew].

$ /bin/bash -c "$(curl -fsSL"

$ ruby -v
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]

$  brew install ruby
By default, binaries installed by gem will be placed into:

You may want to add this to your PATH.

If you need to have ruby first in your PATH run:
  echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> /Users/skyhawk/.bash_profile

For compilers to find ruby you may need to set:
  export LDFLAGS="-L/usr/local/opt/ruby/lib"
  export CPPFLAGS="-I/usr/local/opt/ruby/include"

Then relaunch your terminal and check your updated Ruby setup:

$ ruby -v
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]

With rbenv

People often use rbenv to manage multiple Ruby versions. This is very useful when you need to be able to run a given Ruby version on a project.

Install Jekyll

Now all that is left is installing Bundler and Jekyll.

$ /bin/bash -c "$(curl -fsSL"
$ gem install --user-install bundler jekyll

$ ruby -v
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]

$ echo 'export PATH="$HOME/.gem/ruby/2.7.0/bin:$PATH"' >> ~/.bash_profile

Create the First Website

$ jekyll new my-awesome-site
$ cd my-awesome-site/

$ bundle exec jekyll serve
Could not find gem 'minima (~> 2.5)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.

$ gem install minima
$ gem install jekyll-feed

$ bundle exec jekyll serve
Configuration file: /Users/skyhawk/my-awesome-site/_config.yml
            Source: /Users/skyhawk/my-awesome-site
       Destination: /Users/skyhawk/my-awesome-site/_site
 Incremental build: disabled. Enable with --incremental
       Jekyll Feed: Generating feed for posts
                    done in 0.232 seconds.
 Auto-regeneration: enabled for '/Users/skyhawk/my-awesome-site'
    Server address:
  Server running... press ctrl-c to stop.

Check out the [Jekyll on macOS][Jekyll-on-macOS] for more info on how to install Jekyll on macOS.


Quick start instructions

$ gem install bundler jekyll
$ jekyll new my-awesome-site
$ cd my-awesome-site
$ bundle exec jekyll serve
# => Now browse to http://localhost:4000

Check out the [Jekyll][jekyll] for more info on how to translate your plain text into static websites and blogs.