Disable Windows 7 hotkeys

This little script disables Windows 7 hotkeys if you have no local admin rights and registry editor (regedit) is also disabled.  Simply save it as hkey.vbs and execute. Option Explicit ‘Declare variables Dim WSHShell, rr, MyBox, val, ttl Dim jobfunc, itemtype On Error Resume Next Set WSHShell = WScript.CreateObject(“WScript.Shell”) val = “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\DisabledHotkeys” itemtype = “REG_EXPAND_SZ” […]

OpenVPN OCC ping patch

Hello, i’ve created simple patch for OpenVPN implementing OCC ping. Main difference of OCC ping and existing OpenVPN ping is that OCC ping is being actively replied on other side of the communication channel. This way you can configure various per-client channel reliability policies: Non-mobile clients might ping more frequently to ensure stable connection, and […]

Fixing pg_dump invalid memory alloc request size

I’ve encountered unusual problem while dumping one of the bigger PostgreSQL databases. Every try to run pg_dump resulted in this: sam@cerberus:~/backup$ pg_dump -v -c js1 >x pg_dump: Error message from server: ERROR: invalid memory alloc request size 18446744073709551613 pg_dump: The command was: COPY job.description (create_time, job_id, content, hash, last_check_time) TO stdout; pg_dump: *** aborted because […]

Monitoring disk drives via collectd

I’ve made two simple (but useful) disk drive monitoring scripts for collectd exec plugin. You can find them on http://devel.dob.sk/collectd-scripts/. smartmon.sh This script monitors SMART attributes of given disks using smartctl (smartmontools). megamon.sh This one monitors some interesting values of MegaRaid adapter physical drives using MegaCli tool.   Description how to use them can be […]

log-malloc2 v0.2 released

I’ve actually released log-malloc2 library for linux, that logs calls to memory allocation functions and should be very helpful when trying to locate memory leaks. It can be used without recompiling application, simply by preloading it using LD_PRELOAD . Logged functions: malloc realloc calloc free memalign Every function call  is logged with their parameters, amount […]