Skip to content

Instantly share code, notes, and snippets.

View stefanschneider's full-sized avatar

Stefan Schneider stefanschneider

View GitHub Profile
// .net-sysversion project main.go
package main
// // importing C will increase the stack size. this is useful
// // if loading a .NET COM object, beacuse the CLR requires a larger stack
// #cgo LDFLAGS: -loleaut32
// #include "windows.h"
// #include "OleAuto.h"
import "C"
type Win32_Process struct {
Name string
//SessionId uint32
}
func main() {
//runtime.GOMAXPROCS(3)
//C.createThreadWithMsgLoop()
package main
import (
"github.com/StackExchange/wmi"
"log"
)
type Win32_Process struct {
ProcessId uint32
Name string
stefan.schneider@W-STEFANS-2012R ~/gopath/src/github.com/pivotal-golang/archiver ((b04736a...))
$ ginkgo -r -noColor=true
[1408372377] Compressor Suite - 6/6 specs •••••• SUCCESS! 14.6513ms PASS
[1408372377] Extractor Suite - 4/4 specs •••• SUCCESS! 33.2091ms PASS
Ginkgo ran 2 suites in 1.247332s
Test Suite Passed
stefan.schneider@W-STEFANS-2012R ~/gopath/src/github.com/pivotal-golang/archiver ((3854b8d...))
$ ginkgo -r -noColor=true
[1408372432] Compressor Suite - 6/6 specs ••
------------------------------
• Failure [0.005 seconds]
WriteTar [It] returns a reader representing a .tar stream
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/archiver/compressor/write_tar_test.go:68
Expected
<string>: outer-dir\inner-dir/
stefan.schneider@W-STEFANS-2012R ~/gopath/src/github.com/pivotal-golang/cacheddownloader ((062f78f...))
$ ginkgo -noColor=true -race -trace
Running Suite: CachedDownloader Suite
=====================================
Random Seed: 1408545822
Will run 50 of 50 specs
••••••••••••••••••••••••••••••••••••••••••••••••••
Ran 50 of 50 Specs in 5.774 seconds
SUCCESS! -- 50 Passed | 0 Failed | 0 Pending | 0 Skipped PASS
sstefan@sstefan-VirtualBox:~/workspace/wgot$ cf push
Using manifest file /home/sstefan/workspace/wgot/manifest.yml
Using stack windows2012r2...
OK
Updating app wgot in org diego / space diego as admin...
OK
Uploading wgot...
Uploading app files from: /home/sstefan/workspace/wgot
stefan.schneider@W-STEFANS-2012R ~/gopath/src/github.com/pivotal-golang/cacheddownloader ((74ecaf1...))
$ ginkgo -noColor=true -race -trace
Running Suite: CachedDownloader Suite
=====================================
Random Seed: 1408612367
Will run 52 of 52 specs
••••••••••••••••••••••••••••••••••••••••••••••••••••
Ran 52 of 52 Specs in 5.739 seconds
SUCCESS! -- 52 Passed | 0 Failed | 0 Pending | 0 Skipped PASS
stefan.schneider@W-STEFANS-2012R ~/gopath/src/github.com/pivotal-golang/cacheddownloader ((61ae551...))
$ ginkgo -r -noColor=true
Running Suite: CachedDownloader Suite
=====================================
Random Seed: 1408792139
Will run 52 of 52 specs
••••••••••••••••••••••••••••••••••••••
------------------------------
•! Panic [0.026 seconds]
// handles-play.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <string>
#include <iostream>
#include <map>
using namespace std;