This file contains 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
TOKEN=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token) | |
RESPONSE=$(curl -L https://${KUBERNETES_SERVICE_HOST}/api/v1/namespaces/flow/pods | |
-H"Authorization: Bearer ${TOKEN}" | |
--cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt) | |
echo $RESPONSE | jq '.items[] | | |
del(.metadata.labels.isbase | select(. == null)) | | |
select(.metadata.labels.isbase == "true") | | |
.status.podIP' | sed 's/"//g' |
This file contains 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
var q = require('q'); | |
var fs = require('fs'); | |
function test() { | |
var deferred = q.defer(); | |
fs.readFile("package.json", "utf-8", function (error, text) { | |
if (error) { | |
deferred.reject(new Error(error)); | |
} else { | |
setTimeout(function() { |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am dijam on github. | |
* I am majid (https://keybase.io/majid) on keybase. | |
* I have a public key whose fingerprint is EC0F 6BAC 86FB C248 154F 0EBD A914 FB63 6211 7233 | |
To claim this, I am signing this object: |