groot.sh: because I can’t remember to sudo

UPDATE 2016-11-10: I no longer use this. It’s here for posterity, but in the future please use sudo !!.

I always forget to use sudo. Every time. To save me a few seconds, I wrote groot.sh (guarantee root). It’s a small shell script that simply checks if you’re root. If you are, it runs its arguments as a program; if you aren’t, it warns you and gives you a 3-second window to cancel before running its arguments as a program as root. Use it like this:

alias brew='/path/to/groot.sh brew'

and presto, every time you run Homebrew, you are root. (Homebrew in particular is annoying because if you run as a user it does everything but the last step, and you need to brew link <...> instead of just brew install <...>-ing.)

Rough edges, or: WordPress is Harder Than It Looks

Most of the transition went smoothly. I had the site on test.vikomprenas.com for a while and just copied the files across and then fixed the inevitable few glitches. After correcting the Site URL everything worked!

Except it didn’t.

Here is a list of what I had to fix afterward:

  • Jetpack Markdown support (still not quite working)
  • Jetpack WordPress.com connection
  • Jetpack site monitoring
  • The Home entry in the menu bar (it was a custom link)

Seems like a small list, sure, but the biggest problem with all of them is that I don’t play any basketball.

Welcome to the new site! Again!

You may have noticed that the site looks a little bit different now. Actually, it looks very different. You almost certainly noticed it looks a little bit different.

That’s because I’ve migrated the site to WordPress! I used to use Jekyll, which is great in theory but difficult in practice because you have to pull out a command line and FTP in order to make any changes.

This is going to be a fairly long blog post, the longest I’ve had so far. There’s a lot to cover today, so hold on to your hats!

Continue reading “Welcome to the new site! Again!”

New theme, take two

This blog post was copied from an older version of ViKomprenas.com. When it refers to “the new site”, it means the older one.

I was going to go with ‘version two’ but it’s not really fair to make something a ‘version two’ when it’s so different from the original.

No more Material Design! It sucked. Or maybe I’m just doing things because I feel like it, but I’m pretty confident I prefer this version. I like green, as you can tell. Everything is so minty!

New theme is in beta!

This blog post was copied from an older version of ViKomprenas.com. When it refers to “the new site”, it means the older one.

Okay, maybe a full Material Design layout for a personal homepage is a bit overkill… But I like it, so it’s staying. It might get a few tweaks, though.

Sorry, phones

This blog post was copied from an older version of ViKomprenas.com. When it refers to “the new site”, it means the older one.

The home page does not look the best on phones. I am going to try to remake the theme completely soon™, so I won’t bother actually fixing it right now.

Whoops!

This blog post was copied from an older version of ViKomprenas.com. When it refers to “the new site”, it means the older one.

I forgot to upload the BCL specification! Good thing I made that copy of the old website, I don’t think it’s in the Git repo.

Also, a few minor notes:

  • The blog post permalink format has changed. Previously this particular post (for example) would be /blog/2015-08-06/whoops/. Now it’s /blog/2015/08/whoops/.
  • I’m still working out how to do inline code blocks nicely. They don’t look that good right now.
  • I may change the fonts used in the near future. Or, I may not. Who knows.
  • Pages now show the last time they were generated at the bottom, in the footer.