Popular recipes by Slava Yanson http://code.activestate.com/recipes/users/4176967/2011-09-20T09:31:09-07:00ActiveState Code RecipesIOPS calculator (Python) 2011-09-20T09:31:09-07:00Slava Yansonhttp://code.activestate.com/recipes/users/4176967/http://code.activestate.com/recipes/577873-iops-calculator/ <p style="color: grey"> Python recipe 577873 by <a href="/recipes/users/4176967/">Slava Yanson</a> (<a href="/recipes/tags/iops/">iops</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/performance/">performance</a>, <a href="/recipes/tags/sysadmin/">sysadmin</a>). </p> <p>Calculates IOPS for all disks in Linux/Unix system</p> qemu-nbd Python wrapper (Python) 2011-03-01T20:11:45-08:00Slava Yansonhttp://code.activestate.com/recipes/users/4176967/http://code.activestate.com/recipes/577593-qemu-nbd-python-wrapper/ <p style="color: grey"> Python recipe 577593 by <a href="/recipes/users/4176967/">Slava Yanson</a> (<a href="/recipes/tags/kvm/">kvm</a>, <a href="/recipes/tags/libvirt/">libvirt</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/qemu/">qemu</a>, <a href="/recipes/tags/virtualization/">virtualization</a>). </p> <p>A simple Python wrapper that makes it easier to mount virtual machine disk images to a local machine.</p> <p>Requires qemu-nbd package installed.</p> YouTube-like primary key generation (PHP) 2011-02-24T21:43:55-08:00Slava Yansonhttp://code.activestate.com/recipes/users/4176967/http://code.activestate.com/recipes/577571-youtube-like-primary-key-generation/ <p style="color: grey"> PHP recipe 577571 by <a href="/recipes/users/4176967/">Slava Yanson</a> (<a href="/recipes/tags/activerecord/">activerecord</a>, <a href="/recipes/tags/database/">database</a>, <a href="/recipes/tags/php/">php</a>, <a href="/recipes/tags/unique/">unique</a>). Revision 4. </p> <p>If you have more then 1 primary database servers - you have probably experienced the pain of primary key overlapping... Here is a super simple solution that will generate a hash of random letters and numbers.</p> <p>Included is a sample ActiveRecord class (MyTable.php).</p>