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
@echo off | |
rmdir /S /Q "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\" | |
PAUSE |
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
#deletes all files in the current directory except 5.txt) | |
rm -rf $(ls | grep -v 5.txt) |
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
/* | |
prepends the client identifier to all occurences of a theme directory call | |
useful for when moving data from production to local dev | |
just update @ClientIdentifier to match the clients theme directory name. | |
WARNING: only run this locally, handwrite something if your going from local to prod | |
If you need to debug, just use this statement | |
SELECT CAST(REPLACE(CAST(HtmlText as nvarchar(max)), '/admin/theme/','/'+ @ClientIdentifier +'/admin/theme/') as ntext) FROM Html |
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
/* | |
prepends the client identifier to all occurences of a theme directory call | |
useful for when moving data from local to production | |
just update @ClientIdentifier to match the clients theme directory name. | |
WARNING: YOU HAVE TO MANUALLY SET THE LENGTH IN SUBSTRING(HtmlText, 0, 6) = @ClientIdentifier TO MATCH THE LENGTH OF THE @ClientIdentifier. | |
If you need to debug, just use this statement | |
SELECT CAST(REPLACE(CAST(HtmlText as nvarchar(max)), '/admin/theme/','/'+ @ClientIdentifier +'/admin/theme/') as ntext) FROM Html |
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 ci.ProductID, COUNT(ci.ProductID) AS Total | |
FROM CartItem AS ci INNER JOIN | |
SportPick AS sp ON sp.SportPickID = ci.ProductID | |
GROUP BY ci.ProductID, sp.Winner | |
ORDER BY Total |
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
UPDATE Site SET ConnectionString = REPLACE(ConnectionString, 'SDFMAXVCUS0667', 'NAMEOFYOURLOCALSQLSERVER') |
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
/* resets the heading sizes */ | |
h1 { font-size: 2em;} | |
h2 { font-size: 1.5em;} | |
h3 { font-size: 1.17em;} | |
h5 { font-size: .83em;} | |
h6 { font-size: .75em;} |
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
bin | |
obj | |
*.suo | |
*.user | |
*.*~ |
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
using System; | |
using System.Collections.Generic; | |
using System.Net.Mail; | |
using System.Text.RegularExpressions; | |
namespace MiniRideAndDrive.Web { | |
public static class EmailHelper { | |
public static string EmailValidationExpression { | |
get { | |
return @"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" + |
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
using System; | |
using System.Linq; | |
using System.Web; | |
using System.Web.UI.WebControls; | |
using MiniRideAndDrive.Web.Data; | |
public static partial class Helpers { | |
public static string BaseUrl { |
OlderNewer