This is a note page for Git usage that I most likely can’t remember how to issue the commands for the tasks.

1   Manipulating commit history

1.1   Inserting a commit

This shows how to insert one in the past:

% git checkout -b new-commit after-this-commit-in-master-branch
% # doing stuff for the new commit
% git commit
% git rebase new-commit master

1.2   hg revert

% git reset --hard

In January, 2013, I started to record the lines of my ToDo files which are taken in vim-notes. One year later, I used Python and matplotlib to draw a graph.

Now, they are 3 years old and they look like:

Plotted using gnuplot

It’s quite interesting to take a look at it and I can see some moments from this figure. Here is some remarks:

  1. For both in the first year, there were much more changes than the last two. The reason for that is I constantly :w the notes when every I made a changes to them.
  2. As the end of the first year, you can spot a fairly long flat line in ToDo Bin, that’s when I only moved stuff from ToDo to ToDo Bin once a month, and you can clearly see the trend last for a year until the end of second year.
  3. During the first half of second year, I still constantly saved the ToDo, but since the September of the year, I reduced the saves. Normally, only when I had to leave X Window or reboot, then I would save.
  4. The last year, there is a significant drops in Bin, twice, one at the end of second year, another at around middle of February. They were clean-ups, big ones, as you could see the lines of ToDo Bin almost reached 4,000 lines in the end of second year. I had to do something, or the Bin would be like a dump, although it was meant for that.

There is one more thing I wanted to note, though unrelated to the lines, that is gnuplot is much easier to plot this type of graph, and the quality is great almost just out-of-the-box. I actually had updated the Python script for this and generated one before I got a chance to installed gnuplot of making a video, and I tried it out on the lines.

This morning, I noticed the system temperature was oddly low, only just above 40°C. I didn’t mind at first, but then I felt it seemed to run slower than before, which might just from confusion after I checked the frequencies from /proc/cpuinfo.

I had not looked at file for years, and I saw the frequency was fixed at 1833MHz and 1000MHz, two cores, respectively. So, I tried the ultimate fix, turning it off and on again, didn’t work. I began to wonder if anything got updated recently, not the kernel nor any system/hardware stuff that I could remember.

At this point, I laughed before I knew there must be a setting wrong and for years, I had not realized that. So I went back to the power management in kernel configuration and found that I might have been using the wrong governor since 2012-08-27 as kernel 3.4 recommended ondemand governor according to ArchWiki.

That was 3.5 years ago.

I heard that peas in basket would droop over nicely. Can’t really do that with drainage since the place I have in mind basically still indoor, or I can hang one right above another container, not sure that would work well. A tin can might do, or a milk jug, if that’s the hanging option, then I probably would add beans. Mint and basil might also good options. It’d be next to the window, where unfiltered sunlight still can directly come in.

What else:

  • My right ear and nose were burning, because I took 50 seeds from that long red pepper to save, they hurt. Glad that I hadn’t touched my eyes, unfortunately, I had to go to the toilet.
  • Google Consumer Surveys finally got started. It’s odd, 1 analyzed, but there are 9 in detailed reports.
  • READYT1k is basically done, might need to clean up that ugly codes. Frame rendering took 5+ minutes (200+70MB)and video took 11 minutes, so it would be 15+ minute for 1080p60 (~35MB).
  • Sound system burped for no reason, had to reboot.
  • Refilled bird feeder, back to serve nuts.