Skip to content

Instantly share code, notes, and snippets.

View longbowlu's full-sized avatar

Lu Zhang longbowlu

  • San Francisco Bay Area
View GitHub Profile
@longbowlu
longbowlu / 0_reuse_code.js
Created November 13, 2015 05:30
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
@longbowlu
longbowlu / tcp_server.c
Created January 23, 2016 19:10
Simple socket server in C using threads (pthread library) Compiles on linux
/*
C socket server example, handles multiple clients using threads
Compile
gcc server.c -lpthread -o server
*/
#include<stdio.h>
#include<string.h> //strlen
#include<stdlib.h> //strlen
#include<sys/socket.h>
@longbowlu
longbowlu / .gitignore
Created January 25, 2016 07:54 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
syntax enable set shell=bash set nocompatible " be iMproved, required filetype off " required
set shell=/bin/bash
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Error: Fail to connect to the RPC server: Request timeout
Stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /Users/luzhang/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.65/src/backtrace/libunwind.rs:93:5
backtrace::backtrace::trace_unsynchronized
at /Users/luzhang/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.65/src/backtrace/mod.rs:66:5
backtrace::backtrace::trace
at /Users/luzhang/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.65/src/backtrace/mod.rs:53:14
anyhow::backtrace::capture::Backtrace::create
@longbowlu
longbowlu / addresslist
Last active October 27, 2022 00:57
addresslist
ae9de6c16a4d562f913e47bd3b165ba8a33cbcba
efc4421fcc8302a6d2d43566dbb721c6226e8f0b
f6567e77f94c6a703a7edc79ed39d7b9aed66cbd
0418ba4a7f6cdfc342f8bcfa8f4dc34699aafe39
d2b3945a5d0de681c1039b8fdc13b9b7284536a8
ff87c5dcb3d3bb7d1c66774c52a54fcb309d7b5c
c0bcd4bc0c400d5419255b2302bd2421d79019f0
d1d78ed69e34133bde27c01c1f542ecbae6ce62d
41b501c386eb5d6fde884878ba27c3058fb1c683
b9f1420651a03a3047c4b06f37338ea4b6518ab3
This file has been truncated, but you can view the full file.
3fc5e151a1a8e18fb254062acf828e8d7e23ed91
3fc5e7675cb9cb715aed6508e225749558e9d65a
3fc5ea125b4f7c19370a3c96560a9a50a7a8cce5
3fc5ecdb8a38b474617ba5c7a819130f33ecd836
3fc5f6a6940b258f3eef36568068d8ec31064c25
3fc5f911cdd656c47c364a663103c7859bca1c8e
3fc5feedc55a4771ee470caf14ee8e6b47cb82bb
3fc6017b5dcd67c40567b1f56b2f80d5176d7a72
3fc60256d262e9cb71920beeffcff51c98f0ce22
3fc60a5637c518f51ad8c550d61234a6891f8b4f
2022-10-29 04:00:52
174144 profiled bytes allocated (0.00%) (956 allocations)
2022-10-29 04:00:52
0 profiled bytes freed (0.00% of allocated) (0 frees)
2022-10-29 04:00:52
Estimated 87072000 total bytes retained (17.28% of total)
2022-10-29 04:00:52
Callback <hash = 0xb3230340894d1375>
2022-10-29 04:00:52
sui_core::node_sync::node_state::NodeSyncState<A>::wait_for_parents::{{closure}}
2022-10-29 19:19:34
2022-10-30T02:19:34.865874Z ERROR method_call{method=sui_executeTransaction}: telemetry_subscribers: panicked at 'range start index 17 out of range for slice of length 0', library/core/src/slice/index.rs:52:5 panic.file="library/core/src/slice/index.rs" panic.line=52 panic.column=5
2022-10-29 19:19:34
thread 'tokio-runtime-worker' panicked at 'range start index 17 out of range for slice of length 0', library/core/src/slice/index.rs:52:5
2022-10-29 19:19:34
stack backtrace:
2022-10-29 19:19:34
0: rust_begin_unwind
2022-10-29 19:19:34
at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:584:5
2022-11-10T07:14:53.086259Z ERROR method_call{method=sui_moveCall}: telemetry_subscribers: panicked at 'called `Option::unwrap()` on a `None` value', crates/sui-json/src/lib.rs:178:75 panic.file="crates/sui-json/src/lib.rs" panic.line=178 panic.column=75
thread 'tokio-runtime-worker' panicked at 'called `Option::unwrap()` on a `None` value', crates/sui-json/src/lib.rs:178:75
stack backtrace:
0: rust_begin_unwind
at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src/panicking.rs:142:14
2: core::panicking::panic
at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src/panicking.rs:48:5
3: sui_json::SuiJsonValue::to_move_value