Skip to content

Instantly share code, notes, and snippets.

View pe7er's full-sized avatar
💭
typing...

Peter Martin pe7er

💭
typing...
View GitHub Profile
@n9iels
n9iels / migrate-urls.php
Last active April 2, 2019 11:17
CLI script to recreate all urls in articles on a Joomla! website and create redirects for the old urls.
<?php
/**
* @package Joomla.Cli
*
* @copyright Copyright (C) 2018 Niels van der Veer. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* This is a CRON script which should be called from the command-line, not the
@renekreijveld
renekreijveld / jfindfiles
Last active March 11, 2021 07:03
Find unused and used content files in your Joomla website
#!/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.
#
@renekreijveld
renekreijveld / clidemo_3.2.php
Last active October 24, 2022 03:00
Example CLI script for Joomla 3,2
<?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
@esfand
esfand / NginxRedirect.md
Last active March 21, 2024 07:12
Nginx Redirect

Redirect: Temporary and Permanent

Source

What is an HTTP Redirect?

HTTP redirection, or URL redirection, is a technique of pointing one domain or address to another. There are many uses for redirection, and a few different kinds of redirection to consider.

As you create content and administrate servers, you will often find the need to redirect traffic from one place to another. This guide will discuss the different use-cases for these techniques, and how to accomplish them in Apache and Nginx.

@rafi
rafi / jetbrains-phpstorm.desktop
Created August 14, 2013 18:32
Linux desktop shortcuts
[Desktop Entry]
Version=1.0
Type=Application
Name=JetBrains PhpStorm
Exec="/opt/phpstorm/PhpStorm-129.487/bin/phpstorm.sh" %f
Icon=/opt/phpstorm/PhpStorm-129.487/bin/webide.png
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupNotify=true
@raelgc
raelgc / Email Server (Linux, Unix, Mac).md
Last active July 4, 2024 19:43
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point localhost.com to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:

127.0.0.1 localhost.com

2 - Install Postfix

@gunjanpatel
gunjanpatel / joomla git.md
Last active August 27, 2021 14:03
work with joomla git using terminal

Clone your forked repo in local.

Using Terminal

  1. For the very first time if you didn't configured remote repository then do it using this command.

     git remote add upstream git@github.com:joomla/joomla-cms.git
    
  2. Fetch changes from remote repository.