Skip to content

Instantly share code, notes, and snippets.

View rafoli's full-sized avatar

Rafael Oliveira rafoli

  • Liferay, Inc.
  • Raleigh, NC - USA
View GitHub Profile
@rafoli
rafoli / install_blade.sh
Last active October 1, 2020 15:07
Blade + ZSH
#!/bin/bash
curl https://raw.githubusercontent.com/liferay/liferay-blade-cli/master/cli/installers/local | sh
echo 'export PATH="$PATH:$HOME/Library/PackageManager/bin"' >> ~/.zshrc
source ~/.zshrc
<!--
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"
@rafoli
rafoli / config.yml
Created July 20, 2018 12:56
zsh-apple-touchbar
default_view: tools
views:
tools:
1:
text: 🇫🇷 lessteps
view: lessteps
2:
text: 🎃 blade
view: blade
3:
#!/bin/sh
#
# JBoss standalone control script
#
# chkconfig: - 80 20
# description: JBoss AS Standalone
# processname: standalone
# pidfile: /var/run/jboss-as/jboss-as-standalone.pid
# config: /etc/jboss-as/jboss-as.conf
$stateProvider
.state('chef', {
url: '/',
template: require('templates/login/index.html'),
controller: LoginController
})
.state('logout', {
url: '/logout',
template: require('templates/login/index.html'),
controller: LogoutController
<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=""