Skip to content

Instantly share code, notes, and snippets.


demonkoryu demonkoryu

View GitHub Profile
demonkoryu /
Created Mar 27, 2019
linux docker mount permissions for host+guest
setfacl -R -m u:www-data:rwX -m u:"$(whoami)":rwX var
setfacl -dR -m u:www-data:rwX -m u:"$(whoami)":rwX var
View zgen-with-prezto.zshrc
source "${HOME}/.dotfiles/base/zgen/zgen.zsh"
# check if there's no init script
if ! zgen saved ; then
echo "Creating a zgen save"
demonkoryu / create-class-instance-without-calling-constructor.php
Created Oct 2, 2013
Create an instance of $className without calling its constructor. From \Tx_Extbase_Object_Container_Container
View create-class-instance-without-calling-constructor.php
* Create an instance of $className without calling its constructor
* @param string $className
* @return object
public function getEmptyObject($className) {
$className = $this->getImplementationClassName($className);
$classInfo = $this->getClassInfo($className);
// get an object and avoid calling __construct()