Skip to content

Instantly share code, notes, and snippets.

View grv87's full-sized avatar
🏠
Working from home

Basil Peace grv87

🏠
Working from home
View GitHub Profile
@grv87
grv87 / gradle.log
Last active October 21, 2017 07:38
Problem building gradle-info-plugin
10:38:10.516 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized native services in: C:\Users\Basil\.gradle\native
10:38:10.599 [DEBUG] [org.gradle.internal.nativeintegration.services.NativeServices] Native-platform posix files integration is not available. Continuing with fallback.
10:38:11.768 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClient] Executing build 355acd67-a988-45d6-a081-18d30ef0e1d2.1 in daemon client {pid=67652}
10:38:12.118 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding IP addresses for network interface Software Loopback Interface 1
10:38:12.128 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a loopback interface? true
10:38:12.141 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a multicast interface? true
10:38:12.148 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding loopback address /127.0.0.1
10:38:12.150 [DEBUG] [org.gradle.internal.remote.internal.inet.In
@grv87
grv87 / build.gradle
Created October 16, 2017 18:40
Task execution isn't idempotent on task's commandLine
plugins {
id 'com.github.jlouns.cpe' version '0.5.0'
}
ext.testCmd = {
println tasks['test.cpe'].commandLine
}
task('test1') {
doLast() { testCmd() }
}
task('test.cpe', type: CrossPlatformExec) {
@grv87
grv87 / build.gradle
Created October 4, 2017 21:34
Gradle cross-platform-exec plugin under Windows
plugins {
id 'com.github.jlouns.cpe' version '0.5.0'
}
task('test.cpe', type: CrossPlatformExec) {
commandLine(['bundle', '--version'])
}
task('test.cpe.PATHEXT', type: CrossPlatformExec) {
environment << ['PATHEXT': '.exe']
commandLine(['bundle', '--version'])
}
@grv87
grv87 / test.rb
Created March 20, 2017 17:44
Test command('diff') resource
control 'commands' do
impact 1.0
describe command('diff') do
it { should exist }
end
describe command('diff --version') do
its('stdout') { should match /^diff \(GNU diffutils\)/ }
end
end
@grv87
grv87 / test.cmd
Created February 3, 2017 18:04
go-symlink
REM All OK
go run test.go
REM Create link with full path
mklink /J link "\\?\%cd%"
REM Test new link. Gives something like that:
REM <JUNCTION> link [\\?\R:\!spikes\go-symlink]
dir *link*
@grv87
grv87 / packer.log
Last active February 3, 2017 05:31
Packer 0.12.1 under Windows' symbolic link
2016/12/25 18:37:23 [INFO] Packer version: 0.12.1
2016/12/25 18:37:23 Packer Target OS/Arch: windows amd64
2016/12/25 18:37:23 Built with Go Version: go1.7.3
2016/12/25 18:37:23 Using internal plugin for virtualbox-iso
2016/12/25 18:37:23 Using internal plugin for amazon-ebs
2016/12/25 18:37:23 Using internal plugin for openstack
2016/12/25 18:37:23 Using internal plugin for cloudstack
2016/12/25 18:37:23 Using internal plugin for file
2016/12/25 18:37:23 Using internal plugin for profitbricks
2016/12/25 18:37:23 Using internal plugin for qemu