Skip to content

Instantly share code, notes, and snippets.

@cloudbow
cloudbow / Dockerfile_and_extras
Created Apr 22, 2020
kubeflow_mlflow_jupyter_s3_version_control_kale_all_in_one
View Dockerfile_and_extras
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
USER root
ARG MLFLOW_PORT
ARG AWS_REGION
ARG DATA_SCIENCE_GROUP
ARG CLUSTER_NAME
ENV MLFLOW_PORT="${MLFLOW_PORT}"
@cloudbow
cloudbow / install_kubeflow_with_cognito.sh
Last active Mar 20, 2020
Install kubeflow with Cognito
View install_kubeflow_with_cognito.sh
function first_names() {
echo ${CLUSTER_NAME}
export CLUSTER_NAME=${CLUSTER_NAME}
export AWS_REGION=${REGION}
export AWS_DEFAULT_REGION=${AWS_REGION}
}
View install_kube_flow_in_eks.sh
function first_names() {
### Pass the paramters before you execute
export CLUSTER_NAME=${CLUSTER_NAME}
export AWS_REGION=${REGION}
export AWS_DEFAULT_REGION=${AWS_REGION}
}
## Set account id settings
function aws_account_id_settings(){
@cloudbow
cloudbow / gunicorn_relaod
Last active Sep 30, 2019
Gunicorn reload not working
View gunicorn_relaod
# Introduction
I have created a Dockerfile which solves the problem of Gunicorn not doing relaods. It just needs the inotify tools as well as the
pip module. This solves the problem of reloading the fullstack couchbase python in PyCharm.
```
FROM tiangolo/uvicorn-gunicorn:python3.7
LABEL maintainer="Arun George <arun.georg@xyz.com>"
# Dependencies for Couchbase
View .gitignore
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
# idea:
*.iml
*.ipr
*.iws
.idea/
# maven:
target/
View gist:51a32fd2b1266911947f
package apns.netty.queues.single;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import javax.annotation.PreDestroy;
import org.apache.log4j.Logger;
@cloudbow
cloudbow / gist:92e17c49e538a45c9044
Created Jul 10, 2014
ApnsMessageStatsSysLogger
View gist:92e17c49e538a45c9044
/**
*
*/
package apns.netty.syslog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
View gist:9513536
package gcm.netty.handlers;
import gcm.netty.codec.GcmBatchMessageEncoder;
import gcm.netty.config.GcmConfig;
import gcm.netty.constants.GcmProtocolConstants;
import gcm.netty.constants.TraceLogs;
import gcm.netty.security.GcmSSLContextFactory;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
View gist:9513470
package gcm.netty.handlers;
import gcm.netty.constants.ApplicationContextComponents;
import gcm.netty.constants.TraceLogs;
import gcm.netty.queues.batch.BatchGcmMessageQueue;
import gcm.netty.syslog.Statistics;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.codec.http.FullHttpResponse;
@cloudbow
cloudbow / gist:9513287
Created Mar 12, 2014
after memory out
View gist:9513287
12:28:01,703 ERROR GcmChannelsPerAppEVG-1-23 util.ResourceLeakDetector:217 - LEAK: ByteBuf.release() was not called before it's garbage-collected.
Recent access records: 2
#2:
Hint: 'ssl' will handle the message from this point.
io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:331)
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:117)
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:494)
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:461)
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:378)