Assumtions:
- All static pages are in top folder. File search is being done root folder and URL generated in search results.
- Search.aspx is skipped
- Search is being done on *.aspx files
DBCC opentran | |
KILL [server process ID] |
wget --proxy 0.0.0.0:8080 --no-check-certificate %1 |
:: script will generate timestamp in format yyyyMMdd_HHmm | |
echo off | |
set hr=%time:~0,2% | |
if "%hr:~0,1%" equ " " set hr=0%hr:~1,1% | |
set timestamp=OptionalPrefix_%date:~-4,4%%date:~-10,2%%date:~-7,2%_%hr%%time:~3,2% | |
echo. | |
echo generated timestamp: %timestamp% | |
echo. | |
pause |
-- http://stackoverflow.com/a/7892349/84852 | |
SELECT | |
t.NAME AS TableName, | |
s.Name AS SchemaName, | |
p.rows AS RowCounts, | |
SUM(a.total_pages) * 8 AS TotalSpaceKB, | |
SUM(a.used_pages) * 8 AS UsedSpaceKB, | |
(SUM(a.total_pages) - SUM(a.used_pages)) * 8 AS UnusedSpaceKB | |
FROM | |
sys.tables t |
Windows Registry Editor Version 5.00 | |
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat] | |
[-HKEY_CURRENT_USER\Software\Classes\.bat] | |
[-HKEY_CURRENT_USER\SOFTWARE\Classes\batfile] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bat] | |
@="batfile" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\open\command] |
Assumtions:
// chrome 43.0.2357.124 m | |
// probably contains some plugin fluff | |
var vanilla = ['top' | |
,'location' | |
,'document' | |
,'window' | |
,'external' | |
,'chrome' | |
,'_gaUserPrefs' | |
,'DoodleNotifier' |
/\_/\
____/ o o \
/~____ =ø= /
(______)__m_m)
Order of execution:
Function.prototype.method = function(name, func) { | |
this.prototype[name] = func; | |
return this; | |
} | |
Function.prototype.extends = function(superclass) { | |
this.prototype = Object.create(superclass.prototype); | |
this.prototype.constructor = this; | |
} |
// everyone's new favorite closure pattern: | |
(function(window,document,undefined){ ... })(this,this.document); | |
// when minified: | |
(function(w,d,u){ ... })(this,this.document); | |
// which means all uses of window/document/undefined inside the closure | |
// will be single-lettered, so big gains in minification. | |
// it also will speed up scope chain traversal a tiny tiny little bit. |