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
<?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
<?php | |
/** | |
* @package Joomla.Cli | |
* | |
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
* | |
* Joomla 3.2 example CLI script | |
* Written by: Rene Kreijveld, email [at] renekreijveld.nl | |
* 05-feb-2014 |
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 | |
/** | |
* @package RSFormCleanUp | |
* @copyright Copyright 2018 René Kreijveld, DSD Business Internet. | |
* @license GNU General Public License version 2 or later. | |
*/ | |
/** | |
* A command line cron job to remove submission data from RSFormPro database tables. | |
* Based on the excellent work of Peter Martin, db8.nl, see https://gist.github.com/pe7er/47bf1020b12ef29df8603fa80d1fdccd |
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/sh | |
# jnewfiles | |
# Detects new and changed php and html files last xxx minutes | |
# (C) 2014 Rene Kreijveld, enail [at] renekreijveld [dot] nl | |
# Update 31-12-2013: only send email when changes are found | |
# Update 04-02-2014: check for new files last three hours | |
# Update 05-05-2014: check for new html files also | |
# Update 07-05-2014: filter out ju_chached and DirectAdmin stats folders in html files |
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/sh | |
# joomlaupdate | |
# Updates your Joomla 2.5/3.1 website to the latest version. | |
# | |
# Usage: joomlaupdate [-s] [-b] [-h] [-l] | |
# | |
# Default action is verbose on, no backup. | |
# -s Silent. Do not display any informational messages. | |
# -b Backup. Create a backup before updating. |
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@renekreijveld.nl | |
# 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/sh | |
# jfindfiles -- Find used and unused content files in your Joomla website | |
# | |
# This scripts supports Joomla versions 2.5 - 3.x | |
# | |
# Copyright 2014 Rene Kreijveld - email@renekreijveld.nl | |
# | |
# This program is free software; you may redistribute it and/or modify it. | |
# |
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 | |
/** | |
* @package Joomla.Cli | |
* | |
* @copyright Copyright (C) 2016 Rene Kreijveld, All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
/** | |
* This is a script which should be called from the command-line, not the web. |
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 |
NewerOlder