Knowledge Base Category: Development

Remove jet pack For Other Users

Add this code to your theme functions.php file.
	//Remove JetPack For Other users
	function ap_remove_jetpack_page( ) {
	if ( class_exists( 'Jetpack' ) && !current_user_can( 'manage_options' ) ) {
	remove_menu_page( 'jetpack' );
	}
	}
	add_action( 'admin_menu', 'ap_remove_jetpack_page', 999 );
 ...
Read more

Dns Clean up

Start > Run > CMD Right click and run as administrator, Then type the following:
ipconfig /flushdns
net stop dnscache
net start dnscache
  To Refresh Group Policy:
gpupdate
You may also use:
gpresult
 ...
Read more

Database Table Size Script for SQLServer

I found these two scripts online, very useful for rows counts and size:
Declare @QueryString NVARCHAR(MAX);
Select @QueryString =COALESCE(@QueryString + ' UNION ALL ','') +
					'SELECT ' +
					'''' + QUOTENAME(SCHEMA_NAME(sOBJ.SCHEMA_ID)) +
					'.' + QUOTENAME(sOBJ.name) + ''''+ ' AS [TABLENAME]
					, COUNT(*) AS [RowCount] FROM ' + QUOTENAME(SCHEMA_NAME(sOBJ.SCHEMA_ID)) +
					'.' + QUOTENAME(sOBJ.name)... 						
						
Read more
Page 2 of 1212345...10...Last »