Skip to content

Instantly share code, notes, and snippets.

View kination's full-sized avatar
🎯
Focusing

K.I. (Dennis) Jung kination

🎯
Focusing
View GitHub Profile
/build
@kination
kination / amqp.py
Created February 7, 2017 04:37 — forked from alanhamlett/amqp.py
send an error email when a Celery worker raises an unhandled exception
# -*- coding: utf-8 -*-
"""
wakatime.amqp
~~~~~~~~~~~~~
Setup for Celery distributed task queue.
"""
import socket
const fs = require('fs')
const readline = require('readline')
const { google } = require('googleapis')
// If modifying these scopes, delete token.json.
const SCOPES = ['https://www.googleapis.com/auth/spreadsheets.readonly']
// The file token.json stores the user's access and refresh tokens, and is
// created automatically when the authorization flow completes for the first
// time.
const TOKEN_PATH = 'token.json'
import boto3
from botocore.config import Config
INDEX_ID = 'add-kendra-index-id'
KENDRA_DATA_SOURCE_ID = 'add-kendra-data-source-id'
# ------- Dummy datasets --------
TITLES = list()
DOCS = list()