Skip to content

Instantly share code, notes, and snippets.

View aelkz's full-sized avatar
👽
working hard

Raphael Abreu aelkz

👽
working hard
View GitHub Profile
@aelkz
aelkz / .git-commit-template.txt
Last active November 1, 2017 23:50 — forked from adeekshith/.git-commit-template.txt
This commit message template that helps you write great commit messages and enforce it across your team.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<------------- Using a Maximum Of 50 Characters ------------>|
# Explain why this change is being made
# |<--- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant
# [jira | tickets | articles | other resources]
# Valid Example: Github issue #23
@aelkz
aelkz / instructions.sh
Created November 12, 2017 22:10
[LINUX] razer kraken 7.1 chroma sound enablement (low volume issue)
# bin/bash
# /===================================================================
# | see: https://www.vivaolinux.com.br/topico/Slackware/USB-HEADSET
# \===================================================================
# create a new rule
$ sudo touch /etc/udev/rules.d/00-local.rules
# --------------------------------------------------
@aelkz
aelkz / TestSimpleProgramHotRodServer.java
Created November 22, 2017 14:33 — forked from n-dobryukha/TestSimpleProgramHotRodServer.java
Simple program hotrod server: issue with logger
package com.ndobryukha.tests.infinispan;
import org.infinispan.client.hotrod.RemoteCache;
import org.infinispan.client.hotrod.RemoteCacheManager;
import org.infinispan.client.hotrod.marshall.ProtoStreamMarshaller;
import org.infinispan.commons.equivalence.ByteArrayEquivalence;
import org.infinispan.configuration.cache.Configuration;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinispan.configuration.cache.Index;
import org.infinispan.configuration.global.GlobalConfiguration;
@aelkz
aelkz / RawInfinispanClusterTest.java
Created November 22, 2017 15:25
Creating caches programmatically using Infinispan 4.2.0.Final
package org.modeshape.connector.infinispan;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.apache.log4j.Logger;
import org.infinispan.Cache;
import org.infinispan.manager.DefaultCacheManager;
import org.infinispan.manager.EmbeddedCacheManager;
import org.junit.Test;
@aelkz
aelkz / pom.xml
Created November 27, 2017 12:27
Maven Profile: WildFly 9, Arquillian, Custom Logging
<profile>
<id>wildfly-9.0-managed</id>
<properties>
<!-- WildFly Version -->
<version.wildfly>9.0.2.Final</version.wildfly>
<!-- Versions of libraries used and which are provided by WildFly -->
<version.io.undertow>1.1.0.Final</version.io.undertow>
<version.org.jboss.resteasy>3.0.11.Final</version.org.jboss.resteasy>
@aelkz
aelkz / INSTALL
Created December 2, 2017 21:19 — forked from arya-oss/INSTALL.md
Ubuntu 16.04 Developer Tools installation
###### development tools
sudo apt-get install build-essential python-dev git nodejs-legacy npm gnome-tweak-tool openjdk-8-jdk
### Python packages
sudo apt-get install python-pip python-virtualenv python-numpy python-matplotlib
### pip packages
pip install django flask django-widget-tweaks django-ckeditor beautifulsoup4 requests classifier SymPy ipython
@aelkz
aelkz / setup.md
Created January 19, 2018 18:01 — forked from developius/README.md
Set up GitHub push with SSH keys

Create a repo. Make sure there is at least one file in it (even just the README) Generate ssh key:

ssh-keygen -t rsa -C "your_email@example.com"

Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings. Test SSH key:

ssh -T git@github.com
@aelkz
aelkz / HelloWorld.java
Created February 2, 2018 15:29 — forked from lolzballs/HelloWorld.java
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();
@aelkz
aelkz / openjdk-s2i-imagestream.json
Last active February 20, 2018 01:07
openshift-origin-build-config
{
"kind": "Template",
"apiVersion": "v1",
"metadata": {
"annotations": {
"iconClass": "icon-rh-openjdk",
"tags": "java",
"version": "1.4.8",
"openshift.io/display-name": "OpenJDK 8",
"openshift.io/provider-display-name": "Red Hat, Inc.",