Skip to content

Instantly share code, notes, and snippets.

2023-01-20T12:03:08.033-0800 INFO clickhouse_query_benchmark/main.go:228 Finished in: 195 ms (current cumulative QPS: 3.612197)
2023-01-20T12:03:08.062-0800 INFO clickhouse_query_benchmark/main.go:228 Finished in: 184 ms (current cumulative QPS: 6.544475)
2023-01-20T12:03:08.064-0800 INFO clickhouse_query_benchmark/main.go:228 Finished in: 146 ms (current cumulative QPS: 9.757946)
2023-01-20T12:03:08.098-0800 INFO clickhouse_query_benchmark/main.go:228 Finished in: 140 ms (current cumulative QPS: 11.718576)
2023-01-20T12:03:08.130-0800 INFO clickhouse_query_benchmark/main.go:228 Finished in: 332 ms (current cumulative QPS: 13.372510)
2023-01-20T12:03:08.170-0800 INFO clickhouse_query_benchmark/main.go:228 Finished in: 132 ms (current cumulative QPS: 14.510420)
2023-01-20T12:03:08.209-0800 INFO clickhouse_query_benchmark/main.go:228 Finished in: 211 ms (current cumulative QPS: 15.466822)
2023-01-20T12:03:08.332-0800 INFO clickhouse_query_benchmark/main.go:
@lazywei
lazywei / The Technical Interview Cheat Sheet.md
Created October 26, 2016 13:10 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@lazywei
lazywei / install_mosh_locally.sh
Created January 25, 2015 05:30 — forked from xiaom/install_mosh_locally.sh
Install mosh server without root permission
#!/bin/sh
# this script does absolutely ZERO error checking. however, it worked
# for me on a RHEL 6.3 machine on 2012-08-08. clearly, the version numbers
# and/or URLs should be made variables. cheers, zmil...@cs.wisc.edu
mkdir mosh
cd mosh
@lazywei
lazywei / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
diff --git a/hw3/src/Makefile.in b/hw3/src/Makefile.in
index 00a8a79..8036860 100644
--- a/hw3/src/Makefile.in
+++ b/hw3/src/Makefile.in
@@ -23,7 +23,7 @@ CFLAGS = -g -Wall -DTA_KB_SETTING $(PKGFLAG)
@$(CXX) $(CFLAGS) -I$(EXTINCDIR) -c -o $@ $<
top: $(EXTLINK) target
- @echo -n
+ @/bin/echo -n
@lazywei
lazywei / scmipy
Created May 27, 2014 12:03
Automatically create port forwarding regarding to iPython Kernel. Used with vim-ipython
#!/usr/bin/env ruby
require 'net/ssh'
require 'optparse'
require 'json'
if ARGV.length != 1
puts "need kernel file"
abort
end
package main
import (
"bufio"
"bytes"
"flag"
"fmt"
"github.com/golang/groupcache"
"io"
"net/http"
package main
import (
//"bytes"
"fmt"
"github.com/golang/groupcache"
//"image"
_ "image/gif"
_ "image/jpeg"
//"image/png"
@lazywei
lazywei / webserver.go
Last active December 25, 2015 21:29
Groupcache
package main
import (
"bytes"
"fmt"
"github.com/golang/groupcache"
"image"
_ "image/gif"
_ "image/jpeg"
"image/png"
@lazywei
lazywei / HWTemplate.tex
Last active December 23, 2015 08:19 — forked from dcernst/HWTemplate.tex
% --------------------------------------------------------------
% This is all preamble stuff that you don't have to worry about.
% Head down to where it says "Start here"
% --------------------------------------------------------------
\documentclass[12pt]{article}
\usepackage{fontspec,xltxtra,xunicode}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amsthm,amssymb}