Skip to content

Instantly share code, notes, and snippets.

View alexandersanchez's full-sized avatar

Alexander Sanchez alexandersanchez

  • Liferay
  • Colombia
View GitHub Profile
@alexandersanchez
alexandersanchez / elasticsearch.yml
Last active June 25, 2018 14:12 — forked from reyjrar/elasticsearch.yml
ElasticSearch config for a write-heavy cluster
##################################################################
# /etc/elasticsearch/elasticsearch.yml
#
# Base configuration Cluster of ElasticSearch with 8 processor per node
#
# Cluster / Node Basics
cluster.name: logng
# Node can have abritrary attributes we can use for routing
<!--
TCP based stack, with flow control and message bundling. This is usually used when IP
multicasting cannot be used in a network, e.g. because it is disabled (routers discard
multicast). Note that TCP.bind_addr and TCPPING.initial_hosts should be set, possibly
via system properties, e.g. -Djgroups.bind_addr=192.168.5.2 and
-Djgroups.tcpping.initial_hosts=192.168.5.2[7800]
author: Bela Ban
-->
<config xmlns="urn:org:jgroups"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<Context path="" crossContext="true">
<Resource
name="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/lportal?useUnicode=true&amp;characterEncoding=UTF-8"
username="root"
password=""
@alexandersanchez
alexandersanchez / liferay-DXP-structured-content.xml
Created June 11, 2019 13:37 — forked from marceltanuri/liferay-DXP-structured-content.xml
Liferay DXP structured content for Promotion
{
"availableLanguageIds": [
"en_US"
],
"defaultLanguageId": "en_US",
"fields": [
{
"label": {
"en_US": "Válida até"
},
@alexandersanchez
alexandersanchez / nvmCommands.js
Created May 9, 2024 22:13 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node