Skip to content

Instantly share code, notes, and snippets.

View AN
This is test content
View linux_buildagent
# ---------------------------------------------------------------------
# TeamCity build agent bootstrap script
# ---------------------------------------------------------------------
# Parameters:
# $1 required: TeamCity Server URL
# $2 required: TeamCity Agent installation path
# $3 required: Authorization token. Must be "-1" if no auto registration required
# $4 optional: Agent account
View BoxStarterPS
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
# Enable-RemoteDesktop
# Disable-InternetExplorerESC
View DevConfig
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst console2
cinst fiddler4
cinst git.install
cinst notepadplusplus.install
cinst 7zip.install
cinst GoogleChrome
cinst javaruntime
erick-thompson / TcpPortLimitedTaskScheduler
Created Oct 7, 2012
Task scheduler for TPL that ensures that the ephemeral port limit isn't reached. (
View TcpPortLimitedTaskScheduler
public class TcpPortLimitedTaskScheduler : TaskScheduler
private static bool _CurrentThreadIsProcessingItems;
private readonly LinkedList<Task> _Tasks = new LinkedList<Task>();
private int _DelegatesQueuedOrRunning = 0;
public const int TcpConnectionLimit = 4000;