Posts

89 posts

How to Downgrade PostgreSQL from 11 to 9 to Fix "pg_dump: Aborting Because of Server Version Mismatch" Error

In the world of GitLab and PostgreSQL, compatibility is crucial. When using GitLab Omnibus, you’ll find it ships with PostgreSQL 9.6. However, if you’re leveraging an external PostgreSQL database container, it’s essential to adhere to a key requirement: GitLab only supports the exact version of PostgreSQL internally and externally. This subtlety often gets lost in the shuffle, especially for those new to the ecosystem. To put it plainly, if you’re running a Docker installation of GitLab, you must use PostgreSQL 9.6—no more, no less. ...

April 21, 2019 · 3 min · 569 words

How to Use the AWS CLI to List IP Addresses and Other Instance Information

When it comes to managing cloud infrastructure, clarity is paramount. Security officers, managers, and other stakeholders often seek a high-level summary of instances within their hosting environment. While visualizations can be enlightening, there are times when raw data is simply more useful. Enter the AWS Command Line Interface (CLI) — a powerful tool that streamlines this process with the describe-instances command. The basic command is straightforward and well-documented. To retrieve a comprehensive overview of your EC2 instances, you can run: ...

March 5, 2019 · 2 min · 282 words

Taming Google Search Results With uBlock Origin

Web advertising has become an unwieldy beast. What began as a means to support quality content has morphed into a cumbersome, privacy-invading presence that often detracts from the ideals of the internet. Fortunately, we have powerful tools at our disposal to combat this trend. Enter uBlock Origin, a versatile content blocker that excels at more than just blocking ads. At its core, uBlock Origin allows you to customize your browsing experience by blocking any content on a site of your choosing. For instance, when you fire up a Google search, the default view may include distractions like embedded ads and extraneous suggestions. Let’s explore how uBlock can help streamline your search results for a cleaner, more focused experience. ...

March 4, 2019 · 2 min · 377 words

Comparing YouTube Downloaders: Why I Chose Tubearchivist

In the digital landscape, where algorithms often feel like labyrinthine mazes and ads spring up like weeds, the YouTube viewing experience can be downright frustrating. The relentless pursuit of revenue has led to a user interface cluttered with distractions, leaving many of us yearning for a simpler, more enjoyable way to consume content. Fortunately, a community of intrepid open-source developers has risen to the challenge. They’ve created tools designed to help us reclaim control over our viewing experience. ...

February 25, 2019 · 3 min · 498 words

Force OSX Finder to Always Show Hidden Files

By default, macOS takes a protective stance, cloaking system and “hidden” files (those unassuming entries that begin with a period). For power users and curious minds alike, this can feel like an unnecessary barrier—an affront to our intelligence as we navigate the intricacies of our digital worlds. So, how do we reclaim visibility? It’s simpler than you might think. Just run the following command in your Terminal: defaults write com.apple.finder AppleShowAllFiles YES Once you’ve executed that magic incantation, give your Finder a little nudge by option+right-clicking on the Finder icon and selecting “Relaunch.” Voilà! Hidden files now appear, ready for your exploration. ...

January 3, 2019 · 1 min · 171 words

Changing the Key Repeat Rate in macOS

Changing the key repeat rate on macOS can profoundly enhance your typing experience. If you’ve ever felt that the default settings were, well, a bit sluggish—like trying to sprint through molasses—you’re not alone. The good news? While System Preferences doesn’t offer an obvious way to tweak these settings, we can accomplish this through the command line. Let’s explore how. Why Adjust Key Repeat Rates? The key repeat rate is essentially how quickly a character appears when you hold down a key. For heavy typists, coders, or anyone who values a responsive keyboard, a faster repeat rate can significantly boost productivity. Finding the right balance not only enhances your flow but also minimizes frustration. Think of it as fine-tuning an instrument—small adjustments can lead to a harmonious experience. ...

January 3, 2019 · 2 min · 330 words

Install and Enable GIT Large File Support in OSX

If you’re navigating the challenges of large files in your Git repository—think audio clips, videos, or substantial datasets—Git Large File Storage (LFS) is your ally. In essence, it replaces bulky files with lightweight text pointers within Git, while the actual content resides on a remote server, such as GitHub. This approach not only streamlines your repository but also enhances collaboration among team members. Let’s Get Started with GIT LFS on OSX: Install Git LFS First up, let’s get Git LFS installed using Homebrew. Open your terminal and execute the following command: brew install git-lfs Initialize LFS in Your Repository Navigate to your project directory. Once you’re there, kickstart Git LFS by running: git lfs install If everything goes as planned, you’ll see the reassuring message: “Git LFS initialized.” Identify Large Files With LFS set up, it’s time to pinpoint the largest files in your repository. This step is essential for determining what needs tracking. Execute this command: find ~/Documents/path/to/repo -type f -exec du -h {} + | sort -rh | head -n 10 This command will present your top ten largest files, providing clarity on what you might want to manage using LFS. Track File Types Now that you’ve identified the heavy hitters, instruct Git LFS to track specific file types. For instance, if you’re working with video files, you might run: git lfs track '*.mp4' To view a list of all the paths, files, and types you’ve chosen to track, simply run: git lfs track ...

October 9, 2018 · 2 min · 361 words

How to Recursively Fix File Permissions in Mac OSX and Linux

When navigating the intricacies of a GIT repository, one common challenge often feels like a hidden trap: file permissions that shift unpredictably, triggering GIT to flag a barrage of changes. This scenario is especially prevalent when files transition from Windows systems, but it can crop up in various contexts. Fortunately, there’s a simple remedy: recursively updating file permissions. Why This Matters Think of file permissions as the gatekeepers of your digital realm. They dictate who can read, write, or execute a file. Misconfigured permissions can sow confusion and frustration, leading to unnecessary roadblocks in your workflow. Ensuring the correct permissions is essential for smooth code execution and effective collaboration within your team. ...

September 20, 2018 · 2 min · 316 words

The Best Way to Block Image Hotlinking

Image hotlinking isn’t just an inconvenience; it’s a silent siphon on your resources and a potential doorway to vulnerabilities. At its core, hotlinking occurs when another website embeds an image directly from your server without your consent. This practice can inflate your bandwidth costs and expose your site to security risks. So, how do we effectively curb this practice? If you’re using Drupal, a few straightforward lines in your sites/all/files/.htaccess file can make a significant difference. Let’s walk through a practical approach to securing your images: ...

September 11, 2018 · 2 min · 351 words