Skip to content

Instantly share code, notes, and snippets.

View AndrewGearhart's full-sized avatar
🛠️

Andrew Gearhart AndrewGearhart

🛠️
View GitHub Profile
version: '2'
services:
solr6:
image: solr:6.6
volumes:
- ./docker/solr/schema.xml:/opt/solr/example/solr/collection1/conf/schema.xml:Z
- ./docker/solr/solrconfig.xml:/opt/solr/example/solr/collection1/conf/solrconfig.xml:Z
- data-solr:/opt/solr
volumes:
data-solr-2:
@AndrewGearhart
AndrewGearhart / slackpost
Last active November 17, 2017 17:23 — forked from dopiaza/slackpost
Post a message to a Slack channel
#!/usr/bin/env bash
# Usage: slackpost "<webhook_url>" "<channel>" "<username>" "<message>"
# also (echo $RANDOM; echo $RANDOM) |slackpost "<channel>" "<username>"
# ------------
webhook_url=$1
if [[ $webhook_url == "" ]]
then
echo "No webhook_url specified"