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 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
$variables = | |
[Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::Machine) -split ';' | | |
foreach { $_.Trim().TrimEnd('\\') } | | |
group | | |
select -ExpandProperty Name | | |
where { -not [string]::IsNullOrWhitespace($_) } | |
$path = $variables -join ';' | |
[Environment]::SetEnvironmentVariable("PATH", $path, [System.EnvironmentVariableTarget]::Machine) |
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
$ErrorActionPreference = "Stop" | |
$directory = [io.path]::combine($env:LOCALAPPDATA, "microsoft", "team foundation") | |
foreach($versionDirectory in get-childitem $directory) | |
{ | |
$cacheDirectory = Join-Path $versionDirectory.FullName "Cache" | |
$items = Get-ChildItem $cacheDirectory | |
foreach($item in $items) | |
{ | |
Remove-Item -Recurse -Force $item.FullName | |
} |
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
# setup | |
Set-ExecutionPolicy AllSigned | |
# install chocolatey | |
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
# install packages | |
choco install firefox -y | |
choco install filezilla -y | |
choco install javaruntime -y |
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
package com.props.tests; | |
import java.util.Date; | |
import com.props.*; | |
public class Person { | |
public final Property<Integer> id = new Property<Integer>(); | |
public final Property<String> firstName = new Property<String>(); | |
public final Property<String> lastName = new Property<String>(); | |
public final Property<Date> dateOfBirth = new Property<Date>(); | |
} |
NewerOlder