-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* oai_to_solr.groovy | |
load oai xml files into solr */ | |
/* | |
groovy oai_to_solr.groovy > urllist.txt | |
*/ | |
import groovy.io.FileType | |
// set up the solr library with grape http://wiki.apache.org/solr/Solrj#Use_Groovy_and_Grape | |
@Grab(group='org.apache.solr', module='solr-solrj', version='4.0.0-BETA') | |
@Grab(group='org.slf4j', module='slf4j-jdk14', version='1.6.6') |