Main Contents

Teamspeak 3 on CentOS 6

May 17, 2012

Create a user account for the Teamspeak service to run under # useradd teamspeak # passwd teamspeak To use a MySQL database, you need to install additional libraries not available from the default repositories. Download MySQL-shared-compat-6.0.11-0.rhel5.x86_64.rpm (This is 64 bit version. If you are on a 32 bit system, you’ll need to find it somewhere) […]

Filed under: Uncategorized | Comments Off on Teamspeak 3 on CentOS 6

Convert IIS SSL Cert to Apache

November 27, 2009

Export your SSL Cert to a PFX file and include the private key. Copy it to your apache server. # openssl pkcs12 -in www.yourdomain.com.pfx -nocerts -out www.yourdomain.key.pem # openssl pkcs12 -in www.yourdomain.com.pfx -clcerts -nokeys -out www.yourdomain.cert.pem # openssl rsa -in www.yourdomain.key.pem -out www.yourdomain.key Copy contents of www.yourdomain.cert.pem between and including BEGIN CERTIFICATE and END CERTIFICATE […]

Filed under: Linux, Microsoft, Uncategorized, Windows | Comments Off on Convert IIS SSL Cert to Apache

Find SQL queries that use too much CPU

November 11, 2009

SELECT total_worker_time/execution_count AS AvgCPU , total_worker_time AS TotalCPU , total_elapsed_time/execution_count AS AvgDuration , total_elapsed_time AS TotalDuration , (total_logical_reads+total_physical_reads)/execution_count AS AvgReads , (total_logical_reads+total_physical_reads) AS TotalReads , execution_count , SUBSTRING(st.TEXT, (qs.statement_start_offset/2)+1 , ((CASE qs.statement_end_offset WHEN -1 THEN datalength(st.TEXT) ELSE qs.statement_end_offset END – qs.statement_start_offset)/2) + 1) AS txt , query_plan FROM sys.dm_exec_query_stats AS qs cross apply sys.dm_exec_sql_text(qs.sql_handle) AS […]

Filed under: Uncategorized | Comments Off on Find SQL queries that use too much CPU