Mark Grealish

the life and code of a crazy cat man


funny

A hot new look

I changed the site’s layout because I didn’t like the old version. Along the way I fixed a good deal of shit code and poor design decisions. Gone is any compatibility with Internet Explorer. https://github.com/bhalash/sheepie-theme Off the top of my head, I: Removed KnockoutJS in favour of a teeny jQuery pub/sub model. Removed convoluted avatar […]

I think we were burgled

I’m confused as fuck. On Wednesday our lodger reported that €150 missing from her wardrobe. On Thursday I discovered somebody had stolen from my change jar. They took only the €1 and €2 coins. On Friday, after a lot of talk, our lodger reported this to the Gardai. We had a 10pm visit from two […]

Yet despite all that, I bought one anyways

Paul Mac Eoin and I have kickstarted a new technology podcast. The Future Of. Our slogan is ‘infinity…awaits!’ The Future Of is not just about technology: I want to explore European views and the wider shifts in culture that new gadgets wreak. There are dozens of American technology podcasts full of the Bay Area or […]

Many meetings

Here’s a blast from my past: I was an avid gamer in my teens. I can’t remember every game that I played. I can say that they included Magic, L5R, D&D, and Middle Earth. I put hundreds of hours into Tribes. I collected all the things, played all the things, and that was before had […]

Killiney Hill

Show untracked git files

This has been a real lifesaver at work. [alias] untracked = !git ls-files -o --exclude-standard

Bull Island

Eadaoin got us out of the house this morning for a walk through Saint Anne’s park in Clontarf and across North Bull Island. Gorgeous day, showers aside!

Typewriter sort returns!

I am revisiting 2014’s Typewriter Permutation Simulator. Now powered by Node.js, because I want to learn more JavaScript. I have a healthy start made for a web-based performant bogosorter. var args = process.argv.slice(2); var permute = function() { var letters = this.split(''), count = letters.length; while (--count > 0) { var rand = Math.floor(Math.random() * […]

If recruiters worked in bookshops…

Spotted this afternoon in Hodges Figgis.

Nonstop 5k run!

In January I got sick of being fat. All around me, clear to see, were middle-aged (45-60) year old people who didn’t take care of themselves. Most of my ex-wife’s family struggle with being overweight; diabetes is ubiquitous and even my ex-wife is seriously obese. My dad died of an asthma attack at 63 which […]

Bash spaceship function

I have no idea why this spaceship comparison is important, but a note in the file marked it so, and now here we are. #!/usr/bin/env zsh spaceship() { if [[ $1 -lt $2 ]]; then echo -1 elif [[ $1 -eq $2 ]]; then echo 0 else echo 1 fi } spaceship $1 $2

We did it Reddit!

NPM exploded last week. The Listos version is that Kik were not happy with a developer, azer. azer had a package in NPM named ‘kik’. Kik, compelled their trademark, first reached out to azer to ask him to rename or remove his package. azer cursed out Kik, so the company escalated the matter to NPM […]

My Ireland at 100

The Irish Republic turned 100 today and Dublin hosted a huge parade today at the culmination of events centered on the 1916 Easter Rising. The city and country turned out in pride and today was the day to be Irish.

Caira and Garrett, Easter 2016

Saturday out

Alanna and Casey came down last night. What a night it was! We had coffee in Clement & Pekoe, sushi and ramen next door in Kokoro and a round of pints at the Brew Dock. Then we went back to Dundrum for homebrewed mead on the couch. On Talbot Street saw two scumbags fighting (or […]

Eadaoin’s birthday debauchery

Eadaoin’s birthday weekend was Roman in its decadence, with high tea served at the resplendent Powerscourt Hotel in Enniskerry on Saturday, and a three-course feast of Mexican food consumed on Sunday.

Have the greenest of days

I used to be a remorseless asshole when it came to the Irish diaspora because of the amount of dipshit hyphenated Americans who flouted their misunderstood past. To me you were either Irish, or you were whatever else. Never could you be both together. Great example: two ladies I knew at Expedia, one named O’Shaughnessy, […]

Mandatory vim porn

I fixed a bunch of crap (Powerline font display, mostly). Go check it out! https://github.com/bhalash/vimrc

Eadaoin’s birthday dinner was deep

It started right off with explanations of arrays and hash tables.

Thanks Gar

Garrett has figured out that he can call me whenever, and now does so at 1am. Thanks, kiddo.

Snow day

…and I’m sick as shit. Eadaoin woke me up at about six am because there was a heavy snowfall. I, sick, proposed a walk around the neighborhood, which we promptly undertook. I got soaked, came home, emailed work to let them know I wouldn’t be in and then fell asleep until about one o’clock this […]

Joanna Newsom!

Joanna Newsom performed at a series of concerts in Dublin’s Olympia Theatre this week past. Eadaoin adores Newton’s music with a fervour that brooks no dissent and encourages discussion of lyrics. So there was a concert and Eadaoin kept an eye out for tickets on Twitter. Eadaoin jumped at two which came up for sale […]

vim clipboard one-liners

Yank and replace all lines in a file without consuming the clipboard. " Quickly yank all lines in the file. nmap <leader>yy :%y+<cr> " Replace all lines in the file with the contents of the clipboard. nmap <silent><leader>rp gg"_dGVp

So now I have to fucking type again anways

I bought a mechanical keyboard: the Vortex POK3R/Poker 3 keyboard. I mean, I sit at a desk and type six hours per day, five or six days out of any seven. A keyboard is my tool as much as a plumber uses a wrench, and my work-provided Magic Keyboard it shit. It controls the Mac […]

I was ordered to write

From on high an order has given unto me: I need to blog more. Okay, sure, fine, whatever. Here we are. Most of the real meaty content on this blog came out of my personal pain. A few years ago, shit blew up on me, I had a breakdown, and I poured it out here. […]

Vertiginous

zshell: cp the last file in a given directory

It’s come in useful for some small tasks. cp-last() { if [[ -d "$1" ]]; then echo "cd: ${1}: Not a directory" exit 1 fi cp "${1}/$(ls -A1t $1 | head -n 1)" "${2}" }

In Temple Bar

Caira and Garrett, February 2016

vim FIXME keybind

I’m onna roll, rite? This inserts a dated (format YYYY-MM-DD) FIXME comment into the above line. nmap <leader>fm :exe ':normal O# FIXME ' . strftime('%Y-%m-%d') . ': '<CR>i