Skip to content

Instantly share code, notes, and snippets.

@emillynge
emillynge / async_tcp_scan.py
Created December 13, 2018 07:26 — forked from 0xpizza/async_tcp_scan.py
TCP Network scanner using asyncio for Python 3.7
#!/usr/bin/python3.7
import asyncio
import ipaddress
import re
import sys
from typing import Generator, NamedTuple, Tuple, Any
# pip dependencies
from aiostream.stream import merge
@emillynge
emillynge / DataBufferLengthIssueShowcase.java
Created August 16, 2018 09:30
DataBuffer length issue v2
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
import org.nd4j.linalg.indexing.NDArrayIndex;
public class DataBufferLengthIssueShowcase
{
public static void printArrayAndBuffer(INDArray arr, String title) {
printArrayAndBuffer(arr, title, false);
}