Skip to content

Instantly share code, notes, and snippets.

View guihaojin's full-sized avatar
🎯
Focusing

Haojin Gui guihaojin

🎯
Focusing
View GitHub Profile
@guihaojin
guihaojin / OkHttpUtil.java
Created October 1, 2020 19:03 — forked from preethamhegdes/OkHttpUtil.java
OkHttp Client Ignore certificate
import okhttp3.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.net.ssl.*;
import java.net.*;
import java.security.cert.CertificateException;
/*
okhttp version used 3.8.1
@guihaojin
guihaojin / web-servers.md
Created January 20, 2020 20:18 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000