Skip to content

Instantly share code, notes, and snippets.

@elubow
elubow / gist:4658869
Created January 28, 2013 20:49
SiriProxy stack trace
Create server for iPhone connection
start conn #<SiriProxy::Connection::Iphone:0x000000058a0700 @signature=1019, @processed_headers=false, @output_buffer="", @input_buffer="", @unzipped_input="", @unzipped_output="", @unzip_stream=#<Zlib::Inflate:0x000000058a04f8>, @zip_stream=#<Zlib::Deflate:0x000000058a04d0>, @consumed_ace=false, @name="iPhone", @ssled=false>
[Info - Plugin Manager] Plugins laoded: [#<SiriProxy::Plugin::Hue:0x000000058a7938 @manager=#<SiriProxy::PluginManager:0x000000058a80b8 @plugins=[...]>>]
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
#!/bin/bash
ports="6379 6380 6381 6382 6383 6384 6385"
for port in ${ports}
do
t0=$(redis-cli -p $port info | grep command | cut -d : -f 2 | tr -d ‘\r’)
sleep 1
t1=$(redis-cli -p $port info | grep command | cut -d : -f 2 | tr -d ‘\r’)
val=$(($t1$t0))
echo “$port,$val”
@elubow
elubow / pet-snippet.toml
Created March 14, 2017 20:33
description
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
@elubow
elubow / pet-snippet.toml
Created March 19, 2017 17:41
description
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
[[snippets]]
description = "git reset file.txt back to master"
command = "git checkout HEAD -- file.txt"
import (
"fmt"
"errors"
"os"
"time"
"fiftyonedegrees"
)
type userAgentData struct {
@elubow
elubow / pet-snippet.toml
Created March 23, 2017 14:47
description
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
[[snippets]]
description = "git reset file.txt back to master"
command = "git checkout HEAD -- file.txt"
[[snippets]]
description = "Install knife-ec2 while dealing with Mac nokogiri issues"
@elubow
elubow / pet-snippet.toml
Created March 30, 2017 05:38
description
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
[[snippets]]
description = "git reset file.txt back to master"
command = "git checkout HEAD -- file.txt"
[[snippets]]
description = "Install knife-ec2 while dealing with Mac nokogiri issues"
@elubow
elubow / pet-snippet.toml
Created March 30, 2017 05:40
description
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
[[snippets]]
description = "git reset file.txt back to master"
command = "git checkout HEAD -- file.txt"
[[snippets]]
description = "Install knife-ec2 while dealing with Mac nokogiri issues"
@elubow
elubow / pet-snippet.toml
Created May 14, 2017 02:32
description
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
[[snippets]]
description = "git reset file.txt back to master"
command = "git checkout HEAD -- file.txt"
[[snippets]]
description = "Install knife-ec2 while dealing with Mac nokogiri issues"
@elubow
elubow / blogger.template
Created August 10, 2011 14:51
Blogger Standard Template
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'/>
<b:if cond='data:blog.isMobile'>
<meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/>
<b:else/>
<meta content='width=1100' name='viewport'/>
</b:if>