Skip to content

Instantly share code, notes, and snippets.

View li-ch's full-sized avatar
:shipit:
Focusing

Li Chen 陈 力 li-ch

:shipit:
Focusing
View GitHub Profile
@li-ch
li-ch / curl.md
Created September 26, 2019 09:11 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@li-ch
li-ch / CleanArchitecture.md
Created October 15, 2018 02:28 — forked from ygrenzinger/CleanArchitecture.md
Summary of Clean Architecture by Robert C. Martin

Summary of book "Clean Architecture" by Robert C. Martin

Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.

Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.

Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.

The book is build around 34 chapters organised in chapters.

@li-ch
li-ch / install_apt2.md
Last active March 23, 2018 12:26 — forked from SMANKULOV/install_apt2.md
Installing Caffe+NVIDIA CUDA Tools on Ubuntu 16.04 LTS

Installation Caffe + NVIDIA CUDA 7 Tools on Ubuntu 14.04 (step by step, including external libraries)

Guide for Ubuntu 16.04 with a 64 bit processor.

Tested on a Dell XPS L421x laptop with a NVIDIA GeForce GT 630m.

This guide is intended to be a (sort of) comprehensive step by step tutorial, including the installation of external dependencies.

This tutorial assumes some decisions about the versions and programs to install, to make it as straightforward to follow as possible, while still having as much advanced features as possible.

Notably:

It uses Anaconda Python (which facilitates installation and has many great feat
@li-ch
li-ch / latency.txt
Created January 31, 2017 15:49 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@li-ch
li-ch / pedantically_commented_playbook.yml
Created December 14, 2016 06:18 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@li-ch
li-ch / System Design.md
Created April 18, 2016 15:28 — forked from vasanthk/System Design.md
System Design Cheatsheet

#System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?