Author's details

Date registered: May 19, 2008

Latest posts

  1. Fix yum hang on CentOS — November 24, 2016
  2. PowerShell Cheat Sheet — September 16, 2016
  3. Capture and convert live AVCHD output to MP4 — August 14, 2016
  4. du without the du command — July 26, 2016
  5. Unix Cheat Sheet — October 21, 2015

Most commented posts

  1. Technology Leadership HTML/CSS FAQ Area — 2 comments
  2. Blogging with WordPress Part 8 — 1 comment

Author's posts listings

Nov 24

Fix yum hang on CentOS

ls -l /var/lib/rpm rm -f /var/lib/rpm/__db* rpm -vv –rebuilddb rm /var/run/ yum yum clean all OPTIONAL: yum update

Sep 16

PowerShell Cheat Sheet

LINUX                          PowerShell alias                             alias alias cmd=’new alias’     Set-Alias ‘new alias’ cmd cat a >> b                   cat a |sc b clear     …

Continue reading »

Aug 14

Capture and convert live AVCHD output to MP4

Capture and create MP4 from live AVCHD video camcorder using ffmpeg. This is an example using the AVCHD input from a SONY or PANASONIC HD camera on Windows. I use cygwin so I can create pipes or automate things in Windows. I use ffmpeg.exe to grab the video from the camera and convert/re-encode to other formats …

Continue reading »

Jul 26

du without the du command

Print the number of bytes of storage capacity the current directory recursively uses:

ls -lR $1 | grep -v ^d | awk ‘{total+=$5;} END {print total;}’

Oct 21

Unix Cheat Sheet

Turn off color in vi 

:syntax off


Line count output (rate) per 1 second (e.g. to determine # of apache web requests at 1 second intervals)

tail -f access.log|perl -e ‘while (<>) {$l++;if (time > $e) {$e=time;print “$l\n”;$l=0}}’


Continue reading »

Older posts «