This file contains hidden or 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 | |
SET NEWLINE=^& echo. | |
FIND /C /I GLOBAL_URL1 %WINDIR%\system32\drivers\etc\hosts | |
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 www.google.com>>%WINDIR%\System32\drivers\etc\hosts | |
FIND /C /I GLOBAL_URL2 %WINDIR%\system32\drivers\etc\hosts | |
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 www.google.co.uk>>%WINDIR%\System32\drivers\etc\hosts |
This file contains hidden or 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
USE [MyDatabaseName] | |
GO | |
SELECT | |
macro AS 'ID', | |
macroName AS 'Name', | |
macroPropertyName AS "Property Name", | |
macroPropertyAlias AS 'Alias', | |
macroRefreshRate AS 'Timeout' | |
This file contains hidden or 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
Key Name Resulting Keystroke | |
{F1} - {F24} Function keys. For example: {F12} is the F12 key. | |
{!} ! | |
{#} # | |
{+} + | |
{^} ^ | |
{{} { | |
{}} } | |
{Enter} ENTER key on the main keyboard | |
{Escape} or {Esc} ESCAPE |
This file contains hidden or 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
*.o *.lo .la ## .*.rej .rej .~ ~ .# .DS_Store thumbs.db Thumbs.db *.bak *.class *.exe *.dll *.mine *.obj *.ncb *.lib *.log *.idb *.pdb *.ilk .msi .res *.pch *.suo *.exp ~. cvs CVS .CVS .cvs release Release debug Debug ignore Ignore bin Bin obj Obj *.csproj.user *.user _ReSharper.* *.resharper.user Activity.txt Logs TEMP umbraco.config preview |
This file contains hidden or 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
REM by Goyuix at Stackoverflow, 18th June 2011 | |
REM ********* | |
ECHO Starting | |
FOR %%i IN (*.*) DO 7z.exe a "%%~ni.7z" "%%i" | |
ECHO Stopped |
This file contains hidden or 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
EVPCustomLogs | |
Tenant.xml | |
################### | |
# compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.pdb |
This file contains hidden or 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
public static object GetPropValue(object src, string propName) | |
{ | |
return src.GetType().GetProperty(propName).GetValue(src, null); | |
} |
This file contains hidden or 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
<form action="foo"> | |
<button name="action" value="bar">Go</button> | |
</form> | |
<script type="text/javascript"> | |
$('form').attr('action', 'baz'); //this fails silently | |
$('form').get(0).setAttribute('action', 'http://www.github.com/'); //this works | |
</script> |
This file contains hidden or 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
public static T GetValue<T>(this NameValueCollection collection, string key) | |
{ | |
if(collection == null) | |
{ | |
throw new ArgumentNullException("collection"); | |
} | |
var value = collection[key]; | |
if(value == null) |
This file contains hidden or 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
<configuration> | |
<system.web> | |
<compilation> | |
<codeSubDirectories> | |
<add directoryName="Extensions"/> | |
</codeSubDirectories> | |
</compilation> | |
</system.web> | |
</configuration> |