What is a vision board

A vision board is a collage of images and words that represent what you want to achieve. The idea is that seeing your goals visually keeps them in focus and motivates action. You can make one physically with printed images and a pinboard, or digitally with tools like Canva or Pinterest. It works for short-term targets as well as longer aspirations. Sources: Oxford Dictionaries: http://www.oxforddictionaries.com/definition/vision_board Psychology Today: https://www.psychologytoday.com/us/blog/click-here-happiness/202103/what-is-vision-board-and-why-make-one

6 May 2023 · 1 min · 68 words · Shafiq Alibhai

Inner child therapy

Inner child therapy works from the idea that parts of us retain the emotions, memories, and needs from childhood. If those needs went unmet, they can shape how we think and behave as adults. The therapy aims to identify those old wounds, give them space to be expressed, and respond to them with the compassion they didn’t receive originally. Techniques include guided imagery, journaling, letter writing to your younger self, and dialogue exercises. ...

3 May 2023 · 1 min · 117 words · Shafiq Alibhai

Remove lines matching a pattern from files recursively in Linux

find . -name "*.md" -type f -exec sed -i '/pattern/d' {} \; This one-liner walks the directory tree, finds every .md file, and strips out any line that matches the given pattern. The sed -i edits each file in place, and the {} gets swapped out for whatever path find hands it. Breaking it down find . -name "*.md" -type f does the walking. The -type f bit is important – without it, find would also match directories and pass them to sed, which would error out. The -exec ... \; at the end runs the command for each file individually. ...

27 April 2023 · 2 min · 299 words · Shafiq Alibhai

Installing PhantomJS on Ubuntu 22.10

PhantomJS is a headless browser, which means it runs without a graphical interface and lets you automate web page interactions through scripting. I needed it for some automated testing at work and ran into a few things worth writing down, mostly because half the guides out there are either outdated or assume you already know what you’re doing. The version we’re installing is 2.1.1, which is the last release. The project has been unmaintained since 2017, but it still does what it needs to do for basic scraping and screenshot tasks. ...

27 April 2023 · 1 min · 199 words · Shafiq Alibhai

Deleting files by content match in Linux

There are two ways to interpret this question, and the answer changes completely depending on which one you mean. Deleting files by filename If you want to nuke every file whose name contains a particular string: find . -type f -name '*string*' -delete The -type f keeps it from touching directories. The -delete flag removes whatever find matches. Simple enough. A word of caution: test without -delete first. Run the same command and replace it with -print to see what would actually get deleted. I’ve lost files to typos in wildcard patterns more times than I care to admit. ...

27 April 2023 · 2 min · 305 words · Shafiq Alibhai

What DevOps Collaboration Actually Looks Like

I spent years watching development and operations teams sit on opposite sides of every incident. Developers pushed code over the wall. Operations inherited the fires. DevOps was supposed to fix that, but most teams just gave it a new name and kept doing the same thing. Real collaboration isn’t a poster on the breakroom wall. It’s the unglamorous daily work of making sure two groups who think differently about problems end up solving them together. ...

27 January 2023 · 4 min · 697 words · Shafiq Alibhai

Memento Mori

Memento Mori – remember you must die. The oldest trick in the Stoic toolbox, and still the one that cuts deepest when you actually let it land. It’s not meant to be morbid. The point isn’t to sit around thinking about corpses, it’s to use the fact of your mortality as a filter for what actually matters. You could leave life right now – not today necessarily, but at some point, and probably sooner than you think. Knowing that changes the weight of things. Most of the stuff you’re worrying about right now will not matter in a year, let alone at the end. That’s not depressing, it’s liberating. ...

25 August 2022 · 1 min · 201 words · Shafiq Alibhai

Amor Fati

Amor fati – love of one’s fate. Nietzsche’s phrase for the attitude that everything that happens to you, including the awful bits, is not just bearable but necessary, and ideally something you can welcome rather than merely endure. I keep coming back to it because it’s the harder half of the Stoic pair. Memento Mori tells you to remember you will die, which is useful for cutting through nonsense. Amor Fati tells you to love what happens to you, which is useful for not going mad while it’s happening. One without the other feels incomplete – mortality without fate is just anxiety, and fate without mortality is just fatalism. ...

24 August 2022 · 2 min · 258 words · Shafiq Alibhai

A bit of madness goes a long way

You don’t have to be crazy to live on Earth. But to some it helps to be. I saw this somewhere and it stuck because it is quietly true in a way that has nothing to do with clinical anything and everything to do with the simple fact that normal is a setting on a washing machine, not a lifestyle. The people who get anywhere – not necessarily successfully, just somewhere worth being – are the ones who are slightly unhinged about something. Obsessed in a way that makes other people uncomfortable. Willing to look foolish because the alternative is looking exactly like everyone else and going exactly where everyone else is going. ...

20 July 2022 · 1 min · 177 words · Shafiq Alibhai

How to Resolve "Cannot Unregister the Machine While It Is Locked" Error in Vagrant

Running vagrant destroy sometimes fails with: VBoxManage: error: Cannot unregister the machine 'CnC_default_1643660523119_45689' while it is locked The VM is locked because a VirtualBox process is still holding onto it. Kill the headless process and try again: killall -9 VBoxHeadless && vagrant destroy killall -9 VBoxHeadless force-kills any running VirtualBox headless instances. The && runs vagrant destroy only if that succeeds.

1 February 2022 · 1 min · 61 words · Shafiq Alibhai