This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import java.util.concurrent.*; | |
/** | |
* Created by jeremy on 15/11/20. | |
*/ | |
public class CachedThreadPoolWithQueue { | |
private static final RejectedExecutionHandler defaultHandler = new ThreadPoolExecutor.AbortPolicy(); | |
private final ThreadPoolExecutor executor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.bytedeco.javacpp.avcodec; | |
import org.bytedeco.javacpp.avutil; | |
import org.bytedeco.javacv.FFmpegFrameRecorder; | |
import org.bytedeco.javacv.FrameRecorder; | |
import org.bytedeco.javacv.Java2DFrameConverter; | |
import java.awt.*; | |
import java.awt.image.BufferedImage; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%define debug_package %{nil} | |
Name: predixy | |
Version: 1.0.5 | |
Release: 1%{?dist} | |
Summary: Predixy is a redis smart proxy. It supports redis sentinel and redis cluster. | |
Group: Development/Databases | |
License: BSD 3 | |
URL: https://github.com/joyieldInc/predixy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# local-vm-ip e.g. 192.168.2.200 | |
# istio-control-plane-vm-ip e.g. 192.168.2.100 | |
# k8s-service-cidr e.g. 10.68.0.0/16 | |
# k8s-pod-cidr e.g. 172.20.0.0/24 | |
# k8s-dns-svc-ip e.g. 10.68.0.10 | |
# app-namespace e.g. bookinfo | |
# app-namespace-certs e.g. /tmp/certs.tar | |
# app-inbound-ports e.g. 8081,8082,8083 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ssh=ssh-wrapper | |
alias scp=scp-wrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM arm64v8/ubuntu:16.04 | |
ENV KONG_VERSION 1.3.0 | |
ENV OPENRESTY_VERSION 1.15.8.1 | |
ENV LUAROCKS_VERSION 3.1.3 | |
ENV PCRE_VERSION=8.43 | |
ENV OPENSSL_VERSION 1.1.1c | |
RUN apt-get update && apt-get install -y libreadline-dev libncurses5-dev \ | |
build-essential perl curl perl unzip m4 lua-yaml-dev wget git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM arm64v8/ubuntu:16.04 | |
ENV KONG_VERSION 1.3.0 | |
ENV OPENRESTY_VERSION 1.15.8.1 | |
ENV LUAROCKS_VERSION 3.1.3 | |
ENV PCRE_VERSION 8.43 | |
ENV OPENSSL_VERSION 1.1.1c | |
RUN apt-get update && apt-get install -y libreadline-dev libncurses5-dev \ | |
build-essential libpcre3-dev perl curl libssl-dev zlib1g-dev \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
THIS=$0 | |
ARGS=$@ | |
name=$(basename $THIS) | |
usage () { | |
cat <<EOF | |
Usage: $name: redirect input/output/error of a running process | |
Two ways to run this program: |