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
└──╼ vagrant -v | |
There is a syntax error in the following Vagrantfile. The syntax error | |
message is reproduced below for convenience: | |
/Users/mt/Sources/cozymyadmin/Vagrantfile:31: syntax error, unexpected ':', expecting kEND | |
config.vm.network :private_network, ip: "192.168.50.4" | |
^ | |
/Users/mt/Sources/cozymyadmin/Vagrantfile:36: syntax error, unexpected ':', expecting kEND | |
...etwork :forwarded_port, guest: 9101, host: 9101 # Cozy Data ... | |
^ |
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
{ | |
"_id": "31bde843db0e16877560b19b5800c021", | |
"_rev": "4-f42e5293293b107cbf1bff8934adb450", | |
"title": "IMG-20121219-WA0004.jpg", | |
"description": "undefined", | |
"albumid": "31bde843db0e16877560b19b58008e5f", | |
"docType": "Photo", | |
"_attachments": { | |
"raw": { | |
"content_type": "image/jpeg", |
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
- name: If undefined set bootstrap to the first node of the cluster | |
set_fact: | |
bootstrap: "{{ groups[cluster_name]|first }}" | |
when: bootstrap == False or bootstrap is not defined | |
tags: | |
- couchbase | |
- bootstrap | |
- name: Check if the current machine is part of the cluster | |
shell: > |
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
- name: Copy required core collectd RPM packages | |
copy: > | |
src={{ item }}-{{ version }}.rpm | |
dest=/tmp/{{ item }}-{{ version }}.rpm | |
with_items: packages | |
tags: | |
- collectd | |
- pkgs | |
- libs |
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
[Sat, 30 Nov 2013 19:23:17 GMT] [error] [<0.81.0>] ** Generic server disksup terminating | |
** Last message in was {'EXIT',#Port<0.1748>,normal} | |
** When Server state == [{data,[{"OS",{unix,linux}}, | |
{"Timeout",60000}, | |
{"Threshold",100}, | |
{"DiskData", | |
[{"/",8256952,19}, | |
{"/dev/shm",3756944,0}, | |
{"/var/lib/couchdb",103212320,45}]}]}] | |
** Reason for termination == |
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 ByteBuffer = require('bytebuffer'); | |
var flatbuffers = require('./flatbuffers').flatbuffers; | |
var schema = require('./schema_generated.js').MyGame; | |
var count = 100000; | |
var builder = new flatbuffers.Builder(); | |
var name = builder.createString('Holtzinger'); | |
schema.Monster.startMonster(builder); | |
schema.Monster.addPos(builder, schema.Vec3.createVec3(builder, 1, 2, 3)) |
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 mySecret = "All your base"; | |
var found = false; | |
while (!found) { | |
var b = new Buffer(1000); | |
var str = b.toString('utf8') | |
if (str.indexOf(mySecret) > -1) { | |
found = true; | |
console.log('Found:', str); | |
} |
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
function hammingWeight(i) { | |
i = i - ((i >> 1) & 0x55555555); | |
i = (i & 0x33333333) + ((i >> 2) & 0x33333333); | |
return ((i + (i >> 4) & 0xF0F0F0F) * 0x1010101) >> 24; | |
} | |
function netmaskToCIDR(netmask) { | |
let chunks = netmask.split('.') | |
if (chunks.length != 4) { | |
return false; |
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
defmodule Conversation do | |
use GenFSM | |
def start_link() do | |
IO.puts "Starting FSM" | |
GenFSM.start_link(__MODULE__, nil) | |
end | |
def hello(pid) do | |
GenFSM.send_event(pid, :hello) |
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
--- | |
# This file will be used by the different build scripts and tools | |
# to define outputs and destination | |
### GitHub repository | |
# The GitHub repository information will be used when building the | |
# documentation and pushing releases | |
### | |
github: | |
# User or organization name |