Skip to content

Instantly share code, notes, and snippets.

View jeremyd's full-sized avatar

Jeremy D jeremyd

View GitHub Profile
@jeremyd
jeremyd / strfry.nix
Created September 17, 2023 20:32
strfry.nix
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
name = "strfry";
src = pkgs.fetchgit {
url = "https://github.com/hoytech/strfry.git";
fetchSubmodules = true;
rev = "0.9.4";
deepClone = false;
hash = "sha256-5dAavWbuNzASH/bRaB1qC8JunO9UCu7IxaUI2i0BNuI=";
@jeremyd
jeremyd / gist:4ea5ea3e1e33e3c771802f7494f183ae
Created October 19, 2021 18:54
dgql-connection-error.log
2021-10-19T11:51:45.853-0700 executing graphql request over gRPC {"request": {"query":"subscription ($query: String!, $cursor: String, $limit: Int64) {\n searchTransactionsForward(query: $query, limit: $limit, cursor: $cursor) {\n undo\n cursor\n trace {\n block {\n num\n id\n confirmed\n timestamp\n previous\n }\n id\n matchingActions {\n account\n name\n json\n seq\n receiver\n }\n }\n }\n}","variables":{"limit":"0","query":"-action:onblock && account:playuplandme"}}}
2021-10-19T11:51:46.415-0700 about to request to receive a graphql response from gRPC stream
2021-10-19T11:51:46.695-0700 graphql gRPC initial stream context has been canceled or timed out, returning its error right away {"error": "context canceled"}
@jeremyd
jeremyd / gist:1fffeaf3e9acc0165bbcd9c33286287c
Created September 1, 2017 18:11
Etcd metrics grafana dashboard
{
"__inputs": [
{
"name": "DS_INFLUX",
"label": "influx",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
[ 1087.976810] ------------[ cut here ]------------
[ 1087.976880] WARNING: CPU: 0 PID: 3441 at fs/sysfs/group.c:224 sysfs_remove_group+0xa4/0xa8()
[ 1087.976893] sysfs group c0f6622c not found for kobject 'event0'
[ 1087.976902] Modules linked in: binfmt_misc 8021q garp mrp stp llc spi_omap2_mcspi bnep usb_f_ecm g_ether usb_f_rndis u_ether libcomposite bluetooth rfkill snd_soc_evm pruss_remoteproc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common snd_usb_audio snd_hwdep videodev snd_usbmidi_lib snd_rawmidi media snd_seq_device omap_rng rng_core tilcdc snd_soc_davinci_mcasp snd_soc_edma snd_soc_hdmi_codec uio_pdrv_genirq uio
[ 1087.977068] CPU: 0 PID: 3441 Comm: mjpg_streamer Tainted: G W 4.1.8-ti-r18 #1
[ 1087.977078] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 1087.977119] [<c001a178>] (unwind_backtrace) from [<c0014b38>] (show_stack+0x20/0x24)
[ 1087.977141] [<c0014b38>] (show_stack) from [<c09b42a4>] (dump_stack+0x8c/0xcc)
[ 1087.977166] [<c09b42a4>] (dump_sta
@jeremyd
jeremyd / keybase.md
Created January 26, 2016 23:50
keybase.md

Keybase proof

I hereby claim:

  • I am jeremyd on github.
  • I am jeremyd (https://keybase.io/jeremyd) on keybase.
  • I have a public key whose fingerprint is DA11 3B62 3BC3 FFC4 EF32 03AF 9187 77DE D15F 730A

To claim this, I am signing this object:

@jeremyd
jeremyd / gist:9461410
Created March 10, 2014 08:28
clustersense_bootstrap_basic.sh
#!/bin/bash
NODE_NAME=$(hostname -s)
FQDN=$(hostname -f)
NODE_IP=$(dig $FQDN +short)
# Fill this in with the host running Zookeeper.
ZOOKEEPER_HOST=$ZK_IP
echo NODE_NAME: $NODE_NAME
echo FQDN: $FQDN
@jeremyd
jeremyd / gist:6991407
Created October 15, 2013 13:17
package signature fail
[root@ip-10-30-136-122 ~]# sudo pacman -Sy curl
:: Synchronizing package databases...
ec2 is up to date
core is up to date
extra is up to date
community is up to date
multilib is up to date
warning: curl-7.32.0-2 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
bundle exec rake spec
/usr/bin/ruby -S rspec ./spec/websocket/protocol/client_spec.rb ./spec/websocket/protocol/draft75_spec.rb ./spec/websocket/protocol/draft76_spec.rb ./spec/websocket/protocol/hybi_spec.rb
/media/storage/home/jeremy/recent_projects/websocket-protocol-ruby/lib/websocket/protocol.rb:18:in `require': cannot load such file -- /media/storage/home/jeremy/recent_projects/websocket-protocol-ruby/lib/websocket/protocol/../../websocket_mask (LoadError)
from /media/storage/home/jeremy/recent_projects/websocket-protocol-ruby/lib/websocket/protocol.rb:18:in `<class:Protocol>'
from /media/storage/home/jeremy/recent_projects/websocket-protocol-ruby/lib/websocket/protocol.rb:15:in `<module:WebSocket>'
from /media/storage/home/jeremy/recent_projects/websocket-protocol-ruby/lib/websocket/protocol.rb:14:in `<top (required)>'
from /media/storage/home/jeremy/recent_projects/websocket-protocol-ruby/spec/spec_helper.rb:4:in `require'
from /media/storage/home/jeremy/recent_projects/websocket-protocol-ruby/s
@jeremyd
jeremyd / client.rb
Last active December 16, 2015 11:39
Websocket Client Test
require 'websocket/protocol'
require 'celluloid'
require 'celluloid/io'
module Celluloid
module IO
class TCPSocket
#include ConnectionMixin
#include RequestMixin
def url
@jeremyd
jeremyd / dispatcher.rb
Created November 18, 2012 04:00
DCell actor
require 'dcell'
supervisor = DCell.start :id => "dispatch", :addr => "tcp://127.0.0.1:4001", :directory => {:id => "node1", :addr => "tcp://127.0.0.1:4000"}
node = DCell::Node["node1"]
builder = node[:builder]
while !builder.available
sleep 1
end
builder.create_image