Welcome to brian.staruk.me

My name is Brian Staruk and I am a 27 year old Web Developer from Boston, MA.

This website, created on November 16, 2011, serves as my own little space in which I keep notes on various subjects and play around with my latest favorite toy: Wordpress.

Count User Posts Including Custom Post Types in WordPress

The number returned by count_user_posts() in Wordpress does not include custom post types. If you need to get a count of user posts that does include custom post types, try this function out.

Add Custom Post Types to Author Page in WordPress

By default, Wordpress only shows posts on the author bio page. Use this function (in the functions.php of your theme, or in a plugin) to add custom post types to the query used to return content created by authors.

Add Existing User to Existing Group in Ubuntu

How to add an existing user to an existing group in Ubuntu.

Install Ruby & Compass on Ubuntu 14.04

A set of commands for use in terminal to install Ruby, then Compass on Ubuntu 14.04.

Create a Symbolic Link in Ubuntu

A symbolic link is a file that serves as a shortcut (or link) to another file or directory on a disc. This is a quick how-to on creating a symbolic link in Linux via terminal or SSH.

Clone Git Repo to Directory via SSH or Terminal

A quick how-to on cloning a git repository that you have SSH access to, onto the server that you are currently SSH’d into (or your local terminal).

Windows: Installing Ruby with Sass, Compass and Zurb Foundation (Optional)

A short guide on how to get your Windows machine setup to compile Sass from the command line with Ruby & Compass. We’ll be using Zurb Foundation as an example starting project.

Gorillaz Plastic Beach Gifs

Warning: 10mb+ in GIFs. Not recommended for mobile devices.

Terminal / SSH: New Directory with Children

This is a command I use quite often for setting up new directories to be used as containers for websites. When creating these containers, I like to organize the contents by putting them into three folders: backups, logs & public.

Increase Headphone Volume on Any Rooted Android Device

One of my only gripes with stock Android is that the headphone volume levels are extremely low compared to what I’m used to on pretty much any 3rd party ROM. The good news is that increasing the headphone volume on your rooted Android device is as easy as editing one file and rebooting.