Skip to content

Instantly share code, notes, and snippets.

View jimdelois's full-sized avatar

Jim DeLois jimdelois

  • Shutterstock, Inc
  • New York, New York
View GitHub Profile
root@dev-ubuntu-512mb-nyc2-01:~# dokku ps:restart test-project
+ parse_args ps:restart test-project
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ ps:restart =~ ^--.* ]]
+ has_tty
root@dev-ubuntu-512mb-nyc2-01:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1497fc838115 dokku/test-project:latest "/bin/bash /run.sh" 2 minutes ago Up 2 minutes 80/tcp test-project.web.1
@jimdelois
jimdelois / docker-compose.override.yml
Last active May 5, 2016 19:51
Docker Compose Override
web:
# volumes:
# - /Users/delois/Desktop/cachegrind:/tmp/cachegrind
command: /run_override.sh
environment:
XDEBUG_CONFIG: "idekey=idekey-xdebug"
db:
ports:
- "3302:3306"
@jimdelois
jimdelois / run_override.sh
Last active May 24, 2017 19:04
Docker Run Override
#!/bin/bash
# Place this in ./container/run/root/run_override.sh
echo "CUSTOM STARTUP: XDEBUG"
echo "
; Enable The Extension
zend_extension=xdebug.so
@jimdelois
jimdelois / README.md
Last active September 5, 2017 15:38
Create a quick executable to toggle XDebug on your local environment.

XDebug Toggler

A script that generates an executable which will toggle XDebug on/off on your local development environment.

Download

$> curl -o install_xdebug_toggle.sh https://gist.githubusercontent.com/jimdelois/245c50bd7d31baa774c07644a39f30f9/raw/install_xdebug_toggle.sh
$> chmod +x install_xdebug_toggle.sh