Skip to content

Instantly share code, notes, and snippets.

@l-vincent-l
l-vincent-l / run.sh
Created April 5, 2017 15:21
Install & run transitland
#!/usr/bin/env bash
git clone https://github.com/transitland/transitland-datastore
transitland-datastore/bin/setup
cd transitland-datastore
read -p "Postgresql user: " dbuser
read -s -p "Postgresql password: " dbpass
echo "" > config/database.yml
@l-vincent-l
l-vincent-l / Dockerfile
Created May 24, 2019 15:50
Dockerfile for elixir-alpine with iconv
FROM bitwalker/alpine-elixir:1.8.1
RUN apk add wget
RUN apk add build-base libtool
RUN wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz
RUN tar -xf libiconv-1.16.tar.gz
RUN cd libiconv-1.16 && ./configure --prefix= && make && make install
RUN libtool --finish /lib
RUN rm libiconv-1.16.tar.gz
RUN rm -r libiconv-1.16
@l-vincent-l
l-vincent-l / celeryd
Last active October 27, 2017 12:40
Initd for celery
CELERYD_NODES=1
CELERY_BIN="/transport-validator/venv/bin/celery"
CELERY_APP="tasks:app"
CELERYD_CHDIR="/transport-validator"
CELERYD_LOG_FILE="/var/log/celery/%n%I.log"
CELERYD_PID_FILE="/var/run/celery/%n.pid"
CELERYD_USER="celery"
CELERYD_GROUP="celery"

Keybase proof

I hereby claim:

  • I am l-vincent-l on github.
  • I am lvincentl (https://keybase.io/lvincentl) on keybase.
  • I have a public key whose fingerprint is 2CEC B79A B73A DE94 50B7 40B3 3B78 EAB3 740D FDAA

To claim this, I am signing this object:

@l-vincent-l
l-vincent-l / fetch_info.json
Last active April 5, 2017 15:42
http://localhost:3000/api/v1/feeds/fetch_info
{
"feed": {
"onestop_id": "f-drt3-123bc~ma~us",
"url": "http://data.trilliumtransit.com/gtfs/route128corridor-ma-us/route128corridor-ma-us.zip",
"feed_format": "gtfs",
"tags": {
"feed_id": "123bc-ma-us"
},
"geometry": {
"type": "Polygon",