Skip to content

Instantly share code, notes, and snippets.

@cloudbow
cloudbow / jira-task-command-line-for-atlassan-jira
Last active April 14, 2022 06:44
Create a bash script for creating jira with personal access token
COMPANY_NAME="xyz"
export JIRA_PROJECT_KEY="abc"
export JIRA_HOME_URL="https://jira.$COMPANY_NAME.com"
export JIRA_BROWSER_URL="${JIRA_HOME_URL}/browse"
export JIRA_BOARD_ID="596"
export JIRA_DONE_TRANSITION_ID="151"
export JIRA_START_TRANSITION_ID="21"
export JIRA_REVIEW_TRANSITION_ID="61"
export OPEN_BROWSER=open
@cloudbow
cloudbow / Dockerfile_and_extras
Created April 22, 2020 07:14
kubeflow_mlflow_jupyter_s3_version_control_kale_all_in_one
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 March 20, 2020 07:52
Install kubeflow with Cognito
function first_names() {
echo ${CLUSTER_NAME}
export CLUSTER_NAME=${CLUSTER_NAME}
export AWS_REGION=${REGION}
export AWS_DEFAULT_REGION=${AWS_REGION}
}
@cloudbow
cloudbow / install_kube_flow_in_eks.sh
Last active March 20, 2020 07:53
Single line kubeflow
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 September 30, 2019 04:06
Gunicorn reload not working
# 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
@cloudbow
cloudbow / .gitignore
Last active August 29, 2015 14:22 — forked from mmichaelis/.gitignore
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
# idea:
*.iml
*.ipr
*.iws
.idea/
# maven:
target/
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 July 10, 2014 07:14
ApnsMessageStatsSysLogger
/**
*
*/
package apns.netty.syslog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
@cloudbow
cloudbow / gist:9513536
Created March 12, 2014 18:40
initializer
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;
@cloudbow
cloudbow / gist:9513470
Created March 12, 2014 18:38
inbound handler
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;