Skip to content

Instantly share code, notes, and snippets.

View sideshow-systems's full-sized avatar
🎸
Focusing

Florian Binder sideshow-systems

🎸
Focusing
View GitHub Profile
@arm1n
arm1n / phpswap
Created February 2, 2013 13:31
This is a convenience script to switch between different php5 versions installed via macports. The script simply changes the httpd.conf file located in /opt/local/apache2/conf/httpd.conf with sed. It's believed that you have installed your php versions with 'sudo port install php5x-apache2handler'.
#!/bin/bash
#-------------------------------------------------------------------------------
# PHPSWAP for changing php5 versions installed via macports in apache2 config.
#
# @author armin.pfurtscheller@locandy.com
# @license MIT License
#
# Kindly referring to the following useful help pages:
# http://mark-story.com/posts/view/maintaining-two-versions-of-php-with-macports
@aghuddleston
aghuddleston / PanelHeaderExtraIcons.js
Last active October 5, 2015 07:18
Ext JS 4.1 Plugin to add items to the right side of a panel header
Ext.define('Ext.ux.panel.header.ExtraIcons', {
extend: 'Ext.AbstractPlugin',
alias: 'plugin.headericons',
alternateClassName: 'Ext.ux.PanelHeaderExtraIcons',
iconCls: '',
index: undefined,
headerButtons: [],