Skip to content

Instantly share code, notes, and snippets.

@ianic
ianic / main.go
Created September 4, 2023 14:18
Go http graceful shutdown
package main
import (
"context"
"errors"
"log"
"net/http"
"os"
"os/signal"
"syscall"

From Jane Street Singals & Threads podcast: Multicast and the Markets about use of multicast in trading exchanges.

here are two kinds of primary data flows that a trading firm encounters, at least when we’re talking to an exchange. There is: the order flow connection, where we send our specific orders and our specific cancels and see the specific responses to those, and that is almost always done on a TCP connection; then there is the receipt of market data, and that’s where you’re sending the data that everyone needs to see exactly the same anonymized stream of data, and that’s almost always done through multicast. (14:37)

... multicast in trading environments is a dominant technology. ...there are a small number of videos that we all want to watch at the same time. Unlike Netflix, where everybody watches a different thing, we actually want in the trading world to all see what’s going on on NASDAQ and ARCA and NYSE and CBOE... (18:49)

The e

#!/usr/bin/env bash
git clone git@github.com:mantil-io/mantil.git
git clone --recurse-submodules git@github.com:mantil-io/team.mantil.com.git
git clone git@github.com:mantil-io/mantil.go.git
git clone git@github.com:mantil-io/template-excuses.git
git clone git@github.com:mantil-io/go-mantil-template.git
set -euo pipefail
That error means it was successful , that's the biggest excuse.
It works for me.
Your browser must be caching the old content.
It's a browser compatibility issue.
Are you using Internet Explorer Web Browser?
It must be because of a leap year.
It must be a hardware problem.
It must be a firewall issue.
The third party API is not responding.
Its a character encoding issue.
@ianic
ianic / gist:976147
Created May 17, 2011 08:22
database mirroring patch for activerecord sql server adapter
From 6f174a93fdda24b0913f65734d0b36849910e3dc Mon Sep 17 00:00:00 2001
From: Igor Anic <igor.anic@gmail.com>
Date: Wed, 25 May 2011 12:39:39 +0200
Subject: [PATCH] initial commit of databse mirroring funcionality to the new repo
---
.gitignore | 3 +-
MIRRORING_HOW_TO | 48 +++++++
Rakefile | 14 ++-
.../connection_adapters/sqlserver/mirroring.rb | 85 +++++++++++++