Bash: Round up floating numbers

Bash: Round up floating numbers

I’ve found two easy ways to round up “ceiling” float numbers with bash. Simply add “0.5” to your floating number and use printf: Shell myfloating=$(echo "14.1129312938+0.5" | bc ) printf '%0.f' $myfloating 15 123 myfloating=$(echo...
Installing Debian on Asus Transformer Mini T102H

Installing Debian on Asus Transformer Mini T102H

Installing Debian We must consider this device has UEFI, so the bootable pendrive must be created accordingly to it. I followed this procedure and worked great: You can do something like the following if 604A-00EA is your USB drive and you already have p7zip...
List all JMS Modules in weblogic with WLST

List all JMS Modules in weblogic with WLST

Using this script I’ve extended its functionality to list all the JMS resources which are: List all JMS Modules: cmo.getJMSSystemResources() JMS Submodules List all Connection Factories: .getConnectionFactories() List all Distributed Topics: distTopic.getName()...
List Weblogic Persistent File Stores with WLST

List Weblogic Persistent File Stores with WLST

This one is quite simple, here’s a script to list all the persistent file stores from a weblogic using WLST. With ls() you can list all the tree and get an property from it using get(). How to use this script: <MIDDLEWARE_HOME>/soa/common/bin/wlst.sh...
List all weblogic datasources information from WLST

List all weblogic datasources information from WLST

I wanted to retreive all the information from weblogic datasources using WLST such as: Name JNDI Name Connection Pool parameters: URL Driver Class Name Properties passed to the JDBC Driver SetStreamAsBlob Initial Capacity Maximum Capacity I’ve written a script...
List SOA Deployed Composites with WLST

List SOA Deployed Composites with WLST

Basically we must obtain a list of sca_ resources deployed in our servers, some of them are clusters, although some use different IP/Ports the tool keeps the same. The main document can be found here in the Oracle webiste.  Basically, there are two main functions to...
Configure bitbucket repository in Jenkins

Configure bitbucket repository in Jenkins

Configuring a remote repository from bitbucket into Jenkins is quite simple. Verify you’ve installed the git plugins and everything is up-to-date: Create a new free-style project Configure the project In this step I opted adding my credentials into the URL in...
Copy /etc/hosts with scp from multiple servers with cygwin

Copy /etc/hosts with scp from multiple servers with cygwin

This one was easy, first create a file (hosts_ip.txt) with the IP of each server to get its /etc/hosts: Vim 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6 192.168.0.7 12345 192.168.0.3192.168.0.4192.168.0.5192.168.0.6192.168.0.7 Generate a private/public pair key and...