Dimas Maulana

Dimas Maulana

Developer

Welcome to my website! I am a developer with a current focus on React and Go. My experience encompasses both front-end and back-end development, enabling me to design and develop seamless and efficient applications.

Disabling Auto Traffic Promotion in Google Cloud App Engine

When deploying applications to Google Cloud App Engine, you might want to disable the automatic traffic promotion feature, which promotes the latest deployed version to receive 100% of the traffic by default. This can be useful when you want to manually control when a new version of your application should start receiving traffic. To disable auto traffic promotion, you can use the following command in your terminal:

1
$ gcloud config set app/promote_by_default false

This command configures your Google Cloud CLI (gcloud) to not automatically promote the latest deployed version. Here’s what each part of the command does:

How to Disable/Enable Updatedb.mlocate to Reduce Disk IO

The updatedb.mlocate service is responsible for updating the mlocate database, which can sometimes consume a significant amount of disk I/O. Here, we’ll explain how to disable and enable this service as well as provide a tip for customizing which directories are indexed.

Disable updatedb.mlocate

To disable the updatedb.mlocate service, follow these steps:

How to Install PHP on Windows and Enable Modules

In this guide, we will walk you through the process of installing PHP on a Windows machine using Chocolatey (choco) package manager. We will also show you how to enable the necessary modules in the php.ini configuration file to run popular PHP applications like the Laravel framework.

Prerequisites

Before you begin, make sure you have the following prerequisites in place:

Maven Could Not Detect Google Cloud SDK on Eclipse

If you’re encountering an issue where Maven cannot detect the Google Cloud SDK on Eclipse, there are a few solutions you can try to resolve the problem. In this blog post, we will explore three different solutions that you can use to fix this issue.

Solution 1: Use Automator Script

The first solution involves using an Automator script to set the GOOGLE_CLOUD_SDK_HOME environment variable before launching Eclipse. Follow the steps below:

Setting Up Environment Variables on MacOS Yosemite Using Launch Agent

In previous releases of macOS (Mavericks, Mountain Lion, Lion, …), configuring environment variables required editing the /etc/launchd.conf file. However, starting from macOS Yosemite, this method is no longer effective. To successfully configure environment variables on Yosemite and later versions, follow these steps:

  1. Create a Launch Agent Property List (plist) File: Create a plist file named my.startup.plist in the ~/Library/LaunchAgents/ directory. This directory is specific to user-based launch agent configurations.

  2. Define the Plist Structure: The content of the my.startup.plist file should adhere to the XML-based property list format. This format is used to specify various attributes that dictate the behavior of launch agents.

Docker Command Remove / Clean Up

When working with Docker, it’s essential to clean up unused containers, images, and other resources to free up disk space and keep your system tidy. Here are three options for cleaning up Docker resources:

Option 1: Using docker-clean

You can use a third-party tool called docker-clean to help you clean up Docker resources more efficiently. This tool provides a simple command to remove stopped containers, dangling volumes, and unused images.

0%