programing

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Enable UNO listener on Windows

wordpad "C:\Programme\OpenOffice.org 3\Basis\share\registry\data\org\openoffice\Setup.xcu"
 
search for <node oor:name="Office"> (by default line 3) and add
<prop oor:name="ooSetupConnectionURL" oor:type="xs:string">
   <value>socket,host=localhost,port=8100;urp;</value>
</prop>

Windows scripts

# exportDB.cmd
for /f "tokens=2" %%i in ('date /t') do set date=%%i
set timestemp=%date:~6,4%-%date:~3,2%-%date:~0,2%
d:\ORANT\BIN\exp80.exe system/manager file="e:\%timestemp%.dmp" full="y"
 
# add_at_job_windows_nt.cmd
at 20:00 /every:Mo,Di,Mi,Do,Fr,Sa "\\fs\scripte\windows\exportFullDatabase.cmd"

Create webserver info page

#!/bin/bash
 
cat <<EOF> "$(grep DocumentRoot /etc/apache2/sites-available/default | cut -d " " -f2)/phpinfo.php"
<?php
phpinfo();
?>
EOF

Useful PHP configuration parameter (php.ini)

# create automaticly a session
session.auto_start = ON
 
# disable global variables
register_globals = OFF
 
# increase upload limit
upload_max_filesize = 50M

Tomcat configuration

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.tomcat.sh";
echo "wget $URL -O - | bash -";
echo "<div class=\"geshifilter\"><pre class=\"bash geshifilter-bash\">";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "</pre></div>";
?>
 
 
# start
export JAVA_HOME=/usr/lib/jvm/jdk1.6.0
export JAVA_OPTS="$JAVA_OPTS -Xmx256m"
/usr/local/apache-tomcat-5.5.20/bin/startup.sh
 
# deploy
/opt/SDK2/bin/asadmin deploy /tmp/Intranet.war
 
# change defau
Syndicate content