sudo yum -y install epel-release
sudo yum -y update
Download repository
| // ref: https://www.baeldung.com/java-aes-encryption-decryption | |
| import java.util.* | |
| import javax.crypto.Cipher | |
| import javax.crypto.spec.IvParameterSpec | |
| import javax.crypto.spec.SecretKeySpec | |
| fun decrypt(algorithm: String, cipherText: String, key: SecretKeySpec, iv: IvParameterSpec): String { | |
| val cipher = Cipher.getInstance(algorithm) |
| #!/usr/bin/env bash | |
| #################################################### | |
| # Make sure `rename` is available on your system | |
| #################################################### | |
| # Exit on error, undefined and prevent pipeline errors, | |
| # use '|| true' on commands that intentionally exit non-zero | |
| set -euo pipefail | |
| # The directory from which the script is running | |
| readonly LOCALDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| readonly TARGET_DIR="$LOCALDIR/censo2020" |
| ## Auto-Install the following packages | |
| .packs <- c("tidyverse", "lubridate", "ggrepel", "viridis", "scales") | |
| .success <- suppressWarnings(sapply(.packs, require, character.only = TRUE)) | |
| if (length(names(.success)[!.success])) { | |
| install.packages(names(.success)[!.success]) | |
| sapply(names(.success)[!.success], require, character.only = TRUE) | |
| } | |
| if (!require(mxmaps)) | |
| devtools::install_github("diegovalle/mxmaps") | |
| library(mxmaps) |
| CREATE DATABASE sample_db; | |
| USE sample_db; | |
| DROP TABLE IF EXISTS product; | |
| CREATE TABLE product ( | |
| id BIGINT(20) UNSIGNED NOT NULL,PRIMARY KEY (id),UNIQUE KEY unique_id (id), | |
| name VARCHAR(32) NOT NULL, | |
| modification_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
| insertion_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP | |
| ); |
| library(tm) | |
| library(SnowballC) | |
| library(wordcloud) | |
| library(RColorBrewer) | |
| library(tidyverse) | |
| library(ggwordcloud) | |
| # Hecho por Rafa @GonzalezGouveia | |
| # Con gusto para #DatosDeMiercoles, propuesto por @R4DS_es |
| package chela.spring.core; | |
| import javax.crypto.Cipher; | |
| import javax.crypto.spec.IvParameterSpec; | |
| import javax.crypto.spec.SecretKeySpec; | |
| import java.util.Base64; | |
| final public class ChCrypto { | |
| final static Base64.Encoder encorder = Base64.getEncoder(); | |
| final static Base64.Decoder decorder = Base64.getDecoder(); |
##Neo4j GraphGist - Enterprise Architectures: Real-time Graph Updates using Kafka Messaging
A recent Neo4j whitepaper describes how Monsanto is performing real-time updates on a 600M node Neo4j graph using Kafka to consume data extracted from a large Oracle Exadata instance.
This modern data architecture combines a fast, scalable messaging platform (Kafka) for low latency data provisioning and an enterprise graph database (Neo4j) for high performance, in-memory analytics & OLTP - creating new and powerful real-time graph analytics capabilities for your enterprise applications.
| ## Install NGINX | |
| ## when installing on Amazon Linux AMI, use: | |
| $ sudo yum install nginx -y | |
| ## when installing on Amazon Linux 2 AMI, use | |
| $ sudo amazon-linux-extras install nginx1.12 -y | |
| ## Install PHP and PHP-FPM | |
| # for PHP version 7.1 use php71 and php71-fpm instead | |
| $ sudo yum install php -y | |
| $ sudo yum install php-fpm -y |