Skip to content

Instantly share code, notes, and snippets.

Avatar
🕹️
developing fun

mmmika

🕹️
developing fun
View GitHub Profile
@mmmika
mmmika / galera_cluster.yml
Created Dec 8, 2018 — forked from lucidfrontier45/galera_cluster.yml
docker-compose file for mariadb galera cluster
View galera_cluster.yml
node1:
image: hauptmedia/mariadb:10.1
hostname: node1
ports:
- 13306:3306
environment:
- MYSQL_ROOT_PASSWORD=test
- REPLICATION_PASSWORD=test
- MYSQL_DATABASE=maria
- MYSQL_USER=maria
View CandyCrushExample.scala
import org.apache.spark._
import org.apache.spark.SparkContext._
import org.json4s.jackson.JsonMethods
import org.json4s.jackson.JsonMethods._
import org.json4s.JsonAST._
import org.json4s.DefaultFormats
object CandyCrushExample {
def main(args: Array[String]): Unit = {
@mmmika
mmmika / mysql_backup.sh
Created Oct 25, 2018 — forked from tleish/mysql_backup.sh
Bash Script to backup all MySQL databases
View mysql_backup.sh
#!/bin/bash
#==============================================================================
#TITLE: mysql_backup.sh
#DESCRIPTION: script for automating the daily mysql backups on development computer
#AUTHOR: tleish
#DATE: 2013-12-20
#VERSION: 0.4
#USAGE: ./mysql_backup.sh
#CRON:
# example cron for daily db backup @ 9:15 am