Skip to content

Instantly share code, notes, and snippets.

View bironeaj's full-sized avatar

Anthony Birone bironeaj

View GitHub Profile
#!/bin/sh
# This script will download and install NinjaRMM Agent for Mac
AppName=NinjaRMMAgent
mkdir /tmp/$AppName
cd /tmp/$AppName
curl -L -o $2 $1
sudo installer -pkg $2 -target /
@bironeaj
bironeaj / Database.php
Created October 25, 2018 23:17
Laravel IBM DB2 Connection
'ibmi' => [
'driver' => 'db2_ibmi_ibm',
// or 'db2_ibmi_ibm' / 'db2_zos_odbc' / 'db2_expressc_odbc
'driverName' => '{IBM DB2 ODBC DRIVER}',
// or '{iSeries Access ODBC Driver}' / '{IBM i Access ODBC Driver 64-bit}'
'host' => env('DB_HOST', '127.0.0.1'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', 'forge'),
'database' => env('DB_DATABASE', 'forge'),
'prefix' => '',
@bironeaj
bironeaj / recipe.sh
Last active April 13, 2024 03:26
Ubuntu IBM DB2 ODBC + CLI + PHP PDO Installation Instructions/Script - Tailored for Laravel Forge
# Install Dev Package
sudo apt install php7.2-dev
# CD Home
cd ~
# Get CLI
wget -q -O CLI.tar.gz https://iwm.dhe.ibm.com/sdfdl/v2/regs2/smkane/IDSOC/Xa.2/Xb.bL-snMrfTDtX6PgwwuXqAdeiFX6UY09DUuicweVTRlk/Xc.ibm_data_server_driver_for_odbc_cli_linuxx64_v11.1.tar.gz/Xd./Xf.LPr.D1vk/Xg.9810279/Xi.swg-idsoc97/XY.regsrvs/XZ.42v0ODLDocGa6RjgsAKBjJobG6U/ibm_data_server_driver_for_odbc_cli_linuxx64_v11.1.tar.gz
# Get PDO
wget -q -O PDO.tar.gz https://pecl.php.net/get/PDO_IBM-1.3.5.tgz
# Unpack Files & Cleanup
tar -zxf CLI.tar.gz