Skip to content

Instantly share code, notes, and snippets.

View pandurx's full-sized avatar
😎
pushing and committing

Christine pandurx

😎
pushing and committing
  • Ottawa, Ontario
  • 20:45 (UTC -04:00)
View GitHub Profile
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active May 4, 2024 18:30
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. 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! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# 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
@maxivak
maxivak / 00. tutorial.md
Last active April 12, 2024 05:42
Importing/Indexing database (MySQL or SQL Server) in Solr using Data Import Handler
@tingletech
tingletech / oai_to_solr.groovy
Created October 6, 2012 19:42
groovy script to load XTF search results into solr
/* 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')