Skip to content

Instantly share code, notes, and snippets.

View syahzul's full-sized avatar
😑
burnout

Syahril Zulkefli syahzul

😑
burnout
View GitHub Profile
@syahzul
syahzul / how-to-install-php-oci8-for-macos-ventura-sonoma-and-above-on-apple-silicon-macs-arm64-version.md
Last active June 27, 2024 15:39
How to install PHP OCI8 for macOS Ventura/Sonoma on Apple Silicon Macs (arm64 version)

How to install PHP OCI8 for macOS Ventura/Sonoma on Apple Silicon Macs (arm64 version)

This tutorial will guide you on how to install OCI8 for PHP8.3 using Oracle Instant Client arm64.

1. Install Command Line Tools for Xcode

Run the command below if you haven't installed it on your machine.

xcode-select --install
@syahzul
syahzul / how-to-install-php-oci8-for-macos-ventura-sonoma-and-above-on-apple-silicon-macs.md
Last active June 25, 2024 13:01
How to install PHP OCI8 for macOS Ventura/Sonoma on Apple Silicon Macs - outdated

How to install PHP OCI8 for macOS Ventura/Sonoma on Apple Silicon Macs - outdated

Caution

Finally Oracle release Instant Client for arm64 architecture. Refer new tutorial How to install PHP OCI8 for macOS Ventura/Sonoma on Apple Silicon Macs (arm64 version) here.

Note
If your using macOS Monterey or below, please refer to How to install OCI8 on macOS (Monterey) M1 Processor with PHP 8.1

macOS Ventura and above, duplicating and renaming Terminal.app are disabled by Apple. In order to install the OCI8, we need to switch between arm64 and x86_64 architecture.

@syahzul
syahzul / how-to-install-oci8-on-macos-monterey-m1-processor-with-php-81.md
Last active May 10, 2024 20:21
How to install OCI8 on macOS (Monterey) M1 Processor with PHP 8.1
@syahzul
syahzul / Laravel-Sail-with-PHP81-and-Oracle-OCI8.md
Last active August 17, 2022 05:11
Laravel Sail with PHP8.1 and Oracle OCI8

Laravel Sail with PHP8.1 and Oracle OCI8

Step 1

Install Laravel Sail in your current project

composer require laravel/sail --dev
@syahzul
syahzul / how-to-completely-uninstall-vscode-on-macos-big-sur.md
Last active July 24, 2021 13:28
How to completely uninstall VSCode on macOS Big Sur

Remove Extensions

To remove only the extensions, run the the following command:

rm -rf ~/.vscode

Now all the extensions will be removed, and you can start from scratch to install the one you need.

@syahzul
syahzul / How-To-Install-OCI8-on-RunCloud-Ubuntu-20.04.md
Last active June 14, 2024 11:01
Install PHP OCI8 on RunCloud Ubuntu 20.04

How To Install OCI8 on RunCloud Ubuntu 20.04

This tutorial only tested with Ubuntu Server 20.04 configured by RunCloud.

Step 1

Visit Oracle Instant Client website and download the following files:

  • instantclient-basic-linux.x64-19.9.0.0.0dbru.zip
  • instantclient-sdk-linux.x64-19.9.0.0.0dbru.zip
@syahzul
syahzul / how-to-install-oci8-on-macos-10.15-catalina-with-php-7.3-7.4-homebrew.md
Last active May 10, 2024 20:22
How to install OCI8 on macOS 10.15 (Catalina) with PHP 7.3 or 7.4 (Homebrew)

How to install OCI8 on macOS 10.15 (Catalina) with PHP 7.3 or 7.4

Requirements

  • Homebrew
  • Command Line Tools for Xcode
  • PHP 7.3 or 7.4 via Homebrew

Preparation

@syahzul
syahzul / install-node.js-v13-and-npm-on-linux-mint-19.2.md
Last active December 1, 2019 16:53
Install Node.js v13 and NPM on Linux Mint 19.2 (Tina)

How to install Node.js 13.x and NPM 6.x on Linux Mint 19.2 (Tina)

Download the file

First, we need to download the file on our computer.

wget https://deb.nodesource.com/setup_13.x

Update entry

@syahzul
syahzul / reset-mysql-password-on-linux-mint.md
Last active January 22, 2024 17:16
Reset MySQL root password on Linux Mint 19.2

Let's start by stopping the currently running MySQL database.

$ sudo systemctl stop mysql.service

Next, create set proper permission to the folder to be used by MySQL process to store and access socket file.

$ sudo mkdir -p /var/run/mysqld