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
#! /usr/bin/env bash | |
set -e | |
DAILY_SPENDING_LIMIT=3 # USD, per account | |
DATE_COMMAND="date" | |
if hash gdate 2>/dev/null | |
then | |
DATE_COMMAND="gdate" | |
fi |
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
gfind 2018-02\ február -type d -print0 | sed 's/2018-02 február/2018-03 március/g' | xargs -0 -I {} mkdir -p {} |
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
library(ggplot2) | |
# Take a look at our example dataset | |
View(diamonds) | |
# Make a chart from scratch | |
x = ggplot() + | |
layer( | |
data = diamonds, mapping = aes(x=carat,y=price), | |
stat='identity', position="identity", geom="point" |
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
library(ggplot2) | |
# Take a look at our example dataset | |
View(diamonds) | |
# Make a chart from scratch | |
x = ggplot() + | |
layer( | |
data = diamonds, mapping = aes(x=carat,y=price), | |
stat='identity', position="identity", geom="point" |
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
import org.apache.spark._ | |
import org.apache.spark.sql.Column | |
import org.apache.spark.streaming._ | |
import _root_.kafka.serializer.StringDecoder | |
import org.apache.spark.streaming._ | |
import org.apache.spark.sql.SparkSession | |
import org.apache.spark.sql.SQLContext | |
import org.apache.kafka.clients.consumer.ConsumerRecord | |
import org.apache.kafka.common.TopicPartition | |
import org.apache.kafka.common.serialization.StringDeserializer |
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
object Anomymizer extends App { | |
val spark = SparkSession.builder | |
.master("local[3]") | |
.appName("Anonimizer") | |
.getOrCreate() | |
val salt = "SAALT" | |
def anonimizeStr(a:Any) = { | |
a match { |
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
object Anomymizer extends App { | |
val spark = SparkSession.builder | |
.master("local[3]") | |
.appName("Anonimizer") | |
.getOrCreate() | |
val salt = "SAALT" | |
def anonimizeStr(a:Any) = { | |
a match { |
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
object Anomymizer extends App { | |
val spark = SparkSession.builder | |
.master("local[3]") | |
.appName("Anonimizer") | |
.getOrCreate() | |
val salt = "SAALT" | |
def anonimizeStr(a:Any) = { | |
a match { |
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
import org.apache.spark.{SparkConf, SparkContext} | |
import org.apache.spark.h2o.{H2OContext, H2OFrame} | |
import org.apache.spark.sql.DataFrame | |
import hex.deeplearning.DeepLearning | |
import water.app.SparkContextSupport | |
import hex.deeplearning.DeepLearningParameters | |
import hex.deeplearning.DeepLearningParameters.Activation | |
import org.apache.spark.h2o.{DoubleHolder, H2OContext, H2OFrame} |
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
#!/bin/bash -xeu | |
# This script moves your wordrpress page under a different domain | |
# Zoltan C. Toth | |
export HISTCONTROL=ignorespace | |
ORIGIN_DOMAIN=teszt2.gyulahus.hu | |
TARGET_DOMAIN=teszt.gyulahus.hu | |
ORIGIN_DIR=/home/gyulahus/public_html/$ORIGIN_DOMAIN | |
TARGET_DIR=/home/gyulahus/public_html/$TARGET_DOMAIN | |
TARGET_DB=teszt2_gyh |