Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
...

demonkoryu demonkoryu

🤔
...
View GitHub Profile
@demonkoryu
demonkoryu / entrypoint.sh
Created Mar 27, 2019
linux docker mount permissions for host+guest
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"
@demonkoryu
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.