Skip to content

Instantly share code, notes, and snippets.

View sschober's full-sized avatar

Sven Schober sschober

  • Siemens Logistics GmbH
  • Nuremberg
View GitHub Profile
defmodule Dynasty.Sonos.Discovery do
use GenServer
@playersearch ~S"""
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:schemas-upnp-org:device:ZonePlayer:1
"""
@nobuhikosekiya
nobuhikosekiya / wls1221_deploy_samples.txt
Created September 30, 2016 02:02
REST API samples to deploy appilcations to WebLogic Server 12.2.1
#!/bin/sh
# Upload and deploy a app from local.
curl -v --user user:password -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data \
-F "model={
name: 'myapp',
targets: [ { identity: [ 'servers' , 'AdminServer' ] } ]
}" \
-F "sourcePath=@target\myapp.war" -H "Prefer:respond-async" \
-X POST http://192.168.99.100:8001/management/weblogic/latest/edit/appDeployments
@knieriem
knieriem / peg.go.patch
Created March 25, 2011 10:31
fix compilation of peg.go Compilation failed with error(s): <label> defined and not used due to a recent change to the Go compilers: http://code.google.com/p/go/source/detail?r=570c3ce8 This temporary fix introduces bookkeeping about labels being
diff --git a/peg.go b/peg.go
--- a/peg.go
+++ b/peg.go
@@ -1135,7 +1135,7 @@
}
var printRule func(node Node)
- var compile func(expression Node, ko uint)
+ var compile func(expression Node, ko uint) (usedko bool)
var label uint