Posts

Showing posts from August, 2018

Umbraco Notifications - Save and Send For Approval Process

Image
In Umbraco you can give different permissions to the different Umbraco users and some of these users might have rights to only create or update content nodes but not to publish them. In this case; you might need your Umbraco system to send notification e-mails to the Umbraco users who can then publish the content nodes.

To do this; you can write your own custom code by creating some event handlers or you can use built-in Umbraco notification functionality.

For the second built-in option first login to Umbraco as admin and go to User's section and update the permissions as shown below;



Once you are done with the user permissions, subscribe your Umbraco users to the content nodes, simply login to Umbraco with those users and find the content node, right click on it and select the following option;



After this you need to make changes in the web.config file of your Umbraco project. For my case I am using my test gmail account for sending e-mails. In order to use your gmail account as …

MS SQL Server - Finding Running Server Processes and Killing the Processes which are Currently in a Blocked State

It is sometimes needed to see the running server processes and if necessary kill the ones who are in a blocked state. In order to do that you can use the following T-SQL scripts;

This will return you the active processes and simply using the session_id value, you can kill the processes.

SELECT sqltext.TEXT,             req.session_id,             req.status,             req.command,             req.cpu_time,             req.total_elapsed_time FROMsys.dm_exec_requests req CROSSAPPLYsys.dm_exec_sql_text(sql_handle)AS sqltext

KILL [session_id] GO

Also you can run the following script and check the BlkBy field for the SPIDs that are blocking other processes and then you can kill them.
EXECsp_who2 GO
KILL 53 GO
Once you run the "KILL" command, you can run the following command to check the results again;
EXECsp_who2 GO

Kali Linux - Verifying Integrity and Authenticity of Kali Linux .iso Image On Windows Machine

Image
When you decide to install Kali Linux to your computer, you first need to go to the official website and decide which image to download. While this page is TLS-protected, the actual download link points to an unencrypted URL that offers no protection against potential man-in-the-middle attacks. As a result; you must verify your Linux image.

In order to do that;

First copy the sha256sum value of the image that you're downloading to somewhere safe. Download the imageOpen Windows PowerShellType this command and hit enter get-filehash FILEPATHIt will take a little while for Powershell to return the Algorithm, Hash and Path details of your file.Check the Hash value with the sha256sum  value of your image. If they don't match, this could be security risk, otherwise you can install your Kali Linux. Happy coding.