More tools and improvements

Signed-off-by: Jacob Kiers <kiers@comandi.nl>
This commit is contained in:
Jacob Kiers
2017-12-08 18:36:39 +01:00
parent 4b36c35285
commit 2755650734
12 changed files with 334 additions and 12 deletions

BIN
bin/composer Executable file

Binary file not shown.

15
bin/dcdebug Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
COMMAND=$1;
shift 1
if [ ! -f $COMMAND ]; then
COMMAND=`which ${COMMAND}`
fi
if [ ! -f "${COMMAND}" ]; then
echo "Usage: ${0} <command>"
exit 1;
fi
PHP_IDE_CONFIG="serverName=local" XDEBUG_CONFIG="remote_enable=1 remote_mode=req remote_port=9000 remote_host=127.0.0.1 remote_connect_back=0" php -d zend_extension=xdebug.so $COMMAND "$@"

2
bin/docker-php Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
docker run --rm -it --entrypoint /usr/bin/php --user $(id -u):$(id -g) -e HOME="${HOME}" -v ${HOME}:${HOME} --workdir $(pwd) php:70 $@

5
bin/git-fixup Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
set -e
TARGET=$(git rev-parse ${1})
git commit --fixup=${TARGET} ${@:2}
EDITOR=true git rebase -i --autostash --autosquash ${TARGET}^;