This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Xdebug switcher for Homebrew based NginX, MariaDB, PHP development stack | |
# Written by: René Kreijveld, 18/07/2027 | |
# Based on the work of Djamil Legato and Andy Miller | |
app="$(basename "$0")" | |
command="$1" | |
options="$2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[xdebug] | |
zend_extension = "xdebug.so" | |
xdebug.mode = develop,debug | |
xdebug.start_with_request = yes | |
xdebug.client_host = 127.0.0.1 | |
xdebug.discover_client_host = 1 | |
xdebug.client_port = 9003 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# user setting for this machine | |
user <your_username> staff; | |
# you must set worker processes based on your CPU cores, nginx does not benefit from setting more than that | |
worker_processes auto; | |
# only log critical errors | |
error_log /opt/homebrew/var/log/nginx/error.log crit; | |
events { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# PHP switcher for Homebrew based NginX, MariaDB, PHP development stack | |
# Written by: René Kreijveld, 17/07/2027 | |
# Based on the work of Phil Cook and Andy Miller. | |
homebrew_path=$(brew --prefix) | |
brew_array=("7.4","8.1","8.2","8.3","8.4") | |
php_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]") | |
php_version="php@$1" | |
requested_version=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \Joomla\CMS\Factory; | |
const _JEXEC = 1; | |
define( 'JDEBUG', false ); | |
define( 'JPATH_BASE', dirname( dirname( __FILE__ ) ) ); | |
require_once JPATH_BASE . '/includes/defines.php'; | |
require_once JPATH_BASE . '/includes/framework.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// listusers.php - simple cli script to dump users on CLI | |
// Written by René Kreijveld | |
// Version history: | |
// 1.0, 2023-03-09: Initial version | |
use Joomla\CMS\Factory; | |
const _JEXEC = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# cleanjoomla -- Script to delete all Joomla files and folders | |
# | |
# This scripts supports Joomla versions 2.5 - 3.x | |
# | |
# Copyright 2021 Rene Kreijveld - [email protected] | |
# This program is free software; you may redistribute it and/or modify it. | |
# | |
# Version history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# sphp - Easy PHP version switching command-line script for devilbox | |
# Written by: René Kreijveld, email[at]renekreijveld.nl | |
# Version | |
version=1.1 | |
# Available PHP versions in devilbox | |
php_array=(5.2 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0) | |
# Devilbox folder | |
devilbox=/Users/yourusername/devilbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HOST_NAME=macmini | |
shopt -s autocd | |
shopt -s histappend | |
export PATH=$PATH:$HOME/bin | |
export HISTSIZE=5000 | |
export HISTFILESIZE=10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @version 1.0.0 | |
* @author Rene Kreijveld <[email protected]> | |
* @copyright 2019 DSD Business Internet | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
* | |
* Example form xml definition: | |
* <field name="established" | |
* type="yearlist" |
NewerOlder