Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
{'created_at': 'Sun Mar 15 11:02:35 +0000 2020', 'id': 1239144958894002179, 'text': "RT @sanjanah: Anchored to 'Sri Lanka Corona' search term, looked at @youtube videos from 1 Feb to 14 March to get a sense of content on #co…", 'user': {'id': 3244922072, 'name': 'Sumanapala BOT', 'screen_name': 'sumanebot', 'location': 'Sri Lanka', 'followers_count': 387, 'friends_count': 411}, 'geo': None, 'coordinates': None, 'place': None, 'sentiment': 0.0}
{'created_at': 'Sun Mar 15 11:02:35 +0000 2020', 'id': 1239144959141388289, 'text': 'RT @saintIournt: if corona has ruined something that you were looking forward to say I', 'user': {'id': 2277055571, 'name': 'ʟᴀᴜʀᴇɴ', 'screen_name': '7RINGSLUV', 'location': 'ɹnoʇ ɹǝuǝʇǝǝʍs', 'followers_count': 9928, 'friends_count': 285}, 'geo': None, 'coordinates': None, 'place': None, 'sentiment': 0.0}
{'created_at': 'Sun Mar 15 11:02:35 +0000 2020', 'id': 1239144959061590018, 'text': 'RT @MrDre_: If I gave you 100 skittles and told you 3 of them could kill you.... I’m sure you would
@altipard
altipard / docker-compose.yml
Created August 8, 2019 16:23 — forked from igorkamyshev/docker-compose.yml
docker-gen + letsencrypt-nginx-proxy-companion
version: '3'
services:
nginx-web:
image: nginx
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
container_name: ${NGINX_WEB:-nginx-web}
restart: always
ports:
- "${IP:-0.0.0.0}:80:80"
#!/bin/bash
WS_AUTH_USER=user # username for export
WS_AUTH_PW=password # password for user
TERMBASE_ID=1 # id of termbase
FILE_FORMAT=csv # choose ONE from xls|csv|multiterm|tbx
QUERY=* # use * for all terms
SRC_LANG_ID=1 # id of source language use x|y|z for multiple ids
TGT_LANG_ID=2 # id of target language use x|y|z for multiple ids
BASE_URL="http://www.example.com" # base url of termxplorer
@altipard
altipard / celery_tasks_error_handling.py
Created December 21, 2015 21:33 — forked from darklow/celery_tasks_error_handling.py
Celery tasks error handling example
from celery.task import task
from my_app.models import FailedTask
from django.db import models
@task(base=LogErrorsTask)
def some task():
return result
class LogErrorsTask(Task):
def on_failure(self, exc, task_id, args, kwargs, einfo):
@altipard
altipard / auerswald_5010_reboot.py
Last active December 19, 2015 18:49
Remote Reboot Auerswald 5010 Telefonanlage
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Daniel Altiparmak (sixfinger78@gmail.com)"
__copyright__ = "Copyright (C) 2015 Daniel Altiparmak"
__license__ = "GPL 3.0"
"""
This snippet is used to reboot the telephone system Auerswald.
@altipard
altipard / asyncio_download.py
Last active February 5, 2025 15:57
Download multiple files using the asyncio module from python3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Daniel Altiparmak (sixfinger78@gmail.com)"
__copyright__ = "Copyright (C) 2015 Daniel Altiparmak"
__license__ = "GPL 3.0"
import asyncio
import aiohttp