This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {'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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |