`tput rmam`Enable line wrapping:
`tput smam`
Rants and ravings of a semi-autistic developer who has a hard time remembering idiotic nonsense details. Why remember it, when you know where to find it.
`tput rmam`Enable line wrapping:
`tput smam`
perl -ne 'next unless /begin - remote_properties/ .. /end - remote_properties/;print' testfile.tibco_beGenerator
cat PDDV_hosts.txt | perl -e 'while (my $frs=<>) { chomp $frs; $sec=<>; chomp $sec; $th=<> ;printf "%s,%s,%s", $frs, $sec, $th; }'
dsh ls /etc/bashrc | perl -ne 'BEGIN { printf "export ss=\${1};shift;export args=\$@;" }{ $_=~s/://g;@x=split /\s+/;printf "ssh -t %s \"echo \${ss} | sudo -S -u tibcosilver \${args} \"\n",$x[0], $x[2]}' | tee out
perl -i -pe "s/#/'/g" out
echo "Please run: . out [Password]"
import com.tibco.security.ObfuscationEngine;
public class Decrypt {
public static void main(String[] args) throws Exception {
try {
System.out.println(ObfuscationEngine.decrypt(args[0]));
} catch (Exception e ) {
}
System.out.println(ObfuscationEngine.encrypt(args[0].toCharArray()));
}
}
Compile
javac -cp /opt/tibco/RA1.1/tra/5.9/lib/TIBCrypt.jar Decrypt.javaRun
java -cp .:/opt/tibco/RA1.1/tra/5.9/lib/TIBCrypt.jar:/opt/tibco/RA1.1/tpcl/5.9/lib/slf4j-log4j12-1.5.2.jar:/opt/tibco/RA1.1/tpcl/5.9/lib/slf4j-api-1.5.2.jar:/opt/tibco/RA1.1/tpcl/5.9/lib/log4j-1.2.15.jar:. Decrypt "$@"
$ ./run.sh HelloWorld #!oUNDLWlfuOH60LsUdl/qjrkGRADiglWRuw5Z4mGaUFU= $ ./run.sh '#!oUNDLWlfuOH60LsUdl/qjrkGRADiglWRuw5Z4mGaUFU=' HelloWorld #!UsKsGea13VhSx9H+IRO9xrgqRjFQn4RC2n8LybKGyPtgss4cYLwXbKt/Clc++ljpVQsAqhsMJE3sJqk9JY4xJi3LnRXW7rCK/layTvt+xXxqpZB9sX8JjqQUxNn1FrjokjFAKrPTNGM=
select sys_context('userenv','IP_ADDRESS') || '=' || sys_context('userenv','instance_name') || '.' || sys_context('userenv','db_domain') from dual;