Skip to content

Instantly share code, notes, and snippets.

View codingant007's full-sized avatar

Nikhil Alamanda codingant007

View GitHub Profile
ant@ant ~/D/m/l/listenbrainz-server>
docker exec -it docker_web_1 python manage.py init_msb_db --create-db
Traceback (most recent call last):
File "manage.py", line 163, in <module>
cli()
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
docker_db_1 exited with code 1
db_1 | The files belonging to this database system will be owned by user "postgres".
db_1 | This user must also own the server process.
db_1 |
db_1 | The database cluster will be initialized with locale "en_US.utf8".
db_1 | The default database encoding has accordingly been set to "UTF8".
db_1 | The default text search configuration will be set to "english".
db_1 |
db_1 | Data page checksums are disabled.
db_1 |
WARNING: The VAGRANT_DATA_DIR variable is not set. Defaulting to a blank string.
Recreating docker_influxdb_1
docker_redis_1 is up-to-date
Recreating docker_db_1
Recreating docker_consumer_1
Recreating docker_web_1
Recreating docker_bigquery_1
Recreating docker_influx_writer_1
Attaching to docker_redis_1, docker_db_1, docker_influxdb_1, docker_consumer_1, docker_web_1, docker_influx_writer_1, docker_bigquery_1
db_1 | The files belonging to this database system will be owned by user "postgres".
@codingant007
codingant007 / gen_cap.php
Created December 21, 2016 07:19
watercap generator script
<?php
// Webmail CAPTCHA Image ganarator
// Generates labelled CAPTCHA images at random
// Can be used to generate a dataset
// README:
// - make sure php5 & php5-gd are installed (can be done via apt)
// - Create a directory to house your dataset
// - put this script in the that directory
// - open a shell and cd into that directory
// - Execute `php gen_cap.php 100` to generate 100 images.