Skip to content

Instantly share code, notes, and snippets.

Avatar
🤦‍♂️
Hard at work

Roderik van der Veer roderik

🤦‍♂️
Hard at work
View GitHub Profile
View gist:3024
<?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');
View Crash Log Echofon
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
View bashrc
# 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
View bashrc
# 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
View auto_master
#
# Automounter master map
#
+auto_master # Use directory service
/net -hosts -nobrowse,hidefromfinder,nosuid
#/home auto_home -nobrowse,hidefromfinder
/Network/Servers -fstab
/- -static
View postgresql.conf
# -----------------------------
# 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
View pg_hba.conf
# 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:
View git-completion.bash
#!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:
#
View git-authorize
#!/bin/bash
SERVER="gitadmin@git.kunstmaan.be"
while getopts "s:" OPTION
do
case $OPTION in
s)
SERVER=$OPTARG
;;
View git-share
#!/bin/bash
ADMINUSER="gitadmin"
GITUSER="gitrepo"
SERVER="git.kunstmaan.be"
PROJECT=
while getopts "s:p:a:g:" OPTION
do