Skip to content

Instantly share code, notes, and snippets.

View memorycancel's full-sized avatar
🩷

Zhu Shung memorycancel

🩷
View GitHub Profile
@memorycancel
memorycancel / install-ruby.sh
Created January 14, 2025 05:03 — forked from hopsoft/install-ruby.sh
Install ruby with rbenv and jemalloc on ubuntu
sudo apt-get update
sudo apt-get install libjemalloc-dev
RUBY_CONFIGURE_OPTS='--with-jemalloc' rbenv install 2.6.3
# test (look for jemalloc warnings)
MALLOC_CONF=invalid_flag:foo ruby -v
@memorycancel
memorycancel / gist:618efaa8235338e19b229e938b0c7b11
Last active March 10, 2025 05:00 — forked from linbaiwpi/gist:d2d55a376453ccb048d602bc67b59061
Google Pinyin Chinese Input Method Installation on Ubuntu
sudo apt-get -y install fcitx im-config
im-config ## choose fcitx
sudo apt-get -y install fcitx-googlepinyin
## choose fcitx keyboard icon, choose "Text Entry Setting"
## in the opned windows, click "+" icon
## search "pinyin" and Google Pinin" will come out
## if cannot not be used immediately, log out once
@memorycancel
memorycancel / tcp_client.rs
Created April 7, 2022 07:47 — forked from postmodern/tcp_client.rs
TCP Client in Rust
#![allow(unused_variables)]
#![allow(unused_imports)]
use std::env;
use std::process;
use std::thread;
use std::io::{self, Read, Write, Error};
use std::net::TcpStream;
use std::net::TcpListener;