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.

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.

Solving Laravel HTTPS to HTTP Proxy Issue

When you’re dealing with a setup where a client communicates with an SSL load balancer over HTTPS, and the load balancer talks to a backend server over HTTP, you might encounter issues with Laravel generating URLs with an http:// schema. To address this issue, you can implement the following workaround:

Step 1: Modify routes.php

Open your Laravel project’s routes.php file and add the following code snippet at the top of the file:

Understanding Docker Run Arguments: -I, -T, and --Attach

When working with Docker, you often use various command-line arguments to customize the behavior of containers when they are launched. Three commonly used arguments are -i, -t, and --attach. These arguments are often used together, and they serve different purposes in controlling how your container interacts with the terminal and user input.

-i - Interactive Mode

The -i flag stands for “interactive.” When you include this flag in your docker run command, it tells Docker to keep STDIN (standard input) open, allowing you to interact with the container’s command or application. Here’s what it means in more detail:

How to Force Select Text From a Screen Session on Terminal Mac

Sometimes, when you’re working in a terminal on your Mac and using the screen command to manage multiple shell sessions, you may encounter situations where you need to select and copy text from within a screen session. However, the usual text selection methods like click and drag may not work as expected within a screen session. In such cases, you can use the Fn key in combination with the Left Click to force select text within a screen session.

Make Google App Engine Local Development Server Available on Network

To make the Google App Engine Local Development Server available on your network using Maven, you need to configure the appengine-maven-plugin with the appropriate host and port settings. By default, the local development server runs on localhost, which means it’s only accessible from the same machine where it’s running. To make it accessible from other devices on your network, you should set the host to 0.0.0.0 to bind it to all available network interfaces.

0%