Skip to content

Instantly share code, notes, and snippets.

View jveiga's full-sized avatar
💬

João Veiga jveiga

💬
View GitHub Profile
@jveiga
jveiga / async_main.rs
Last active January 1, 2020 11:09 — forked from tomsteele/main.rs
Rust DNS Dictionary Guessing
use futures::future::join_all;
use std::env;
use std::fs::File;
use std::io::{BufRead, BufReader};
use trust_dns_client::client::{Client, SyncClient};
use trust_dns_client::op::DnsResponse;
use trust_dns_client::rr::{DNSClass, Name, RData, Record, RecordType};
use trust_dns_client::udp::UdpClientConnection;
async fn lookup(cfqdn: String, fqdn: String) -> Result<(String, Vec<String>), failure::Error> {
@jveiga
jveiga / run.py
Created April 25, 2017 13:32 — forked from codeinthehole/run.py
Sample Celery chain usage for processing pipeline
from celery import chain
from django.core.management.base import BaseCommand
from . import tasks
class Command(BaseCommand):
def handle(self, *args, **kwargs):