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
/* These CSS settings will hide often unwanted time | |
period options from all time pickers in SimpleXML | |
dashboards for the app containing this file. | |
These settings are only visual changes, i.e., | |
users can still search using All-Time or Real-Time | |
settings if they know how to manually enter the | |
corresponding values */ | |
/* ACCORDION MENUS*/ |
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 | |
# Adopted from the great DetectionLab | |
# This will install Splunk + BOTSv2 Attack only dataset | |
install_prerequisites() { | |
echo "[$(date +%H:%M:%S)]: Downloading DetectionLab..." | |
# Clone DetectionLab for Splunk Apps | |
git clone https://github.com/clong/DetectionLab.git /opt/DetectionLab | |
} |
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
#' Read Points out of a KML file. | |
#' | |
#' @param x A KML file exported from Google Maps. | |
#' @param layer The name of the layer to extract from: defaults to \code{"d1"}. | |
#' @param verbose Whether to report invalid coordinates and/or altitudes below | |
#' sea level; defaults to \code{TRUE}. See \link{kml_coordinate}. | |
#' @return A \link[tibble:tibble]{tibble} containing the \code{name}, | |
#' \code{description}, \code{styleUrl} and Point coordinates (\code{longitude}, | |
#' \code{latitude} and \code{altitude}) of each Placemark element contained in | |
#' the KML file. Placemark elements with no Point coordinates, such as Polygon |
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
# The get_sentiws function will download the zip-file with the SentiWS dictionary, | |
# unzip it and return a data.table. | |
library(data.table) | |
get_sentiws <- function(){ | |
sentiws_tmp_dir <- file.path(tempdir(), "sentiws") | |
if (!file.exists(sentiws_tmp_dir)) dir.create(sentiws_tmp_dir) | |
sentiws_zipfile <- file.path(sentiws_tmp_dir, "SentiWS_v2.0c.zip") | |
sentiws_url <- "http://pcai056.informatik.uni-leipzig.de/downloads/etc/SentiWS/SentiWS_v2.0.zip" |