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
aoeu-naotehusanoehusaontehuosaenuhoae | |
uaoeusntaoebunsathu | |
au | |
abua,ehbua,u |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../paper-input/paper-input.html"> | |
<link rel="import" href="../paper-slider/paper-slider.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> |
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
input { | |
tcp { | |
type => "syslog" | |
port => 514 | |
} | |
} | |
filter { | |
if [type] == "syslog" { | |
grok { |
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
(?:%{IP:clientip}|%{HOSTNAME:clienthost}) %{USER:ident} %{USER:auth} \[%{HTTPDATE:timestamp}\] "(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion})?|%{DATA:rawrequest})" %{NUMBER:response} (?:%{NUMBER:bytes}|-) %{QS:referrer} %{QS:agent} |
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 com.esotericsoftware.kryo.io.Input; | |
import java.io.InputStream; | |
/** | |
* Created by dsmith on 11/14/14. | |
* | |
* In reference to https://github.com/EsotericSoftware/kryo/issues/264 | |
*/ | |
public class FixedInput extends Input { |
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
Log file created at: 2015/01/14 16:22:07 | |
Running on machine: xxx | |
Binary: Built with gc go1.3.1 for linux/amd64 | |
Log line format: [IWEF]mmdd hh:mm:ss threadid file:line] msg | |
I0114 16:22:07 00001 file_util.go:20] Folder /data Permission: -rwxr-xr-x | |
I0114 16:22:07 00001 volume.go:108] loading file /data/images_3.idx readonly false | |
I0114 16:22:08 00001 store.go:225] data file /data/images_3.dat, replicaPlacement=001 v=2 size=582434260 ttl= | |
I0114 16:22:08 00001 volume.go:108] loading file /data/images_6.idx readonly false | |
I0114 16:22:08 00001 store.go:225] data file /data/images_6.dat, replicaPlacement=001 v=2 size=568452399 ttl= | |
I0114 16:22:08 00001 store.go:232] Store started on dir: /data with 2 volumes max 16 |
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.function.Supplier; | |
/** | |
* Created by dsmith on 2/16/15. | |
* | |
* https://en.wikipedia.org/wiki/Double-checked_locking | |
* | |
*/ | |
public class DoubleCheckedSupplier<T> implements Supplier<T> { | |
public static <T> Supplier<T> of(Supplier<T> supplier) { |
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 com.google.common.base.Suppliers; | |
import com.google.common.collect.AbstractIterator; | |
import com.google.common.collect.Iterators; | |
import java.util.*; | |
import java.util.function.Consumer; | |
import java.util.function.Supplier; | |
/** | |
* Created by dsmith on 3/19/15. |
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.IOException; | |
import java.net.HttpURLConnection; | |
import java.net.URI; | |
/** | |
* Created by dsmith on 4/8/15. | |
*/ | |
public class UrlTest { | |
public static void main(String[] args) throws IOException { | |
final HttpURLConnection urlConnection = (HttpURLConnection) |
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.Spliterator; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
import java.util.stream.StreamSupport; | |
/** | |
* Created by dsmith on 7/21/15. | |
*/ | |
public class SpliteratorTest { |
OlderNewer