This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT C.nodeId, CT.alias, N.text FROM cmsContent C | |
INNER JOIN cmsContentType CT ON C.contentType = CT.nodeId | |
INNER JOIN umbracoNode N ON C.nodeId = N.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
insert_final_newline = true | |
indent_style = space | |
indent_size = 4 | |
trim_trailing_whitespace = true | |
charset = utf-8 | |
[*.{xml,proj,nuspec}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get parameters | |
$cloudflareApiKey = $Env:CloudflareApiKey | |
$cloudflareEmail = $Env:CloudflareEmail | |
$cloudflareZoneId = $Env:CloudflareZoneId | |
# Build the request | |
$endpoint = "https://api.cloudflare.com/client/v4/zones/$cloudflareZoneId/purge_cache" | |
$headers = @{"X-Auth-Key" = $cloudflareApiKey; "X-Auth-Email" = $cloudflareEmail; "Content-Type" = "application/json"} | |
$body = "{'purge_everything': true}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vimeo URL - ^https?:\/\/(?:www\.|player\.)?vimeo\.com/(\d+)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Query Kind="Statements"> | |
<Reference><RuntimeDirectory>\System.Security.dll</Reference> | |
<Namespace>System.Security.Cryptography</Namespace> | |
</Query> | |
string unhashed = "password"; | |
HMACSHA1 hash = new HMACSHA1(); | |
hash.Key = Encoding.Unicode.GetBytes(unhashed); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir temp | |
robocopy temp node_modules /MIR | |
rd temp | |
rd node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"> | |
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" /> | |
<staticTypes> | |
<add mimeType="text/*" enabled="true" /> | |
<add mimeType="message/*" enabled="true" /> | |
<add mimeType="application/x-javascript" enabled="true" /> | |
<add mimeType="application/atom+xml" enabled="true" /> | |
<add mimeType="application/xaml+xml" enabled="true" /> | |
<add mimeType="*/*" enabled="false" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN TRANSACTION | |
BEGIN TRY | |
DECLARE @ProductId int; | |
SET @ProductId = 142; | |
DELETE FROM uCommerce_PriceGroupPrice | |
where ProductId = @ProductId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT distinct [nodeId] | |
FROM [cmsDataType] | |
EXCEPT | |
SELECT distinct dataTypeId | |
FROM [cmsPropertyType] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select DBPrincipal_2.name as role, DBPrincipal_1.name as owner | |
from sys.database_principals as DBPrincipal_1 inner join sys.database_principals as DBPrincipal_2 | |
on DBPrincipal_1.principal_id = DBPrincipal_2.owning_principal_id | |
where DBPrincipal_1.name = 'USER_NAME' |
NewerOlder