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
@jimdelois
jimdelois / Examples.js
Last active March 27, 2026 16:47
Example Logicstuffs for reusability within Venn.
/**
* THE POINT of this file is to illustrate how you could create reusable
* (and eventually even composable) Criteria while also completely avoiding
* ever having to pre-compile answer sets.
*
* SENDING the entire answer sets up to the browser for the game results to
* be calculated on the client-side is NO BUENO. It undermines the whole shebang!
*
* NOTE: This file does nothing to resolve the issues with the current "save game results"
* logic, but it DOES provide several building blocks that would be re-used if active game