Skip to content

Instantly share code, notes, and snippets.

View firewut's full-sized avatar
🎯
Focusing

Andrey Chibisov firewut

🎯
Focusing
View GitHub Profile
@firewut
firewut / gist:8522a855f78062bf1eb2955829019042
Created October 17, 2018 13:37
Celery Testing Sketch
from celery.contrib.testing import app as _app
import mock
import unittest
import celery
class TestCase(unittest.TestCase):
def setUp(self):
app = _app.TestApp(
@firewut
firewut / netcat.py
Created September 3, 2018 13:42 — forked from leonjza/netcat.py
Python Netcat
import socket
class Netcat:
""" Python 'netcat like' module """
def __init__(self, ip, port):
self.buff = ""
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)