Config snippet for JRun

Config snippet for JRun

<!–
<filter>
<filter-name>MinifyFilter</filter-name>
<filter-class>com.ofrick.filters.MinifyFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>MinifyFilter</filter-name>
<url-pattern>*.cfm</url-pattern>
</filter-mapping>
–>

MinifyFilter.java

Posted in IT

find changed files using PowerShell

Get-ChildItem -Recurse | Where-Object { $_.LastWriteTime -ge (get-date).AddHours(-24) -and $_.FullName -like “f:\go2005\*.c*” } | ForEach-Object{$oldname = $_.Fullname; $newname = $($_.FullName).replace(‘F:’,’F:\svn\f’); New-Item -ItemType File -Path $newname -Force; Copy-Item $oldname $newname;}

Get-ChildItem -Recurse | Where-Object { $_.LastWriteTime -ge (get-date).AddMonths(-10) -and $_.FullName -like “S:\go2005\application\*.cfm” } | ForEach-Object{$oldname = $_.Fullname; $newname = $($_.FullName).replace(‘S:’,’D:\Users\Frick\Documents\sw0052sync\server\f’); New-Item -ItemType File -Path $newname -Force; Copy-Item $oldname $newname;}

Get-ChildItem -Recurse | Where-Object { $_.LastWriteTime -ge (get-date).AddMonths(-10) -and $_.FullName -like “S:\go2005\application\*.cfc” } | ForEach-Object{$oldname = $_.Fullname; $newname = $($_.FullName).replace(‘S:’,’D:\Users\Frick\Documents\sw0052sync\server\f’); New-Item -ItemType File -Path $newname -Force; Copy-Item $oldname $newname;}

Posted in IT

configure ffmpeg

./configure –disable-lua –disable-mad –disable-avcodec –disable-postproc –disable-a52 –enable-run-as-root –disable-glx

Posted in IT

Postgres for Hyperic

cd C:\Opt\pgsql
mkdir C:\Opt\pgsql\log

bin\initdb.exe -U postgres -A password -E utf8 -W -D C:\Opt\pgsql\data

bin\pg_ctl.exe -D “C:/Opt/pgsql/data” -l “C:/Opt/pgsql/log/pgsql.log” start

bin\createuser.exe -U postgres -P

bin\createdb.exe -U postgres -e HQ

C:\Opt\server-4.6.6\bin\hq-server.bat install

Posted in IT

select from comma separated string

FOR a IN (
select regexp_substr(p_to,'[^,]+’,1,level) recipient
from dual
connect by level <= length(regexp_replace(p_to,'[^,]+’)) + 1 )
LOOP
utl_smtp.rcpt( l_connection, a.recipient);
end loop;

Posted in IT

using Maven with a Proxy

Configure Maven to use Proxy (if needed)

edit ${user.home}/.m2/settings.xml

<settings>
.
.
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>proxy.somewhere.com</host>
<port>8080</port>
<username>proxyuser</username>
<password>somepassword</password>
<nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
</proxy>
</proxies>
.
.
</settings>

Posted in IT