##Configure Postfix for Gmail SMTP## ###Edit file /etc/postfix/main.cf###
sudo vim /etc/postfix/main.cf
and add in the following to the bottom of the file:
relayhost = [smtp.gmail.com]:587
##Configure Postfix for Gmail SMTP## ###Edit file /etc/postfix/main.cf###
sudo vim /etc/postfix/main.cf
and add in the following to the bottom of the file:
relayhost = [smtp.gmail.com]:587
load_data.erl escript from https://raw.githubusercontent.com/basho/basho_docs/master/source/data/load_data.erlgoog.csv test data from https://github.com/basho/basho_docs/raw/master/source/data/goog.csv| #!/bin/sh | |
| ## ------------------------------------------------------------------- | |
| ## | |
| ## riak-debug-lite: Gather info from a node for troubleshooting. | |
| ## | |
| ## Copyright (c) 2013 Basho Technologies, Inc. All Rights Reserved. | |
| ## | |
| ## This file is provided to you under the Apache License, | |
| ## Version 2.0 (the "License"); you may not use this file |
| #!/usr/bin/env escript | |
| %% -*- erlang -*- | |
| %%! -smp enable -sname convert_binary_ring -mnesia debug verbose | |
| main([RingFile, OutFile]) -> | |
| try | |
| {ok, Binary} = file:read_file(RingFile), | |
| Ring = binary_to_term(Binary), | |
| try | |
| file:write_file(OutFile, io_lib:format("~p.~n", [Ring])), |
| --------- | |
| How to ping a ticket | |
| --------- | |
| There are multiple reasons why we may need to update a ticket without being prompted by a customer response. | |
| Examples: | |
| Our SLA is based upon responsiveness. If the ticket is Open, we need to provide regular updates whether the customer has responded or not. |
| Compute_Next = fun(Ring1,Ring2) -> | |
| Owners1 = riak_core_ring:all_owners(Ring1), | |
| Owners2 = riak_core_ring:all_owners(Ring2), | |
| Owners3 = lists:zip(Owners1, Owners2), | |
| [{Idx, PrevOwner, NewOwner, [], awaiting} | |
| || {{Idx, PrevOwner}, {Idx, NewOwner}} <- Owners3, | |
| PrevOwner /= NewOwner] | |
| end. | |
| N = app_helper:get_env(riak_core,target_n_val,4), |
| #!/usr/bin/env escript | |
| %% -*- erlang -*- | |
| %%! -smp enable -sname graph_ring -mnesia debug verbose | |
| main([RingFile, OutFile]) -> | |
| {ok, Binary} = file:read_file(RingFile), | |
| Ring = binary_to_term(Binary), | |
| OwnerList = element(2,element(4,Ring)), | |
| %io:format("~s~n", [lists:flatten(header(body(footer([]),OwnerList)))]); |
| package basho; | |
| import java.io.IOException; | |
| import com.basho.riak.client.IRiakClient; | |
| import com.basho.riak.client.RiakException; | |
| import com.basho.riak.client.RiakFactory; | |
| import com.basho.riak.client.bucket.Bucket; | |
| import com.basho.riak.client.query.StreamingOperation; |
| // Build Test Data | |
| IRiakObject cat = RiakObjectBuilder.newBuilder("Pets-Template", "Cat"). | |
| withValue("{\"sound\":\"Meow\",\"legs\":4}"). | |
| build(); | |
| rc.store(cat); | |
| // Build User Metadata Map | |
| Map<String, String> usermeta = new HashMap<String, String>(); | |
| usermeta.put("parentLinkBucket", "Pets-Template"); | |
| usermeta.put("parentLinkKey", "Cat"); |
| package test; | |
| import java.io.IOException; | |
| import java.util.Date; | |
| import com.basho.riak.client.IRiakObject; | |
| import com.basho.riak.client.RiakException; | |
| import com.basho.riak.client.builders.RiakObjectBuilder; | |
| import com.basho.riak.client.http.RiakClient; | |
| import com.basho.riak.client.raw.FetchMeta; | |
| import com.basho.riak.client.raw.RawClient; |