Skip to content

Instantly share code, notes, and snippets.

View luizrobertofreitas's full-sized avatar

Luiz Roberto Freitas luizrobertofreitas

View GitHub Profile
*{
margin: 0;
padding: 0;
list-style: none;
vertical-align: baseline;
font-family: 'Arial';
}
@luizrobertofreitas
luizrobertofreitas / primefaces-loading-dialog
Created December 3, 2013 11:10
Primefaces customized loading dialog
<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>
<p:dialog modal="true" widgetVar="statusDialog" showHeader="false" style="background: white;"
draggable="false" closable="false" resizable="false">
<div align="center">
<h:outputText value="#{mensagens['resultadoBuscaProdutoSES.carregando']}" /><br/><br/>
<p:graphicImage value="/resources/images/ajax-loader.gif" />
</div>
</p:dialog>
@luizrobertofreitas
luizrobertofreitas / gist:7878947
Last active December 30, 2015 20:09
Deployment Plan para o weblogic. Exemplo para aplicações que não foram desenvolvidas no jdeveloper e são empacotadas como .war. Depois de fazer o deploy da aplicação, clique em update e informe o deployment plan.
<?xml version = '1.0' encoding = 'US-ASCII'?>
<deployment-plan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd"
xmlns="http://xmlns.oracle.com/weblogic/deployment-plan">
<application-name>ApcCustom</application-name>
<variable-definition>
<variable>
<name>param</name>
<value>novo parametro</value>
</variable>
@luizrobertofreitas
luizrobertofreitas / elem-os-warnings.txt
Created January 2, 2016 13:38
Alguns warnings que ocorrem ao abrir programas Gtk no elementary os
1 - Gtk-Message: Failed to load module "pantheon-filechooser-module"
2 - Gtk-Message: Failed to load module "canberra-gtk-module"
$ sudo apt-get install libcanberra-gtk-module
3 - Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap"
@luizrobertofreitas
luizrobertofreitas / remove_things_from_mds
Created January 17, 2014 16:54
Excluir modelos canônicos do mds
executar /mid11117/Oracle_SOA1/common/bin/wlst.sh
sca_removeSharedData('http://192.168.57.49:8001', 'CustomerRelationship', 'weblogic', 'weblogic1')
sca_removeSharedData('http://192.168.57.49:8001', 'EBO', 'weblogic', 'weblogic1')
sca_removeSharedData('http://192.168.57.49:8001', 'Finance', 'weblogic', 'weblogic1')
sca_removeSharedData('http://192.168.57.49:8001', 'NaturaAPC', 'weblogic', 'weblogic1')
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
@luizrobertofreitas
luizrobertofreitas / checkpoint-snx-vpn-client-fedora25.txt
Created May 16, 2017 13:20 — forked from rafaeltuelho/checkpoint-snx-vpn-client-fedora25.txt
setup Checkpoint Firewall VPN with SNX on Linux Fedora 25
First you have to ensure the Java JRE is installed on your system.
Remember the java plugin will only work on Firefox. If you prefer to install from fedora/rhel repos:
sudo dnf (yum) install java-1.8.0-openjdk icedtea-web
download the snx script installer from the Checkpoint VPN page:
https://<your company vpn ip addr>/sslvpn/SNX/INSTALL/snx_install.sh
run int as root to install
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@luizrobertofreitas
luizrobertofreitas / gist:dd680fe80efbfd49c7817935d0527d79
Created June 10, 2017 04:54
Connect with php to dockered mysql
This happen because selinux avoid db connections from the httpd server to the remote db server. To solve it you need to access your server trough ssh or just open a console if you have pretencial acces and do the follow:
You must check in the SELinux if the port 80 is managed in. You can check it typing # semanage port -l | grep http_port_t for list and check:
http_port_t tcp 443, 488, 8008, 8009, 8443, 9000
If you need to add the required port, just type:
# semanage port -a -t http_port_t -p tcp 80
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.example;
import java.util.Random;
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;