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
strComputer = "." | |
Set objWMIService = GetObject("winmgmts:" _ | |
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") | |
Set colListOfServices = objWMIService.ExecQuery _ | |
("Select * from Win32_Service Where Name = 'Name_Of_Service_You_Want_To_Uninstall_Here'") | |
For Each objService in colListOfServices | |
objService.StopService() | |
objService.Delete() |
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
for /f "tokens=2 delims=," %F in ('tasklist /nh /fi "imagename eq sqlservr.exe" /fo csv') do netstat -oan | findstr %~F | |
(Note: Please replace % with %% when running in Batch file instead of Command Line) |
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
Please install KB2468871, which solves the issue related to Microsoft.Bcl.Async not being able to resolve System.Core version 2.0.5.0. | |
See also Issue 8 in the async targeting pack knowledge base. | |
Here are the direct download links for the fixes, for the x86 and x64 environments: | |
http://download.microsoft.com/download/2/B/F/2BF4D7D1-E781-4EE0-9E4F-FDD44A2F8934/NDP40-KB2468871-v2-x86.exe | |
http://download.microsoft.com/download/2/B/F/2BF4D7D1-E781-4EE0-9E4F-FDD44A2F8934/NDP40-KB2468871-v2-x64.exe |
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
# Generic | |
* Beyond Compare | |
* grepWin - find and replace tool | |
* BareTail - A free real-time log file monitoring tool | |
* TreeSize Free - Quickly Scan Directory Sizes and Find Space Hogs | |
* Lockhunter - release locked files | |
* CDBurnerXP - burn cd/dvd and create iso files | |
* VirtualCloneDrive - mount iso files | |
* WinRAR / 7zip |
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 projectName | |
cd projectName | |
virtualenv --no-site-package venv | |
pip install flask | |
touch app.py | |
mkdir static | |
mkdir templates |
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
function transform(data) { | |
// filter functions are passed the whole API response object | |
// you may manipulate or add to this data as you want | |
// query parameters exist in the global scope, for example: | |
// http://www.kimonolabs.com/apis/<API_ID>/?apikey=<API_KEY>&myparam=test | |
// query.myparam == 'test'; // true | |
function removeWord(text, wordToRemove) { | |
text = text.replace(wordToRemove, '') |
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
virtualenv --distribute venv | |
source venv/bin/activate | |
pip install scrapy-redis | |
git clone https://github.com/darkrho/scrapy-redis.git | |
cd scrapy-redis | |
python setup.py install |
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
require 'socket' | |
def tcpconnect(username, password) | |
temp_data = '' | |
begin | |
s = TCPSocket.new($host, 21) | |
temp_data = s.gets | |
s.puts("USER #{username}\r\n") |
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
# list all open network connections by PID | |
lsof -i | grep -E "(LISTEN|ESTABLISHED)" |
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
apt-get install logwatch | |
vim /etc/cron.daily/00logwatch | |
add this line: | |
/usr/sbin/logwatch --output mail --mailto [email protected] --detail high |