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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\exefile\shell\StartAndAttachDebugger] | |
@="Start and Attach Debugger" | |
"Icon"="vsjitdebugger.exe" | |
"Extended"="" | |
[HKEY_CLASSES_ROOT\exefile\shell\StartAndAttachDebugger\command] | |
@="powershell Start-Process \"vsjitdebugger.exe\" -Verb runAs -ArgumentList \"%1 %*\"" |
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
<Target Name="AfterBuild" Condition="'$(Configuration)'=='Release'"> | |
<CreateItem Include="$(SolutionDir)\packages\ILMerge.*\tools\ILMerge.exe"> | |
<Output TaskParameter="Include" ItemName="ILMergeExe" /> | |
</CreateItem> | |
<Error Text="@(ILMergeExe) does not exists" Condition="!Exists('@(ILMergeExe)')" /> | |
<CreateItem Include="@(ReferencePath)" Condition="'%(CopyLocal)'=='true'"> | |
<Output TaskParameter="Include" ItemName="ILMergeAssemblies" /> | |
</CreateItem> | |
<Delete Files="$(OutputPath)\ILMerge.log" Condition="Exists('$(OutputPath)\ILMerge.log')" /> | |
<Exec Command=""@(ILMergeExe)" /ndebug /log:$(OutputPath)\ILMerge.log /out:@(MainAssembly) "@(IntermediateAssembly)" @(ILMergeAssemblies->'"%(FullPath)"', ' ')" /> |
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
SELECT LOWER(UserAtHost) AS UserAtHost, Status= | |
CASE | |
WHEN Availability BETWEEN 0 AND 2999 THEN Availability | |
WHEN Availability BETWEEN 3000 AND 4499 THEN 'Available' | |
WHEN Availability BETWEEN 4500 and 5999 THEN 'Available - Idle' | |
WHEN Availability BETWEEN 6000 and 7499 THEN 'Busy' | |
WHEN Availability BETWEEN 7500 and 8999 THEN 'Busy - Idle' | |
WHEN Availability BETWEEN 9000 and 11999 THEN 'Do not Disturb' | |
WHEN Availability BETWEEN 12000 and 14999 THEN 'Be right back' | |
WHEN Availability BETWEEN 15000 and 17999 THEN 'Away' |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\cmd] | |
@="@shell32.dll,-8506" | |
"Extended"="" | |
[HKEY_CLASSES_ROOT\*\shell\cmd\command] | |
@="cmd.exe /s /k \"pushd \"%%HOMEDRIVE%%\\%%HOMEPATH%%\" & echo >%%TEMP%%\\cmd.vbs set shell = CreateObject(\"WScript.Shell\"):shell.SendKeys \"%1\":CreateObject(\"Scripting.FileSystemObject\").DeleteFile(Wscript.ScriptFullName) & %%TEMP%%\\cmd.vbs\"" |
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
#!/usr/bin/env python | |
"""ssm.py: Simple service monitor.""" | |
__author__ = "Eun" | |
__copyright__ = "Copyright 2015, Eun" | |
__license__ = "GPL" | |
__version__ = "1.0.0" | |
# Service Configuration |
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
#include <CoreFoundation/CoreFoundation.h> | |
#include <ApplicationServices/ApplicationServices.h> | |
int main (int argc, const char * argv[]) { | |
CGDisplayCount displayCount; | |
CGDirectDisplayID displays[4]; | |
int i; | |
CGGetOnlineDisplayList(4, displays, &displayCount); |
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
// this gist demonstrates how easy an attacker can get all your saved passwords in almost any browser | |
// usage: | |
// 1. goto any website where your browser has stored a password for you | |
// 2. open the Developer Console (F12), may vary from browser to browser | |
// 3. paste following code & execute it | |
for (var els = document.querySelectorAll("input[type=password]"), i = els.length - 1; i >= 0; --i) | |
{ | |
els[i].type = "text"; | |
} |
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
โญโโโโโโโโโโโโฌโโโโโโโโโโโโฎ | |
โ Heading โ Heading2 โ | |
โโโโโโโโโโโโโผโโโโโโโโโโโโค | |
โ Text โ Text โ | |
โฐโโโโโโโโโโโโดโโโโโโโโโโโโฏ | |
โโโโโโโโโโโโโฌโโโโโโโโโโโโ | |
โ Heading โ Heading2 โ | |
โโโโโโโโโโโโโผโโโโโโโโโโโโค | |
โ Text โ Text โ |
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
<snippet> | |
<content><![CDATA[ | |
var page = require('webpage').create(); | |
page.open('http://${1:url}', | |
function (status) { | |
if (status !== 'success') { | |
console.log('Failed'); | |
} else { | |
console.log(page.evaluate(function(){return document.body.innerText;})); | |
} |
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
## MAKEFILE V 1.4 ## | |
BIN = a.out | |
CC = gcc | |
CPLUS = g++ | |
LINK = g++ | |
OBJC = $(shell find ./src -name "*.c" | sed 's/\.c/\.o/g' | sed 's/\.\/src\//\.\/obj\//g') | |
OBJCPP = $(shell find ./src -name "*.cpp" | sed 's/\.cpp/\.opp/g' | sed 's/\.\/src\//\.\/obj\//g') | |
OBJ = $(OBJC) $(OBJCPP) |