View entrypoint.sh
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
https://github.com/tarjoilija/zgen/pull/40#issuecomment-135634149 | |
.zshrc: | |
ZGEN_PREZTO_LOAD_DEFAULT=0 | |
source "${HOME}/.dotfiles/base/zgen/zgen.zsh" | |
# check if there's no init script | |
if ! zgen saved ; then | |
echo "Creating a zgen save" |
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() |