This file contains hidden or 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
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 | |
""" |
This file contains hidden or 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
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* For more information, please refer to <https://unlicense.org> | |
*/ | |
//Regular text | |
#define BLK "\e[0;30m" | |
#define RED "\e[0;31m" | |
#define GRN "\e[0;32m" |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
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 |