Skip to content

Instantly share code, notes, and snippets.

Avatar

Chad Windnagle drmmr763

View GitHub Profile
@jneubauer
jneubauer / masterplugin.php
Last active Feb 16, 2018
Joomla! plugin that fires all possible plugin events
View masterplugin.php
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
class PlgSystemMasterplug extends JPlugin
{
function onUserAuthenticate()
{
error_log('onUserAuthenticate', 0);
}
@renekreijveld
renekreijveld / jfindfiles
Last active Mar 11, 2021
Find unused and used content files in your Joomla website
View jfindfiles
#!/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.
#
@phproberto
phproberto / .gitconfig
Last active Feb 4, 2022
My git config file
View .gitconfig
[color]
status = auto
diff = auto
branch = auto
interactive = auto
ui = true
[alias]
amend = !"git commit --amend -C HEAD"
st = status
ci = commit
@maxrice
maxrice / us-state-names-abbrevs.php
Created May 23, 2012
US State Names & Abbreviations as PHP Arrays
View us-state-names-abbrevs.php
<?php
/* From https://www.usps.com/send/official-abbreviations.htm */
$us_state_abbrevs_names = array(
'AL'=>'ALABAMA',
'AK'=>'ALASKA',
'AS'=>'AMERICAN SAMOA',
'AZ'=>'ARIZONA',
'AR'=>'ARKANSAS',
@betweenbrain
betweenbrain / gist:2644421
Created May 9, 2012
Add heading to absolute first article of first page of Joomla 2.5 category blog
View gist:2644421
Add the following to your /com_content/category/blog.php template override just before <?php $this->item = &$item; echo $this->loadTemplate('item'); ?> of the class="leading" item.
<?php if ($this->pagination->get('pages.current') == 1) echo '<h1>Absolute First Article</h1>' ?>
@jimbojsb
jimbojsb / gist:1630790
Created Jan 18, 2012
Code highlighting for Keynote presentations
View gist:1630790

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: