Skip to content

Instantly share code, notes, and snippets.

View liukai's full-sized avatar

Kai Liu liukai

  • San Francisco, CA
View GitHub Profile
{"sig":"e7b9c5d051c9b0a041f668c668b57b96a5ffd0bae4dcbabb669d851e3251d80110d09677735d7fe7b814346fe548a3680b41e6a9565ce245f7f17c09a85307b80","msghash":"425ce5a5f21688fca98e0b82edf086daebae073ab5eb0f5765b1a423b950899c"}

Description:

Staging server:

[Include a link that takes the user directly to the modified feature]

Jira:

[If there is a corresponding Jira ticket, include it]

Reviewers:

[Tag relevant Engineers, PMs, and Designers]

@liukai
liukai / a.csv
Last active June 21, 2016 08:44
id title description google_product_category product_type link image_link condition availability price brand
DB_1 Dog Bowl In Blue Solid plastic Dog Bowl in marine blue color Animals > Pet Supplies Bowls & Dining > Food & Water Bowls http://www.example.com/bowls/db-1.html http://images.example.com/DB_1.png new in stock 9.99 GBP Example
DB_2 Dog Bowl In Yellow Solid plastic Dog Bowl in yellow color Animals > Pet Supplies Bowls & Dining > Food & Water Bowls http://www.example.com/bowls/db-2.html http://images.example.com/DB_2.png new in stock 9.99 GBP Example
exec java $JAVA_OPTS -Xms512m -Xmx512m \
-classpath ~telegraph/instagram-telegraph.jar \
-Dapp.name="run-helix-controller" org.apache.helix.controller.HelixControllerMain \
-Dlog4j.configuration=file:/etc/telegraph/admin.log4j.properties \
--zkSvr `/usr/local/bin/smcc list-services zeus.globalwo.20 | grep frc` \
--cluster telegraph $*
@liukai
liukai / migrate_rocksdb
Last active November 14, 2022 11:37
Migrate RocksDB database with different options
rocksdb::Status CopyDB(const std::string& source_db_name,
const Options& source_db_options,
const std::string& destination_db_name,
const Options& destination_db_options) {
rocksdb::Status s;
// Create the source/destination DBs
rocksdb::DB* source_db = nullptr;
auto sanitized_source_db_options = source_db_options;
sanitized_source_db_options.create_if_missing = false;