Skip to content

Instantly share code, notes, and snippets.


demonkoryu demonkoryu

Block or report user

Report or block demonkoryu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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()
You can’t perform that action at this time.