According to Wikipedia, Typosquatting, “is a form of cybersquatting, and possibly brandjacking which relies on mistakes such as typos made by Internet users when inputting a website address into a web browser.” This same technique can be used to bypass email protections and get malicious mail into mailboxes with domains that look like they are authentic.

To thwart typosquatting you may try acquiring as many of these look-alike domains as possible. But if you stop there, you may be leaving an opportunity available for these domains to be spoofed and used maliciously. …


Homebrew upgrade foiled again

Ran into this error while attempting a brew upgrade

...

==> Casks with ‘auto_updates’ or ‘version :latest’ will not be upgraded; pass ` — greedy` to upgrade them.
==> Upgrading 7 outdated packages:
Error: Cask ‘inkscape’ definition is invalid: invalid depends_on key: ‘:x11’

I attempting to remove the package.

➜ ~ brew remove inkscape
Error: Cask ‘inkscape’ definition is invalid: invalid depends_on key: ‘:x11’

Well, crap.

It turns out there is a line in one of the Ruby files that explicitly states:depends_on x11: true

➜ ~ find “$(brew — prefix)/Caskroom/”*’/.metadata’ -type f -name ‘*.rb’ -print0 | xargs -0 grep “depends_on x11”

/usr/local/Caskroom/inkscape/.metadata/0.92.2–1,11269/20190325002053.787/Casks/inkscape.rb: depends_on x11: true

We don’t have X11 so it’s safe to remove this line.

➜ ~ sed -i ‘’ ‘/depends_on x11:/d’ /usr/local/Caskroom/inkscape/.metadata/0.92.2–1,11269/20190325002053.787/Casks/inkscape.rb

After removing it, running brew upgrade completes without issue.


After upgrading to macOS Big Sur 11.2.1, I ran into an error after trying to share my tmux config.

➜ ~ cat .tmux.conf | grep -v ^# | strings | pbcopy

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

The fix is just an quick reinstall of the XCode command line tools, something that seems to be needed somewhat regularly after upgrading MacOS.

➜ ~ sudo xcode-select --install

But what happened? A little process of elimination reveals the command that triggered the error was strings. But why?

The error seems to point to xcrun. A quick man…


Back of the napkin use of geolocation data for fun and profit

I wrote previously about some basic use-cases of the incredibly awesome REST API from ipinfo.io for getting access to IP address data. Here we are putting this to work in our day-to-day operations.

To begin, create a free account to gain access to the higher usage limit of 50,000 API requests per month. After creating an account, access your dashboard from https://ipinfo.io/account, scroll down to the bottom, and grab your access token. You’ll need this later.

When email credentials are compromised you’ll likely see an increase in logins from multiple geographic locations at the same time. …


I hate winter. I need up-to-date data every couple of days telling me exactly how much more of winter I have to endure. I don’t trust foreign and/or unproven sources for this knowledge, I had to create something myself.

Here’s what I used:

Allocate a folder or something, example /var/www/html/spring, change to it, and download the plugin:

➜ ~ wget -q https://github.com/hilios/jQuery.countdown/releases/download/2.2.0/jquery.countdown-2.2.0.zip

➜ ~ unzip jquery.countdown-2.2.0.zip

➜ ~ cd jquery.countdown-2.2.0

➜ ~ cp jquery.countdown.js /var/www/html/spring

Make sure you have jQuery, too.

Create a file /var/www/html/spring/index.html with the contents below:

Navigate…

George J Ficzeri

I work in tech. Occasionally write about tech.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store