mkfs with label

Posted on Thu 11 May 2017 in Linux, mkfs

Pretty basic, but for whatever reason I always tend to forget the flag for setting a label when using mkfs. For future reference:

mkfs.ext4 -L label /dev/sdb1

Continue reading

Prevent Firefox from automatically creating directories

Posted on Thu 11 May 2017 in Linux, Firefox

Finally decided to look into something that has been kind of bugging me for quite a while now - Firefox automatically creates ~/Desktop and ~/Downloads directories if they don't exist everytime it starts. Turns out this is a feature, not a bug. It's another example of Firefox being the good guys …

Continue reading

macOS xcrun Error Fix

Posted on Sat 04 March 2017 in macOS, xcrun, git, curl

Got the following error when trying to run both git and curl on macOS Sierra:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at:

A quick search yielded the following website which had the quick fix - running xcode-select --install from the terminal.

Source: Link

Continue reading

urxvt + zsh backspace fix

Posted on Wed 22 February 2017 in Arch, urxvt, zsh

Ran into a strange issue with zsh in urxvt that apparently is nothing new as a quick search gave the answer in the first link. The problem is that backspace doesn't work as expected, acting just like the space key.

Ask Ubuntu Answer

Just add the following to your ~/.zshrc …

Continue reading

Bluetooth Setup on Arch

Posted on Mon 20 February 2017 in Arch, Bluetooth

Bought a new bluetooth keyboard and mouse so I had to get bluetooth up and running on the Arch box. Had a bit of an issue with powering the dongle on at boot so I thought I'd leave the fix here just in case.

Arch Wiki Entry

Install packages:

# pacman …

Continue reading

Let's Encrypt with Nginx on FreeBSD

Posted on Fri 03 February 2017 in FreeBSD, Let's Encrypt, Nginx

Built a few new servers the past couple of weeks and decided to try my hand at Let's Encrypt for SSL certs this time around instead of going to traditional route and paying for everything.

# pkg install -y py27-certbot
# service nginx start
# certbot certonly --webroot -w /usr/local/www/my …

Continue reading

Rebuttal to "Is there a god?"

Posted on Thu 02 February 2017 in Skepticism

I came across an article that brings a few commonly-seen apologetics used to suggest that there is a god and concludes at the end that Jesus is the most likely candidate. The curious bit is that it doesn't come straight out and say that each point is somehow evidence for …

Continue reading

pw: user 'git_daemon' disappeared during update

Posted on Wed 01 February 2017 in FreeBSD, passwd, git

Ran into the following error on FreeBSD the other day while trying to install git:

root@host:~ # pkg install -y git
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New …

Continue reading

Shared object "" not found, required by "pkg"

Posted on Wed 01 February 2017 in FreeBSD, pkg

Ran into the following error on FreeBSD today after upgrading from 10.3-RELEASE to 11.0-RELEASE with freebsd-update:

root@host:~ # pkg
Shared object "" not found, required by "pkg"

Did a quick Google search and found this FreeBSD forum thread that helped me out.
Just had to re-install …

Continue reading

Pelican on FreeBSD

Posted on Tue 22 November 2016 in FreeBSD, Pelican

Decided to start up a blog and instead of going with something like WordPress, I went with static HTML using pelican. Got it up and running quite easily inside of a jail with nginx on FreeBSD 11, with only one snag. Was a pretty smooth process except for one small …

Continue reading