Welcome to my homepage

I hope you enjoy looking through my stuff, you fucking weirdo.

Always use the right node version

Do you switch between versions of nodejs for different projects, and sometimes (a lot of the times) you forget to actually switch the version? Well, I've got a solution for you!... If you use zsh and nvm, anyway.

Drop this snippet in your .zshrc and you're good to go! All it does right now is check for a .nvmrc file in the same directory, and if that exists, then it'll run nvm use, which will attempt to switch to the version specified by the .nvmrc file. If you don't have the right version installed, it'll whine and you'll need to install it manually, but I hope to automate that soon enough, and I figure that's better than nothing.

Now you just need to add .nvmrc files to all your repos. Fun, right?

function set_node_version() {
    if [ -f "$PWD/.nvmrc" ]; then
        nvm use
    fi
}

add-zsh-hook chpwd set_node_version

Another Twitter script

I have over 500 "interests" according to Twitter, and I'd rather not. So I made this script that will go through and uncheck all your interests. Go to your interests settings page, paste the script below into your console, run it, and wait. There's a 2 second delay between unchecking interests because if it goes any faster than that the API craps out after a while and it doesn't recover for about 10 minutes.

const checks = $0.querySelectorAll('input[type="checkbox"][checked]');
let current = 0;

console.info('Total: ' + checks.length);

const uncheckIt = () => {
  const item = checks.item(current)

  console.log('Item', item);

  if (item) {
    item.previousSibling.click();
  }

  current++;

  if (current < checks.length) {
    setTimeout(() => { uncheckIt(); }, 2000);
  } else {
    console.info('Done!!!');
  }
}

uncheckIt();

A whole new blog thing

· Updated 

On a suggestion from my lovely and amazingly talented wife, and an idea I'd been kicking around for a while, I decided to build this monstrosity. We both thought it would be nice to have a place like Facebook or Twitter or whatever, but that's just for you. I realize I just described a blog, and I suppose I could've just installed Wordpress with bunch of plugins to do what we wanted, but where's the fun in that?

For fucks sake, really? Another blog?!

Yes, this is more blog software. Some very simple blog software. You can make posts, and you can attach files (think pictures and videos) to those posts. You write your posts in Markdown, and there's some basic privacy (public/private, allow comments or not) features, too. You can also import your data from Facebook, Twitter, and Instagram! The main difference between this and any other blog software, as far as I know anyway, is the feed.

The feed!

You can add your "friends" (websites) and, if they have an RSS feed, it'll be pulled in and displayed on your "feed" page, kinda like Facebook, but more like an RSS reader, because that's all it really is :-) Nothing really fancy, but a nice way to keep up to date with all your friends from one easy place, just like Facebook. There's no way to "like" things that show up on your feed, but you can share them very easily.

What else?

Hell, I don't know 🤷‍♂️ There's still a lot of features I want to add... Hashtags would be cool, email notifications could be helpful, a password reset UI, a setup process. I still haven't thought of a good name for it yet. And while currently it's locked up in a private repo, I'll be flipping that switch to public as soon as I'm comfortable I haven't committed anything too embarrassing.


Retweeted @kntoukakis

RT @kntoukakis: Very interesting article for websites that offer software downloads. Even established small software businesses would need…


Retweeted @Foone

RT @Foone: I had a terrible idea on the way home today: what if you could connect two computers together with thunderbolt?

It's basically…


Retweeted @redlightvoices

RT @redlightvoices: I see reviews of the decade about to end and different cultural milestones that defined us but I believe few moments re…


Retweeted @justhighlo

RT @justhighlo: Here's a little sneak peek at the next few episodes of #lunchwithlo: infused bacon, bread pudding with egg nog sauce, almon…


Retweeted @dustrial

RT @dustrial: Democratic representation and ideals are under attack worldwide, gerrymandering, voter suppression, Sinclair broadcasting, Fo…