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
param ( | |
[Parameter(Mandatory=$true)][string]$dir = "." | |
) | |
fsutil.exe file setCaseSensitiveInfo "$($dir)" enable | |
# Create an array of folders | |
$folders = Get-ChildItem -Path $dir -Recurse -Directory -Force -ErrorAction SilentlyContinue | |
# Perform iteration to create the same file in each folder |
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
def true(): | |
print("True") | |
return True | |
def false(): | |
print("False") | |
return False | |
true() and false() |
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
task printSolvedDepsTreeInJson { | |
doLast { | |
def jsonOutput = "[" | |
configurations.compile.resolvedConfiguration.firstLevelModuleDependencies.each { dep -> | |
def addToJson | |
addToJson = { resolvedDep -> | |
jsonOutput += "\n{" | |
jsonOutput += "\"groupId\":\"${resolvedDep.module.id.group}\"," + | |
"\"artifactId\":\"${resolvedDep.module.id.name}\"," + |
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
#!/bin/sh | |
if [ -z "$1" ]; then | |
echo "$0 <vm name>" | |
exit -1 | |
fi | |
docker-machine ssh $1 -- tce-load -wi python.tcz | |
docker-machine ssh $1 -- sudo ln -s /usr/local/bin/python /usr/bin/python | |
docker-machine ssh $1 -- 'curl https://bootstrap.pypa.io/get-pip.py | sudo python -' | |
docker-machine ssh $1 -- sudo pip install docker-py |