javaposse.jobdsl.dsl.DslScriptLoader is the main class to execute the DSL script. You'll see the lines where binding.setVariable()
is called.
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
curl -O https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz | |
tar xf protobuf-2.6.1.tar.gz | |
cd protobuf-2.6.1 | |
LDFLAGS="-static-libgcc -static-libstdc++" ./configure --disable-shared --prefix=/usr/local/protobuf-2.6.1 | |
cd src | |
make protoc | |
make 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
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/Azure/go-ansiterm/winterm" | |
) | |
func main() { |
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
# Linux/x86_64 3.10.0-514.el7.x86_64 | # Linux/x86_64 3.10.0-514.10.2.el7.ce | |
# CONFIG_X86_NUMACHIP is not set | CONFIG_X86_NUMACHIP=y | |
> # CONFIG_BT_WILINK is not set | |
# CONFIG_NET_9P is not set | CONFIG_NET_9P=m | |
> CONFIG_NET_9P_VIRTIO=m | |
> # CONFIG_NET_9P_RDMA is not set | |
> # CONFIG_NET_9P_DEBUG is not set | |
# CONFIG_TI_ST is not set | CONFIG_TI_ST=m | |
# CONFIG_SCSI_AIC7XXX is not set | CONFIG_SCSI_AIC7XXX=m | |
> CONFIG_AIC7XXX_CMDS_PER_DEVICE=32 |
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
func FlagReflection(args []string) error { | |
opts := map[string]interface{}{} | |
flags := flag.NewFlagSet("xxxx", flag.ContinueOnError) | |
opts["vcpu"] = flags.Int("vcpu", int(mdst.MinVcpu), "") | |
opts["memory_gb"] = flags.Int("memory_gb", int(mdst.MinMemoryGb), "") | |
if err := flags.Parse(args); err != nil { | |
return err | |
} | |
flags.Visit(func(f *flag.Flag) { | |
v := reflect.ValueOf(mdst) |
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
go test -v $(go list ./... | Select-String -NotMatch /vendor/) |
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
import ( | |
"log" | |
"bufio" | |
"os" | |
"strings" | |
"os/exec" | |
"bytes" | |
) | |
func findCurrentBranch() string { |
PS C:\> Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, OSType, ServicePackMajorVersion, OSAr
itecture, BuildNumber, MUILanguages, OSLanguage, Locale, CodeSet, CountryCode | FL
Caption : Microsoft Windows 10 Pro
Version : 10.0.10586
OSType : 18
ServicePackMajorVersion : 0
OSArchitecture : 64 ビット
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
boxtemp/ | |
output-*/ | |
packer_cache/ |
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
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$True,Position=1)] | |
[string]$WatchPath, | |
[Parameter(Mandatory=$True,Position=2)] | |
[string]$Command, | |
[Parameter(Mandatory=$False)] | |
[array]$MonitorEvents = @("Created", "Changed", "Deleted", "Renamed") | |
) |