Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Xiong-Jia.Le xiongjia

🎯
Focusing
View GitHub Profile
@nginx-gists
nginx-gists / Dockerfile
Last active Jul 1, 2022
Our Roadmap for QUIC and HTTP3 Support in NGINX
View Dockerfile
FROM nginx:1.21.1 AS build
WORKDIR /src
RUN apt-get update && \
apt-get install -y git gcc make g++ cmake perl libunwind-dev golang && \
git clone https://boringssl.googlesource.com/boringssl && \
mkdir boringssl/build && \
cd boringssl/build && \
cmake .. && \
make
@welshstew
welshstew / SomescriptsApplication.groovy
Last active Aug 4, 2022
Building a spring boot fat jar with gradle and red hat fuse
View SomescriptsApplication.groovy
package com.codergists.somescripts
import org.springframework.boot.SpringApplication
import org.apache.camel.builder.RouteBuilder
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.apache.camel.component.servlet.CamelHttpTransportServlet
import org.springframework.boot.web.servlet.ServletRegistrationBean
import org.springframework.context.annotation.Bean
import org.apache.camel.model.rest.RestBindingMode
import org.apache.camel.LoggingLevel
@mcspring
mcspring / Makefile
Created Jun 26, 2018
Static build of nginx with custom openssl, pcre and zlib
View Makefile
# Author: Eric Pruitt (http://www.codevat.com)
# License: 2-Clause BSD (http://opensource.org/licenses/BSD-2-Clause)
# Description: This Makefile is designed to create a statically linked nginx
# binary without any dependencies on the host system's version of glibc.
NGINX_VERSION=1.15.0
OPENSSL_VERSION=1.0.2o
PCRE_VERSION=8.42
ZLIB_VERSION=1.2.11
@schnell18
schnell18 / pip_mirror.sh
Last active Oct 5, 2021
setup pip mirror in China
View pip_mirror.sh
mkdir ~/.pip
cat <<EOF > ~/.pip/pip.conf
[global]
trusted-host = mirrors.aliyun.com
index-url = http://mirrors.aliyun.com/pypi/simple
EOF
@boneskull
boneskull / README.md
Last active Jul 21, 2022
example of how to debug mocha v4 if hanging
View README.md

Here's an example of how to debug Mocha v4 if it hangs.

Ensure you're using a Node.js 8 or newer (or any version with async_hooks support).

If you run your test, you'll notice it hangs:

$ mocha test.js
@kevinkreiser
kevinkreiser / worker_pool.py
Created Aug 31, 2017
Work Queue Thread Pool Example in Python
View worker_pool.py
#!/usr/bin/env python
#this is mostly from:
#http://code.activestate.com/recipes/577187-python-thread-pool/
from Queue import Queue
from threading import Thread, Event
from sys import stdout, stderr
from time import sleep
View 英语学习计划
1, 赖世雄英标,2周三遍。
2, ESL 3~4个月。学习方法:
例如,针对职场人士工作的需要,
使用商业类的那三本教材最佳。试 拿Interview Questions Answered举例说明 如何最大限度地优化自己的学习流程:
A.首先不要看教材文本,花上两三 天时间,仔细地把全本书的音频听完。 放心,Jeff博士讲课非常细心,生词都一 个个拼写出来,绝对不用担心听不懂。 如果不是因为生词原因而听不懂,听的 时候绝对不要做别的事情,要拿出笔记 本,做好笔记。
B.初步听完后,开始读教材,花个 3∼4天的时间,对照着笔记把教材文本 里面的生词短语之类的都搞定。
C.之后开始进行跟读的练习,每天 跟读多少的量、多长时间要自己安排, 以能接受为准。
跟读练习是我们这里的重头戏。我
建议大家最好对教材全文跟读,不管是
讲解还是单纯的课程录音,对形成你的