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
variable "key_path" { | |
default = "/Users/camilo/.ssh/id_rsa" | |
} | |
variable "password" { | |
default: "" | |
} | |
provider "vix" { | |
product = "fusion" |
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
/* | |
terraform apply \ | |
-var 'key_path=/home/camilo/.ssh/id_rsa' \ | |
-var 'password=test' \ | |
*/ | |
variable "key_path" { | |
default = "/Users/camilo/.ssh/id_rsa" | |
} |
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
<dict> | |
<key>name</key> | |
<string>Json Keys</string> | |
<key>scope</key> | |
<string>source.json meta.structure.dictionary.json string.quoted.double.json</string> | |
<key>settings</key> | |
<dict> | |
<key>foreground</key> | |
<string>#DEDEDE</string> | |
</dict> |
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
$ dig @127.0.0.1 -p 8600 consul.service.consul SRV | |
; <<>> DiG 9.8.3-P1 <<>> @127.0.0.1 -p 8600 consul.service.consul ANY | |
; (1 server found) | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50483 | |
;; flags: qr aa rd; QUERY: 1, ANSWER: 3, AUTHORITY: 1, ADDITIONAL: 1 | |
;; WARNING: recursion requested but not available |
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
make: [cleanbuilddir] Error 1 (ignored) | |
rm -f debian/stamp-makefile-build debian/stamp-makefile-install | |
/usr/bin/make -C /build/buildd/libvirt-1.2.4/debian/build -k distclean | |
make: *** /build/buildd/libvirt-1.2.4/debian/build: No such file or directory. Stop. | |
make: [makefile-clean] Error 2 (ignored) | |
rm -f debian/stamp-makefile-check | |
rm -f debian/stamp-autotools | |
rmdir --ignore-fail-on-non-empty /build/buildd/libvirt-1.2.4/debian/build | |
rmdir: failed to remove '/build/buildd/libvirt-1.2.4/debian/build': No such file or directory | |
make: [makefile-clean] Error 1 (ignored) |
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
# Ubuntu upstart file at /etc/init/ejabberd.conf | |
respawn | |
respawn limit 20 5 | |
start on runlevel [2345] | |
stop on runlevel [06] | |
script | |
exec start-stop-daemon --start --name ejabberd --user ejabberd --chuid ejabberd --exec /usr/local/sbin/ejabberdctl -- start |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"strconv" | |
"time" | |
"github.com/octplane/mnemo" | |
) |
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
camilo@grinch-2 /tmp/swarm-test % node test.js | |
Connected! | |
presence: {"from":{"resource":"aaeee512fda0a6dbb20d0baa5a05d85f35968777"},"type":"available"} | |
presence: {"from":{"resource":"0d85b7198e5ac453ddb227c7ca735272bf52bba4"},"type":"available"} | |
presence: {"from":{"swarm":"9e4a8e85f12da09a3ed1cd0f3942f570ee12baa3","resource":"0d85b7198e5ac453ddb227c7ca735272bf52bba4"}} | |
presence: {"from":{"swarm":"9e4a8e85f12da09a3ed1cd0f3942f570ee12baa3","resource":"aaeee512fda0a6dbb20d0baa5a05d85f35968777"}} | |
message: {"from":{"swarm":"9e4a8e85f12da09a3ed1cd0f3942f570ee12baa3","resource":"aaeee512fda0a6dbb20d0baa5a05d85f35968777"},"payload":"{\"temperature\":58}","public":true} | |
message: {"from":{"swarm":"9e4a8e85f12da09a3ed1cd0f3942f570ee12baa3","resource":"aaeee512fda0a6dbb20d0baa5a05d85f35968777"},"payload":"{\"temperature\":100}","public":true} |
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
var Swarm = require('bugswarm-prt').Swarm; | |
var options = { | |
apikey: '4d9b162a7f1b5122e551b427a3fb26d49df85f37', | |
resource: 'aaeee512fda0a6dbb20d0baa5a05d85f35968777', | |
swarms: ['9e4a8e85f12da09a3ed1cd0f3942f570ee12baa3'] | |
}; | |
var prosumer = new Swarm(options); |
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
'use strict'; | |
// pick a random port between 1025 and 65535 | |
// check using netstat to see if port is used | |
var exec = require('child_process').exec; | |
var port; | |
var _port; | |
var interval; |