Skip to content

Instantly share code, notes, and snippets.

"<generator" daemon prio=10 tid=0x00007f4bc0088000 nid=0x72f4 runnable [0x00007f4c5435c000]
java.lang.Thread.State: RUNNABLE
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:206)
at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:194)
at org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:125)
at org.jruby.runtime.Block.call(Block.java:101)
at org.jruby.RubyProc.call(RubyProc.java:290)
{
"template": "logstash-*",
"settings" : {
"number_of_shards" : 24,
"number_of_replicas" : 1,
"index.refresh_interval" : "5s",
"index.routing.allocation.total_shards_per_node" : 1,
"index.search.slowlog.threshold.query.warn": "10s",
"index.query.default_field" : "message",
"analysis" : {
"dynamic_templates": [
{
"long_template" : {
"match" : "l_*",
"mapping" : { "type" : "long", "index" : "not_analyzed" }
}
},
{
"double_template" : {
"match" : "d_*",
--- date.rb.orig 2015-05-05 10:38:49.000000000 +0000
+++ date.rb 2015-05-05 09:55:45.000000000 +0000
@@ -87,6 +87,15 @@
# default to updating the @timestamp field of the event.
config :target, :validate => :string, :default => "@timestamp"
+ # A date range within which we accept timestamps to be legitimate.
+ # If we get a timestamp outside +/- this many days, it gets written to the
+ # trash index.
+ config :daterange, :validate => :number, :default => 1
LOCK=/tmp/shardbackup.lock
if [ -f $LOCK ]; then
ps -p `cat $LOCK` > /dev/null
if [ $? -eq 1 ]; then
# Stale lock file
rm $LOCK
else
echo "Lock file found for running process"
exit 1
@avleen
avleen / gist:981680
Created May 19, 2011 20:36
Chef patch to add more logging
--- app/controllers/cookbooks.rb.orig 2011-05-19 19:32:20.000000000 +0000
+++ app/controllers/cookbooks.rb 2011-05-19 20:25:05.000000000 +0000
@@ -21,6 +21,7 @@
require 'chef/cookbook_loader'
require 'chef/cookbook/metadata'
+require "mixlib/authentication/signatureverification"
class Cookbooks < Application
Line # Hits Time Per Hit % Time Line Contents
==============================================================
122 @profile
123 def send_partial(self, bytes):
124 3071513 6395122 2.1 1.5 if self.connection.closed:
125 return 0
126 3071513 5192907 1.7 1.2 if self.partial_message is None:
127 4344 4522134 1041.0 1.1 s = self.upload.get_upload_chunk()
128 4344 10362 2.4 0.0 if s is None:
129 69 92 1.3 0.0 return 0
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/place_marker"
android:icon="@drawable/locationplace"
android:title="Some Setting" />
<item android:id="@+id/preferences"
android:icon="@drawable/preferences"
android:title="Preferences" />
</menu>

Adrian -

I appreciate that you spent time in writing this post. I know I've been up until 2am writing similarly long ones as well. I will take responsibility for having what is likely an irrational response (I blame Twitter for that) to the term "NoOps", but I invite you to investigate why that might be. I'm certainly not the only one who feels this way, apparently, and thus far have decided this issue is easily the largest distraction in my field I've encountered in recent years. I have had the option to simply ignore my opposition to the term, and just let the chips fall where they may with how popular the term "NoOps" may or may not get. I have obviously not taken that option in the past, but I plan to in the future.

You're not an analyst saying "NoOps". Analysts are easy (for me) to ignore, because they're not practitioners. We have expectations of engineering maturity from practitioners in this field of web engineering, especially those we consider leaders. I don't have any expectations from analysts,

// MapViewAnnotation.h
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
@interface MapViewAnnotation : NSObject <MKAnnotation> {
NSString *title;
CLLocationCoordinate2D coordinate;
}
@property (nonatomic, copy) NSString *title;
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
- (id)initWithTitle:(NSString *)ttl andCoordinate:(CLLocationCoordinate2D)c2d;