- save agnoster-light.zsh-theme to
~/.oh-my-zsh/themes/
. - edit
ZSH_THEME
in~/.zshrc
toagnoster-light
- change the color theme of terminal to
solarized-light
- open a new terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Promises; | |
class BashPromise extends Promise { | |
public $outputTmpFile; | |
public $inputTmpFile; | |
function __construct($process, $inputData=NULL, $inputAsStdIn = FALSE){ | |
$inputExtra = ''; | |
if($inputData){ | |
$this->inputTmpFile = tempnam("/tmp", "PHPBashPromiseIn"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# see https://carstenwindler.de/php/enable-xdebug-on-demand-in-your-local-docker-environment/ | |
if [ "$#" -ne 1 ]; then | |
SCRIPT_PATH=`basename "$0"` | |
echo "Usage: $SCRIPT_PATH enable|disable" | |
exit 1; | |
fi | |
# Expects service to be called app in docker-compose.yml |
This gist assumes:
- you have an online remote repository (github / bitbucket etc.)
- you have a local git repo
- and a cloud server (Rackspace cloud / Amazon EC2 etc)
- your (PHP) scripts are served from /var/www/html/
- your webpages are executed by Apache
- the Apache user is named
www-data
(may beapache
on other systems)