WebOS Exchange ActiveSync User Agent

Changing of Exchange ActiveSync User Agent string on HP Palm devices is done by editing /usr/share/dbus-1/system-services/com.palm.eas.service file:

[D-BUS Service]
Name=com.palm.eas
Exec=/usr/bin/mojomail-eas -c {...} Palm Palm/1.0.1
The last two strings stand for Device Type and User Agent.

In some cases changing of Device ID may by required as well which can be achieved using Impostash application (Device Profile -> nduId).

List of observed Device Type and User Agent strings can be obtained from Exchange server reports.

Git Basic Setup

Set user and email for commits and enable colorized output:
git config --global user.name "John Doe"
git config --global user.email john.doe@foo.com
git config --global --add color.ui true
Optionally add couple of helpful Git aliases into your shell profile (~/.bashrc in case of using Bash):
alias ga='git add'
alias gai='git add -i'
alias gc='git commit'
alias gd='git diff'
alias gdc='git diff --cached'
alias gm='git merge --no-ff'
alias gst='git status -s'

RHEL Subscription

Register a new system usig RedHat username and password and subscribe it to default and optional channels:

subscription-manager register
subscription-manager subscribe --auto
subscription-manager repos --enable=rhel-6-server-optional-rpms

Non-root Process Listening on Priviledged Ports

Allow a user application to bind to a port below 1024 using POSIX File Capabilities:
setcap cap_net_bind_service=+eip /path/to/the/executable

Disabling CPU Cores

Disable all CPU cores except the first one which does not honor online attribute:
for i in /sys/devices/system/cpu/cpu*/online; do echo 0 > $i; done

There Are Too Many Ways To Do It

Benchmark of Perl text replacing subroutines as taken from There are too many ways to do it presentation: My own results (the table is split for better readability):
                      Rate delpoint8 elim_last pack01 count_and_replace sexeger
delpoint8           9237/s        --      -58%   -73%              -82%    -86%
elim_last          22232/s      141%        --   -36%              -58%    -67%
pack01             34855/s      277%       57%     --              -34%    -49%
count_and_replace  52466/s      468%      136%    51%                --    -23%
sexeger            68259/s      639%      207%    96%               30%      --
two_parts          72359/s      683%      225%   108%               38%      6%
delpoint2          80775/s      774%      263%   132%               54%     18%
via_split          90009/s      874%      305%   158%               72%     32%
delpoint1         101626/s     1000%      357%   192%               94%     49%
rindex01          145985/s     1480%      557%   319%              178%    114%
look_ahead        163399/s     1669%      635%   369%              211%    139%

                      Rate two_parts delpoint2 via_split delpoint1 rindex01 look_ahead
delpoint8           9237/s      -87%      -89%      -90%      -91%     -94%       -94%
elim_last          22232/s      -69%      -72%      -75%      -78%     -85%       -86%
pack01             34855/s      -52%      -57%      -61%      -66%     -76%       -79%
count_and_replace  52466/s      -27%      -35%      -42%      -48%     -64%       -68%
sexeger            68259/s       -6%      -15%      -24%      -33%     -53%       -58%
two_parts          72359/s        --      -10%      -20%      -29%     -50%       -56%
delpoint2          80775/s       12%        --      -10%      -21%     -45%       -51%
via_split          90009/s       24%       11%        --      -11%     -38%       -45%
delpoint1         101626/s       40%       26%       13%        --     -30%       -38%
rindex01          145985/s      102%       81%       62%       44%       --       -11%
look_ahead        163399/s      126%      102%       82%       61%      12%         --