Skip to content

Instantly share code, notes, and snippets.

View praveenweb's full-sized avatar

Praveen Durairaju praveenweb

View GitHub Profile
docker run -d --name dd-agent -v /var/run/docker.sock:/var/run/docker.sock:ro -v /proc/:/host/proc/:ro -v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro -e DD_API_KEY=<your-api-key> datadog/agent:latest
fetch('http://example.com/todos')
.then(function(response) {
// some data processing
const first_todo = response.todos[0].text;
return first_todo;
})
.then(function(myJson) {
console.log(JSON.stringify(myJson));
});
LogRocket.identify('<user_id>', {
name: '<name>',
email: '<email>',
// Add your own custom user variables here, ie:
<custom_type>: '<custom_value'
});
import { applyMiddleware, createStore } from 'redux';
const store = createStore(
reducer, // your app reducer
applyMiddleware(middlewares, LogRocket.reduxMiddleware()),
);
import LogRocket from 'logrocket';
// Initialize LogRocket with your app ID
LogRocket.init(<your_application_id>);
# ---- Base python ----
FROM python:3.6 AS base
# Create app directory
WORKDIR /app
# ---- Dependencies ----
FROM base AS dependencies
COPY gunicorn_app/requirements.txt ./
# install app dependencies
RUN pip install -r requirements.txt
FROM python:3.6
# Create app directory
WORKDIR /app
# Install app dependencies
COPY gunicorn_app/requirements.txt ./
RUN pip install -r requirements.txt
FROM python:3.6
# Create app directory
WORKDIR /app
# Install app dependencies
COPY static_app/requirements.txt ./
RUN pip install -r requirements.txt
FROM python:3.6
# Create app directory
WORKDIR /app
# Install app dependencies
COPY gunicorn_app/requirements.txt ./
RUN pip install -r requirements.txt
FROM python:3.6
# Create app directory
WORKDIR /app
# Install app dependencies
COPY src/requirements.txt ./
RUN pip install -r requirements.txt