Blog Posts:

Ubuntu: display current active kernel: uname -r display a list of all installed kernels: dpkg –list | grep linux-image remove old kernels (keep 2-3 previous versions for rollback purposes): sudo apt-get purge linux-image-x.x.x-x-generic  

Instructions derived from https://support.apple.com/en-us/HT201372 We’ll be using terminal and the createinstallmedia command: Download the macOS Sierra installer Launch the App Store app, then look for macOS Sierra in the store. (Here’s a link.) Click on the Download button, and your Mac will download the installer to your Applications folder. If it automatically launches after download, […]

I had an issue with an Apple MacBook Pro that was constantly running the fans at high RPM’s. Sometimes the CPU was running high (90-100%) without justification (simply browsing the web and checking email) other times the CPU was running low (10-15%). Steps to resolve included: Reset the NVRAM (non-volatile random access memory) Reset the SMC […]

# enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval “$(dircolors -b ~/.dircolors)” || eval “$(dircolors -b)” alias ls=’ls –color=auto’ alias grep=’grep –color=auto’ alias fgrep=’fgrep –color=auto’ alias egrep=’egrep –color=auto’ fi alias l=’ls -CF’ alias ll=’ls -alhF’ alias la=’ls -A’ alias cp=’cp -iR’ alias […]

# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don’t do anything case $- in *i*) ;; *) return;; esac # don’t put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # […]

An alias is simply a reference to a string, but it makes it possible to shorten a command (or set of commands) inclusive of any options for the command. Why use aliases? To save time. Programmers like to refer to themselves as a lazy bunch, but I prefer to think in terms of being efficient rather than lazy. By […]

Simple command line options to backup a MySQL database: backup a database locally using mysqldump, date and time in the filename, and compressionmysqldump -uUSERNAME -pPASSWORD DATABASE | gzip -9 > ~/$(date +%Y-%m-%d-%H%M)_intiotpa_stage.sql import compressed file back into databasegunzip < ~/backups/FILENAME.sql.gz | mysql -uUSERNAME -pPASSWORD DATABASE

Every now and then SmartGit complains about my version of git on Mac OS X. It says I don’t have a recent enough version of the git executable. I have SmartGit configured to use the git executable found in /usr/bin/git on my Mac. Now, I know that the version meets the minimum requirements, so what’s […]

Assuming: “Install OS X Yosemite.app” is located in the “Applications” folder USB stick has been erased/formatted and labelled UNTITLED USB stick is 8GB or larger Run the following: sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia –volume /Volumes/UNTITLED/ –applicationpath /Applications/Install\ OS\ X\ Yosemite.app –nointeraction

[:en]Good old dad picked up a bottle of this for Easter, but I got an early tasting due to coming over here to set up his scanner. Cannot wait until Easter to razz my brothers when they notice the open bottle. very faint nose but quite pleasant. The front is mildly fruity with deep smoke on […]