Skip to content

Instantly share code, notes, and snippets.

@mmack
mmack / data1
Last active August 29, 2015 14:20
Elasticsearch Data
{
"_index": "job_listings_development_20150511092248428",
"_type": "job_listing",
"_id": "1",
"_version": 1,
"_score": 1,
"_source": {
"company": {
"id": 1,
"name": "dozeo"
@mmack
mmack / command
Last active August 29, 2015 14:08
10
@mmack
mmack / gist:7416068
Created November 11, 2013 16:32
couchdb stacktrace
[Mon, 11 Nov 2013 16:31:45 GMT] [info] [<0.9078.2>] Stacktrace: [{gen_server,call,3,
[{file,"gen_server.erl"},{line,188}]},
{couch_server,open,2,
[{file,"couch_server.erl"},{line,70}]},
{couch_db,open,2,
[{file,"couch_db.erl"},{line,79}]},
{couch_httpd_db,do_db_req,2,
[{file,"couch_httpd_db.erl"},{line,231}]},
{couch_httpd,handle_request_int,5,
[{file,"couch_httpd.erl"},{line,332}]},
FROM base:latest
# installation of packages
RUN apt-get update
RUN apt-get install -y xorg openbox x11vnc libav-tools libnspr4
# https://github.com/dotcloud/docker/issues/1024
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -s /bin/true /sbin/initctl
RUN apt-get install -y alsa-base pulseaudio pulseaudio-utils
RUN apt-get install -y gstreamer0.10-pulseaudio libsdl1.2debian
require 'formula'
class Ab < Formula
homepage 'http://httpd.apache.org/docs/trunk/programs/ab.html'
url 'http://apache.mirrors.pair.com/httpd/httpd-2.4.4.tar.gz'
sha1 '0ef1281bb758add937efe61c345287be2f27f662'
depends_on 'homebrew/dupes/apr-util' if MacOS.version < :mountain_lion
depends_on 'libtool' => :build
@mmack
mmack / gist:5283903
Created April 1, 2013 08:51
ruby ruby 2.0.0p0 segfault
Started GET "/sidekiq/scheduled" for 127.0.0.1 at 2013-04-01 10:49:06 +0200
/Users/mmack/.rvm/gems/ruby-2.0.0-p0/gems/tilt-1.3.6/lib/tilt/template.rb:227: [BUG] Segmentation fault
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.1]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
@mmack
mmack / gist:4634968
Last active December 11, 2015 17:29
{
"points": {
"point": [
{
"ip": "178.125.193.227",
"color": "66FF33"
},
{
"ip": "176.74.60.251"
},
require "awesome_print"
def make_hash(keys, value)
keys.empty? ? value : { keys.shift => make_hash(keys, value) }
end
data = {
"80e33bc0-1b9a-0130-d2fb-38f6b113e413:data:message:name" => "max",
"80e33bc0-1b9a-0130-d2fb-38f6b113e413:data:text" => "bla",
"80e33bc0-1b9a-0130-d2fb-38f6b113e413:data:message:line:x" => 123
test
@mmack
mmack / gist:3188443
Created July 27, 2012 14:45
adudio 1
<--- SIP read from UDP:127.0.0.1:47475 --->
BYE sip:6mzh1mp0345av4smgbjiy9ru2@127.0.0.1:5060 SIP/2.0
Content-Length: 0
Via: SIP/2.0/UDP 10.3.186.15:47475;rport;branch=z9hG4bKOo_VR_N-UBXujgveCT6nvg..
From: "4521f414d4503e22672fcd85261fa7af" <sip:4521f414d4503e22672fcd85261fa7af@127.0.0.1>;tag=54930742562
To: <sip:6mzh1mp0345av4smgbjiy9ru2@127.0.0.1>;tag=as4aeb0764
Contact: <sip:4521f414d4503e22672fcd85261fa7af@10.3.186.15:47475>
CSeq: 2 BYE
Max-Forwards: 70