Putting My Home Into Git

Tue 28 August 2018 by pj Tagged as linux

So I currently have two laptops: one for work and one for personal use. There is, however, a fair bit of overlap; I'd like to have a bunch of config files (.bashrc, .vimrc, ~/.config/i3/config, etc) and a bunch of useful scripts (in ~/bin) available in both places. I looked at a couple solutions, including dotfiles and such, but a post on StackOverflow had the outline of a solution that I'm fairly happy with.

I put an alias into my .bashrc:

  • alias homegit='git --work-tree=$HOME --git-dir=$HOME/.home.git'

And wrote a little script to automate setup on new machines:


if [ -d "$HOME/.home.git" ]; then
   echo "homegit already set up."
   exit 1

homegit="git --work-tree=$HOME --git-dir=$HOME/.home.git"

$homegit init
$homegit remote add origin $MY_HOMEDIR_REPO
$homegit fetch origin
$homegit reset
$homegit checkout -t origin/master

and then ran it. Then I wrote an info/exclude file:

# exclude everything
# ...except the following



So only the files I wanted to save were listed in a 'homegit status'. Then I could just homegit add them and could go to town!

I imagine maintaining the info/exclude file is going to be the main issue, but it's probably good for me to keep up with that minor skill anyway.

Auto Wrench Belt Replacement?

Wed 13 September 2017 by pj

Some years ago I received a gift of a Black and Decker AAW100 Type 1 'Auto Wrench'. It's nice for the lazy man (which is definitely me).

I recently pulled it out of the toolbox, only to find that it didn't work. A screwdriver and 5 minutes later and it …

read more

Ubiquiti Controller Password reset

Fri 28 July 2017 by pj Tagged as software wifi

I really like my Ubiquiti AP; it's very set-and-forget.

But apparently I take that too literally, because I've forgotten the password at least twice in the 3 months I've owned it.

So here's a note (somewhat to myself) of the one-liner to reset the password to password:

(echo 'use ace …
read more

Putting Puppy Linux on a Raspberry Pi

Fri 21 July 2017 by pj Tagged as linux raspi

I like the Raspberry Pi machines.... mostly. It's reasonably cheap, reasonably reliable, very widespread hardware. I just can't get comfortable running from an SD card - I've dealt with corrupted OSs on them waaaay too often in the past. So I went looking for a linux distro that would load from …

read more

dCore notes v0.1

Mon 17 August 2015 by pj Tagged as dcore linux raspi

What's dCore?

dCore is a TinyCoreLinux derivative that's based on Debian. TinyCoreLinux has the nice property of, once booted, running from RAM instead of scribbling on your USB stick for ephemeral things like log writes and pid files and etc.


I was lazy so I took the TinyCoreLinux installer …

read more

OSMC and hostapd

Tue 19 May 2015 by pj Tagged as kodi linux raspi wifi

I recently hooked up a Raspberry Pi running Kodi to my Living Room television, and it was a hit with the kids (their favorite shows and moving more easily accessible than by swapping DVDs) and the wife (easy to run via a remote app on her phone).

Separately, trips with …

read more

Packaging sites with Aspen

Tue 05 May 2015 by pj Tagged as aspen software www

As the co-maintainer of Aspen, I've focused mainly on making it easier to use, but have, myself, had few opportunities to build sites using it. One such was granted to me the other day, and I took the time to figure out how to build a python package that used …

read more

Vundle Rocks!

Sat 02 August 2014 by pj Tagged as software vim

So I just replaced a very complicated git repo with numerous submodules with a much simpler one.

This gift was granted to me by the creator of Vundle, which is a vim package manager that lets you specify desired vim packages in your .vimrc and then handles the download and …

read more

Laptop Overheating

Mon 12 May 2014 by pj Tagged as laptop personal news

This morning, my laptop was, as usual, showing an average idle running temp of around 76C, which is fairly hot, but didn't seem too bad... until I put it under load, at which point it shut down because of the temp limit of 97C. Much searching of the Internet commenced …

read more

Bundle of Holding 3+ Reviews

Mon 08 July 2013 by pj Tagged as book reviews

My friend Allen Varney just spearheaded Bundle of Holding +3, and I just finished reading them all, so here are some brief reviews:

  • Oathbreaker (Books 1 and 2) by Colin McComb - nice high fantasy, with lots of backstabbing and intrigue, though a bit heavy on backstory. And while the backstory …

read more