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 | |
setlocal EnableExtensions | |
set tfuser=glombard | |
set tflogin=/login:DOMAIN\%tfuser%,password | |
set tfworkspace=TFSWorkspace | |
set tfdir=C:\temp\MyWorkspace | |
set tfsource=$/PROJ/Source | |
set tfurl=http://127.0.0.1:8080/tfs/TEAM/ |
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
# Install nodejs under /usr/local/Cellar/node/0.10.26/ | |
brew update | |
brew install node | |
# install global node modules under /usr/local/lib/node_modules/ | |
npm install -g grunt-cli | |
npm install -g yo | |
npm install -g bower | |
npm install -g generator-angular | |
npm install -g protractor |
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
if (!(Test-Path "$env:Temp\streams.exe")) { | |
(new-object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/streams.exe', "$env:Temp\streams.exe") | |
} | |
# "Unblock" the files... | |
& "$env:Temp\streams.exe" @('-d', '*.*') |
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
# A simple module to wrap a nicer interface around Write-Progress. | |
# It allows you to first register each step you're going to perform and | |
# then you activate/set each step as you progress through your script. | |
$progress = New-Module -ScriptBlock { | |
[string]$title = 'Progress' | |
[int]$totalSteps = 0 | |
function Activity { | |
param([string]$activity) |
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
D: | |
md work\Topics | |
cd work\Topics | |
cinst curl | |
cinst nodejs.install | |
set path=%path%;C:\Program Files\nodejs | |
setx path "%path%" /m | |
npm install -g bower | |
bower install bootstrap | |
bower install knockout |
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 | |
set from=2014-01-01 | |
set to=2014-12-31 | |
echo Exporting TFS History from %from% to %to% | |
where tf.exe | |
if errorlevel 1 call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat" | |
set tfproject=$/proj/src | |
set tflogin=DOMAIN\user3,mypasswd | |
set tfcollection=http://192.168.1.10:8080/tfs/collection | |
tf history %tfproject% /version:D"%from%"~D"%to%" /user:* /format:detailed /noprompt /login:"%tflogin%" /collection:%tfcollection% /recursive > history.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
"""Converts Pluralsight transcript HTML to Markdown. | |
""" | |
from bs4 import BeautifulSoup | |
import sys | |
soup = BeautifulSoup(open(sys.argv[1])) | |
name = soup.find('meta', itemprop='name')['content'] | |
description = soup.find('meta', property='og:description')['content'] |
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
// from: http://stackoverflow.com/questions/2226920/how-to-monitor-clipboard-content-changes-in-c | |
/// <summary> | |
/// Provides notifications when the contents of the clipboard is updated. | |
/// </summary> | |
public sealed class ClipboardNotification | |
{ | |
/// <summary> | |
/// Occurs when the contents of the clipboard is updated. | |
/// </summary> |
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
sudo apt-get update | |
sudo apt-get -y install virtualbox-ose | |
sudo apt-get -y install php5 | |
sudo apt-get -y install unzip | |
curl -L -of.zip http://sourceforge.net/projects/phpvirtualbox/files/phpvirtualbox-4.2-8.zip/download | |
sudo unzip -o f.zip -d /var/www/ | |
sudo cp /var/www/config.php-example /var/www/config.php |
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
New-Service -Name 'SNMP' -BinaryPathName 'C:\windows\notepad.exe' -DisplayName 'Fake SNMP Service' -StartupType Manual |