Skip to content

Instantly share code, notes, and snippets.

View roderik's full-sized avatar

Roderik van der Veer roderik

View GitHub Profile
<?php
class Loveno_AdminRest_ProductController extends Mage_Adminhtml_Controller_Action {
public function preDispatch() {
parent::preDispatch();
$session = Mage::getSingleton('admin/session');
$request = $this->getRequest();
$user = $session->getUser();
if (!$user) {
//var_dump('no login');
Process: Echofon [20379]
Path: /Applications/Echofon.app/Contents/MacOS/Echofon
Identifier: com.echofon.Echofon
Version: 0.99.2 (0.99.2)
Code Type: X86 (Native)
Parent Process: launchd [205]
Date/Time: 2010-03-10 12:11:35.335 +0100
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
#export GIT_PS1_SHOWDIRTYSTATE=true
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
#export GIT_PS1_SHOWDIRTYSTATE=true
#
# Automounter master map
#
+auto_master # Use directory service
/net -hosts -nobrowse,hidefromfinder,nosuid
#/home auto_home -nobrowse,hidefromfinder
/Network/Servers -fstab
/- -static
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the
# PostgreSQL documentation for a complete description
# of this file. A short synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
#!bash
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
#!/bin/bash
SERVER="gitadmin@git.kunstmaan.be"
while getopts "s:" OPTION
do
case $OPTION in
s)
SERVER=$OPTARG
;;
#!/bin/bash
ADMINUSER="gitadmin"
GITUSER="gitrepo"
SERVER="git.kunstmaan.be"
PROJECT=
while getopts "s:p:a:g:" OPTION
do