This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Uncomment the following line if you don't like systemctl's auto-paging feature: | |
# export SYSTEMD_PAGER= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# geoip on firewall in centos 7 | |
# this file: /etc/cron.weekly/bogonsblocks.sh | |
# sudo chmod +x /etc/cron.weekly/bogonsblocks.sh | |
## create tmp dir | |
# sudo mkdir /var/tmp/ipbogons | |
## create list on ipset | |
# sudo ipset create bogonslist hash:net maxelem 1000000 | |
## create rule on firewall-cmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jtest; | |
// EnumerateScriptEngines.java | |
import java.util.*; | |
import javax.script.*; | |
public class EnumerateScriptEngines { | |
public static void main(String[] args) { | |
ScriptEngineManager manager = new ScriptEngineManager(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.suggestSelection": "first", | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.renderWhitespace": "all", | |
"editor.wordWrap": "on", | |
"editor.wordWrapColumn": 120, | |
"editor.minimap.enabled": true, | |
"extensions.ignoreRecommendations": true, | |
"extensions.showRecommendationsOnlyOnDemand": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
export JDK_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
export MAVEN_HOME=/opt/apache-maven | |
export M2=${MAVEN_HOME}/bin | |
export M2_HOME=${MAVEN_HOME} | |
export PATH=${MAVEN_HOME}/bin:${PATH} | |
export JBOSS_HOME=/opt/jboss-eap-7 | |
export MAVEN_OPTS=-Xms256m -Xmx512m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Instalação do docker em distro Ubuntu no WSL 2 | |
# Use | |
# sudo ansible-playbook install-docker.yml | |
# Referências | |
# (1) https://github.com/codeedu/wsl2-docker-quickstart#docker-engine-docker-nativo-diretamente-instalado-no-wsl2 | |
# (2) https://cloudinfrastructureservices.co.uk/how-to-install-docker-compose-using-ansible-playbook/ | |
- hosts: localhost | |
#become: true | |
#become_user: root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start the old vagrant | |
$ vagrant init centos-7 | |
$ vagrant up | |
# You should see a message like: | |
# Installing Virtualbox Guest Additions 5.0.20 - guest version is unknown | |
$ vagrant ssh | |
# corrigir erro de yum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adicionar Driver Oracle no jboss domain após copiar a pasta modules/detran para os servidores | |
/opt/rh/eap7/root/usr/share/wildfly/bin/jboss-cli.sh --connect | |
/profile=Prf-Renavam/subsystem=datasources/jdbc-driver=oracle:add(driver-name="oracle",driver-module-name="detran.oracle8",driver-class-name=oracle.jdbc.OracleDriver,xa-datasource-class=oracle.jdbc.xa.OracleXADataSource) | |
/profile=Prf-Renach/subsystem=datasources/jdbc-driver=oracle:add(driver-name="oracle",driver-module-name="detran.oracle8",driver-class-name=oracle.jdbc.OracleDriver,xa-datasource-class=oracle.jdbc.xa.OracleXADataSource) | |
/profile=Prf-Externo/subsystem=datasources/jdbc-driver=oracle:add(driver-name="oracle",driver-module-name="detran.oracle8",driver-class-name=oracle.jdbc.OracleDriver,xa-datasource-class=oracle.jdbc.xa.OracleXADataSource) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- +----------------------------------------------------------------------------+ | |
-- | Jeffrey M. Hunter | | |
-- | [email protected] | | |
-- | www.idevelopment.info | | |
-- |----------------------------------------------------------------------------| | |
-- | Copyright (c) 1998-2008 Jeffrey M. Hunter. All rights reserved. | | |
-- |----------------------------------------------------------------------------| | |
-- | DATABASE : Oracle | | |
-- | FILE : dba_snapshot_database_10g.sql | | |
-- | CLASS : Database Administration | |