Skip to content

Instantly share code, notes, and snippets.

View ssh352's full-sized avatar

j ssh352

View GitHub Profile
@ssh352
ssh352 / README.md
Created July 18, 2025 07:41 — forked from AndrewAltimit/!README.md
Claude Code and Gemini CLI Integration

Gemini CLI Integration for Claude Code MCP Server

A complete setup guide for integrating Google's Gemini CLI with Claude Code through an MCP (Model Context Protocol) server. This provides automatic second opinion consultation when Claude expresses uncertainty or encounters complex technical decisions.

@ssh352
ssh352 / rcpp_vs_rust_zeros.R
Created July 30, 2024 07:43 — forked from Thell/rcpp_vs_rust_zeros.R
Benchmarking returning zero filled rcpp vs rextendr vector and matrix.
# compare rcpp and rust zero matrices performance to test wrap times.
library(microbenchmark)
Rcpp::sourceCpp(
code = '
#include <Rcpp.h>
using namespace Rcpp;
@ssh352
ssh352 / rust-to-cpp.md
Created November 3, 2023 14:52 — forked from jharmer95/rust-to-cpp.md
Translating Rust keywords, concepts, and idioms to C++

Rust to C++

Language Only

Keywords

as

as has a few different contexts in Rust:

@ssh352
ssh352 / 32.asm
Created March 26, 2023 15:10 — forked from FiloSottile/32.asm
NASM Hello World for x86 and x86_64 Intel Mac OS X (get yourself an updated nasm with brew)
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32
global start
section .text
start:
push dword msg.len
push dword msg
push dword 1
mov eax, 4

https://web.archive.org/web/20110219163448/http://howtohft.wordpress.com/2011/02/15/how-to-build-a-fast-limit-order-book/

The response to my first few posts has been much larger than I’d imagined and I’d like to thank everyone for the encouragement.

If you’re interested in building a trading system I recommend first reading my previous post on general ideas to keep in mind.

My first really technical post will be on how to build a limit order book, probably the single most important component of a trading system. Because the data structure chosen to represent the limit order book will be the primary source of market information for trading models, it is important to make it both absolutely correct and extremely fast.

To give some idea of the data volumes, the Nasdaq TotalView ITCH feed, which is every event in every instrument traded on the Nasdaq, can have data rates of 20+ gigabytes/day with spikes of 3 megabytes/second or more. The individual messages average about 20 bytes each so this means handling

@ssh352
ssh352 / stylerFormatl.R
Created January 5, 2022 02:43
styler format
library(dplyr)
library(tidyr)
library(purrr) # map
library(slider)
# only returns rsquared
get_coef1 <- function(data) {
coef1 <- lm(data = data, r1 ~ r2 + r3) %>%
coef() %>%
.["r2"] %>%
@ssh352
ssh352 / gist:69499e861c56bcedbc73fd79494f9fec
Created March 17, 2021 01:55 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
@ssh352
ssh352 / performance_java.md
Created December 17, 2020 08:00 — forked from whostolebenfrog/performance_java.md
Notes on: Performance testing Java applications - Martin Thompson

Performance testing java applications - Martin Thompson

What is testing

Fast is generic, breaks down to: -- throughput -- bandwidth

-- latency -- response time

@ssh352
ssh352 / private.xml
Created October 27, 2020 13:24 — forked from Eric-Guo/private.xml
Karabiner private.xml for Topre REALFORCE 87U on rMBP
<?xml version="1.0"?>
<root>
<item>
<name>For Topre REALFORCE 87u Users</name>
<devicevendordef>
<vendorname>TopreCorporation</vendorname>
<vendorid>0x0853</vendorid>
</devicevendordef>
<item>
<name>Fix FN + F1..F12 and functional keys</name>
@ssh352
ssh352 / macos-tmux-256color.md
Created September 28, 2020 02:49 — forked from bbqtd/macos-tmux-256color.md
Installing tmux-256color for macOS

Installing tmux-256color for macOS

  • macOS 10.15.5
  • tmux 3.1b

macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.

The Fast Blazing Solution

Instead of tmux-256color, use screen-256color which comes with system. Place this command into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later):