Code Snippet

Just another Code Snippet site

How-To

[How-To] HTTPD & Apache

Install HTTPD Check Proxy mod is installed/enabled : and look for “proxy_balancer” module To add a reverse proxy settings, create a new .conf file un /etc/httpd/conf.d/ like : In case of error like : Permission denied: proxy: HTTP: attempt to connect to You must disable SELinux : => SELINUX=disabled

, ,

[WLST] How-to

Connect to Admin server : Re-target OsgiFrameworks : Re-target All lib : Re-target JMS RESOURCES : Edit & Save & Close : Delete managed Server : Create nodemanager : Read Domain :

,

[Ansible] How-To

Copy template file with filtering (template) Copy file (no filtering) (copy) Copy folder (no filtering) Don’t forget the ‘/’ at the end Execute shell script (shell) or (command) Wait for a “web service” to be up (waif_for) or Include file only if exists (don’t failed if missing) Test if changes have been performed or not […]

[Oracle] How-To

Retrieve the name of the Oracle instance currently connected to : Starting database with PFILE/SPFILE : Create an ini file (init$ORACLE_SID.ora) with :

,

[MySQL] How-To

Install MySQL (new version)on CentOS Download RPM file from : https://dev.mysql.com/downloads/repo/yum/ Install repo : Check repo is installed : Install MySQL : Start/Stop MySQL Server : Connect to MySQL Select database List all tables Repair a table MariaDB

, ,

[Vagrant] How-To

Set Vagrant name : Set VirtualBox name : Shared Folder : Customize Virtual Box params : Network : Define default bridge networl

[Find] How-to

List only directories, max 2 nodes down that have “net” in the name Find all *.c and *.h files starting from the current “.” position. Find all, but skip what’s in “/CVS” and “/junk”. Start from “/work” Note -regex and -iregex work on the directory as well, which means you must consider the “./” that […]

Next posts