Increase EBS volume of AWS on linux

Problem

  • A disk volume 32GB /dev/xvdf1 is mounted into /var/lib/mysql
  • This volume is out of space, need to be extend size to 64GB
  • Extended to 64GB on aws console, but from ec2 point of view, it’s just 32GB

Rootcause: didn’t merge partition after extending and resize fs


Understanding top command

top is a monitoring program which is used frequently for tracking process’s resource usage and its activity in real-time, show current tasks being serviced by the kernel, help discovering and diagnosing overload or capacity of system by seeing CPU & Mem usage. It’s available under many Unix/Linux operating systems.

Keyword: top, uptime, users, load average, process/thread state, CPU operation


Adware on Betternet chrome extension

Sometime when clicking to any urls on internet, chrome redirects to ads sites like http://eltrack.pro/azkzkyvodi or something like this. Also see pornographic ads on new tab

  • Mac OS Sierra 10.12.5 (16F73)
  • Chrome Version 59.0.3071.109 (Official Build) (64-bit)

TL;DR: Remove Betternet out of chrome


The MySQL binary log

The binary log contains events that describe database changes such as table creation operations or changes to table data. It also contains events for statements that potentially could have made changes (for example, a DELETE which matched no rows), unless row-based logging is used. The binary log also contains information about how long each statement took that updated data.

Binlog


Ways to get more important things done

Let’s define productivity. Productivity is a measure of efficiency of a person completing a task. We often assume that productivity means getting more things done each day. Wrong. Productivity is getting important things done consistently. And no matter what you are working on, there are only a few things that are truly important. Being productive is about maintaining a steady, average speed on a few things, not maximum speed on everything.

Warren Buffett’s “2 List” Strategy for Focused Attention

Buffett uses a simple 3-step productivity strategy to help his employees determine their priorities and actions. You may find this method useful for making decisions and getting yourself to commit to doing one thing right away

Step 1: Write down your top 25 career goals. Or you could also complete this exercise with goals for a shorter timeline. For example, write down the top 25 things you want to accomplish this week.

Step 2: Review this list and circle top 5 goals

Step 3: Start working on top 5 goals right away. Everything in 20 things that you didn’t circle just became your avoid-At-All-Cost list.

No matter what, these things get no attention from you until you’ve succeeded with your top 5