Just run this script from the root of the repo. It goes through all folders, gets all the files and creates a TOC for them.
python script.py
This will show you the TOC generated.
python script.py > out.txt
Just run this script from the root of the repo. It goes through all folders, gets all the files and creates a TOC for them.
python script.py
This will show you the TOC generated.
python script.py > out.txt
docker run -tid --name appbase_elasticsearch -e ES_JAVA_OPTS='-Xms750m -Xmx750m' -e "xpack.security.enabled=false" \
-e "xpack.graph.enabled=false" -e "xpack.ml.enabled=false" -e "xpack.monitoring.enabled=false" \
-e "xpack.watcher.enabled=false" -p 9200:9200 docker.elastic.co/elasticsearch/elasticsearch:6.0.0-alpha2
{ | |
"env": { | |
"GOPATH": "$HOME/go", | |
"PATH": "$GOPATH/bin:$PATH" | |
}, | |
// "fmt_cmd": ["goimports"], | |
// enable comp-lint, this will effectively disable the live linter | |
"comp_lint_enabled": true, |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# python -m unittest tests.test_export_calendar | |
export DATABASE_URL=postgresql://open_event_user:[email protected]:5432/test | |
export SERVER_NAME=localhost:5000 | |
export APP_CONFIG=config.DevelopmentConfig | |
if service --status-all | grep -e '\+.*postgresql'; then | |
echo postgresql exists | |
else | |
sudo service postgresql restart |
""" | |
Celery task wrapper to set request context vars and global | |
vars when a task is executed | |
Based on http://xion.io/post/code/celery-include-flask-request-context.html | |
""" | |
from celery import Task | |
from flask import has_request_context, make_response, request, g | |
from app import app # the flask app |
import requests | |
import json | |
url = "https://api.github.com/markdown" | |
payload = { | |
"text": "**Hello** world !", | |
"mode": "gfm", | |
"context": "aviaryan/Clipjump" | |
} | |
r = requests.post(url = url, data = payload) |