Skip to content

Instantly share code, notes, and snippets.

View zecke's full-sized avatar

Holger Freyther zecke

View GitHub Profile
diff a/public/app/features/dashboard/state/initDashboard.ts b/public/app/features/dashboard/state/initDashboard.ts
--- a/public/app/features/dashboard/state/initDashboard.ts
+++ b/public/app/features/dashboard/state/initDashboard.ts
@@ -144,6 +144,6
locationService.partial({ orgId: storeState.user.orgId }, true);
}
// init services
const timeSrv: TimeSrv = getTimeSrv();
const dashboardSrv: DashboardSrv = getDashboardSrv();
@zecke
zecke / graal log
Created May 4, 2019 09:16
Graalsqueak/Trufflesqueak opening a 5.2 image
../mx/mx -n squeak ~/Downloads/Squeak5.2-18229-32bit.image
WARNING: project com.oracle.truffle.api.benchmark:
`isTestProject` attribute has been renamed to `testProject`
== Running TruffleSqueak on Default Truffle Runtime ==
Connecting classes...
Instantiating classes...
Filling in objects...
org.graalvm.launcher.Launcher$AbortException
Caused by: org.graalvm.polyglot.PolyglotException: java.lang.RuntimeException: stepping in context not implemented yet
at de.hpi.swa.trufflesqueak.model.ContextObject.execute(ContextObject.java:103)
@zecke
zecke / playground.st
Created April 17, 2019 06:09
Low-level gRPC bindings.. and first unary blocking call
| channel method queue call batch result |
"Create a channel to the destination(s)"
channel := GrpcChannel newInsecure: 'localhost:50051'.
"Force one connection!"
channel check_connectivity: 1.
"Prepare the call with a deadline for a given queue. This seems to define the pollset"
method := '/helloworld.Greeter/SayHello' asByteArray asGrpcSlice.
queue := GrpcCompletionQueue next.
call := [
@zecke
zecke / pseudo go
Last active February 27, 2019 11:36
CSP for the win?
// Sketched code.. not syntactially correct but showing the idea. I don't know the API
type Process struct {
// Struct to hold information about all processes.
unixProcess ...
}
func Terminate(process *Process, c, chan<-int) {
// Terminate a single process. first try SIGTERM, SIGINT, SIGKILL
// TODO(zecke): Make this a loop..
for i, sig := range []int{SIGTERM, SIGINT, SIGKILL} {