Skip to content

Instantly share code, notes, and snippets.

curl localhost:9200/_all/_search -d '{
"size" : 10000,
"query": {
"function_score": {
"query": { "query_string": { "query" : "*" }},
"random_score": {
"seed": 1379333621000
}
}
}
2013-10-23 16:27:01.262290 +0000 : 24762 : omnipitr-monitor : FATAL : Running [select pg_xlogfile_name(pg_current_xlog_location())] via psql failed: $VAR1 = {
2013-10-23 16:27:01.262290 +0000 : 24762 : omnipitr-monitor : FATAL : 'stderr' => 'psql: could not connect to server: No such file or directory
2013-10-23 16:27:01.262290 +0000 : 24762 : omnipitr-monitor : FATAL : Is the server running locally and accepting
2013-10-23 16:27:01.262290 +0000 : 24762 : omnipitr-monitor : FATAL : connections on Unix domain socket "/tmp/.s.PGSQL.5910"?
2013-10-23 16:27:01.262290 +0000 : 24762 : omnipitr-monitor : FATAL : ',
2013-10-23 16:27:01.262290 +0000 : 24762 : omnipitr-monitor : FATAL : 'status' => 512,
2013-10-23 16:27:01.262290 +0000 : 24762 : omnipitr-monitor : FATAL : 'stdout' => '',
2013-10-23 16:27:01.262290 +0000 : 24762 : omnipitr-monitor : FATAL : 'error_code' => 2
ViM
Emacs
Terminal multiplexers (screen / tmux)
iptables (filtering, NAT, etc), or other packet filters
Dealing with security incidents (forensics, reactions, etc)
Anything to do with Windows *at all*.
How TCP and UDP work
Setting up a web server (apache probably) and how HTTP works
Setting up a mail server and how SMTP works
Setting up LDAP for centralised auth
#
# Automatically generated make config: don't edit
# Linux/x86_64 3.0.46 Kernel Configuration
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
KERNEL: /usr/lib/debug/lib/modules/2.6.32-220.4.1.el6.x86_64/vmlinux
DUMPFILE: /var/crash/127.0.0.1-2012-03-28-21:28:24/vmcore [PARTIAL DUMP]
CPUS: 16
DATE: Wed Mar 28 21:28:19 2012
UPTIME: 01:32:23
LOAD AVERAGE: 2.18, 1.76, 1.17
TASKS: 998
NODENAME: our.host.name
RELEASE: 2.6.32-220.4.1.el6.x86_64
VERSION: #1 SMP Tue Jan 24 02:13:44 GMT 2012
// 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;

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,

<?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>
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
@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