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
den:elasticsearch-0.17.6 dre$ bin/elasticsearch -f | |
[2011-08-15 18:03:05,228][INFO ][node ] [Nathaniel Richards] {elasticsearch/0.17.6}[45834]: initializing ... | |
[2011-08-15 18:03:05,235][INFO ][plugins ] [Nathaniel Richards] loaded [], sites [head] | |
[2011-08-15 18:03:07,238][INFO ][node ] [Nathaniel Richards] {elasticsearch/0.17.6}[45834]: initialized | |
[2011-08-15 18:03:07,238][INFO ][node ] [Nathaniel Richards] {elasticsearch/0.17.6}[45834]: starting ... | |
[2011-08-15 18:03:07,334][INFO ][transport ] [Nathaniel Richards] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/10.251.28.55:9300]} | |
[2011-08-15 18:03:37,388][WARN ][discovery ] [Nathaniel Richards] waited for 30s and no initial state was set by the discovery | |
[2011-08-15 18:03:37,389][INFO ][discovery ] [Nathaniel Richards] elasticsearch/pEX4pJxDQ2WjH4Luk0UTFQ | |
[2011-08-15 18:03:37,394][INFO ][http ] [Nathanie |
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
{ | |
"query" : { | |
"filtered" : { | |
"query" : { "match_all" : {} }, | |
"filter" : { | |
"and" : [ | |
{ "or" : [ | |
{ "prefix" : { "name" : "hugo" } }, | |
{ "prefix" : { "contact" : "hugo" } } | |
]}, |
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
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; | |
public class VerticaBinaryFormatBitSet { | |
private static final byte ZERO = (byte)0; | |
private byte[] bytes; | |
private boolean dirty = false; | |
private int numBits; | |
private int numBytes; |
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
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.OutputStreamWriter; | |
import java.io.PipedInputStream; | |
import java.io.PipedOutputStream; | |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; |
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
/* Usage: | |
1. open about:healthreport | |
2. open a Web Console panel in that page | |
3. Pop the console out and expand it | |
4. Copy this JS code to the clipboard | |
5. Paste it into the command prompt at the bottom of the console | |
*/ | |
/* Credit: http://stackoverflow.com/a/7838061 */ | |
function getAge(fromdate, todate){ |
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
### ** From my first terminal window which was dealing with my local copy of the lagunitas branch. ** | |
[1001][me@xxx: ~]$ cd src/mondrian-lagunitas/ | |
[1001][me@xxx: mondrian-lagunitas (lagunitas)]$ git status | |
On branch lagunitas | |
nothing to commit, working directory clean | |
[1004][me@xxx: mondrian-lagunitas (lagunitas)]$ git log | |
commit 24b9fc2c84031bce388b5aa4f63684229c96d625 |
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
import java.util.*; | |
public class Test { | |
public static interface Position {} | |
public static interface Axis { | |
public List<? extends Position> getPositions(); | |
} | |
public static class GoodAxis implements Axis { | |
private List<Position> positions = new ArrayList<>(); |
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
steelwheels=# select a1_h0_l0 | |
steelwheels-# , a1_h0_l1 | |
steelwheels-# , a1_h0_l2 | |
steelwheels-# , a0_h0_l0 | |
steelwheels-# , a0_h0_l1 | |
steelwheels-# , m0 | |
steelwheels-# , first_value(m0) | |
steelwheels-# over ( | |
steelwheels(# partition by p0 | |
steelwheels(# order by a1_h0_l0 |
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
# in manifests/default.pp | |
define append_if_no_such_line($file, $line, $refreshonly = 'false') { | |
exec { "/bin/echo '$line' >> '$file'": | |
unless => "/bin/grep -Fxqe '$line' '$file'", | |
path => "/bin", | |
refreshonly => $refreshonly, | |
} | |
} |
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
class { '::mysql::server': | |
override_options => { 'mysqld' => { | |
'query_cache_limit' => '128M', | |
'query_cache_size' => '256M', | |
'query_cache_type' => '1', | |
}, 'mysqld_safe' => { | |
# Set the MySQL timezone. | |
# @see http://stackoverflow.com/questions/947299/how-do-i-make-mysqls-now-and-curdate-functions-use-utc |
OlderNewer