Skip to content

Instantly share code, notes, and snippets.

me@host:~/-$ python
>>> bool([])
False
>>>
me@host:~/-$ nodejs
> !![]
true
FROM influxdb:0.13
ADD setup_and_start.sh /root/setup_and_start.sh
RUN chmod u+x /root/setup_and_start.sh
ENTRYPOINT /root/setup_and_start.sh
@jmny
jmny / migration.php
Last active December 14, 2023 04:44
phinx outside cli
// see also https://github.com/robmorgan/phinx/issues/364
$phinxApp = new \Phinx\Console\PhinxApplication();
$phinxTextWrapper = new \Phinx\Wrapper\TextWrapper($phinxApp);
$phinxTextWrapper->setOption('configuration', '/path/to/phinx.yml');
$phinxTextWrapper->setOption('parser', 'YAML');
$phinxTextWrapper->setOption('environment', 'development');