Skip to content

Instantly share code, notes, and snippets.

View DonerKebab's full-sized avatar
💀

Phuong Nguyen DonerKebab

💀
View GitHub Profile
@amatellanes
amatellanes / celery.sh
Last active October 22, 2024 12:13
Celery handy commands
/* Useful celery config.
app = Celery('tasks',
broker='redis://localhost:6379',
backend='redis://localhost:6379')
app.conf.update(
CELERY_TASK_RESULT_EXPIRES=3600,
CELERY_QUEUES=(
Queue('default', routing_key='tasks.#'),
import logging
import sys
logging.basicConfig(filename='mybot.log', level=logging.DEBUG,
format='%(asctime)s: %(name)s: %(levelname)s: %(message)s')
logger = logging.getLogger(__name__)
logger.info('Start')
import datetime
import os
def main():
x = int(input('Number of deposit: '))
total = 0
info = list()
for x in range(0, x):
os.system('cls' if os.name=='nt' else 'clear')