Moved to skeeto/scratch/aidrivers
This file contains 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
import sys, argparse, time, telnetlib | |
try: | |
import socks | |
except ImportError: | |
print("Proxy support is disabled.") | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-e", "--email", help="The email to check") | |
parser.add_argument("-n", "--nameserver", help="The email server") | |
parser.add_argument("-p", "--nsport", help="The server port", type=int) | |
parser.add_argument("-t", "--timeout", help="The timeout in seconds", type=int) |
This file contains 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
import time | |
class EventfulDict(dict): | |
"""Eventful dictionary""" | |
def __init__(self, *args, **kwargs): | |
"""Sleep is an optional float that allows you to tell the | |
dictionary to hang for the given amount of seconds on each | |
event. This is usefull for animations.""" | |
self._sleep = kwargs.get('sleep', 0.0) |
This file contains 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
#lang racket | |
;;; | |
;;; Author: Bahman Movaqar <Bahman AT BahmanM.com> | |
;;; | |
(require net/url) | |
(require sxml) | |
(require net/uri-codec) | |
(require net/http-client) | |
(require (planet neil/html-parsing)) | |
(require net/cookies) |
This file contains 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 | |
if (( $# < 1 )) | |
then | |
echo "Usage: $0 username" | |
exit 1 | |
fi | |
username="$1" | |
json_left='{"input01":{"Input":"GmailAddress","GmailAddress":"' |
This file contains 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
""" | |
client.py - AsyncIO Server using StreamReader and StreamWriter | |
This will create 200 client connections to a server running server.py | |
It will handshake and run similar to this: | |
Server: HELLO | |
Client: WORLD |
This file contains 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
@font-face { | |
font-family: "Inconsolata"; | |
font-style: normal; | |
font-weight: normal; | |
src: local("Inconsolata"), url("http://themes.googleusercontent.com/static/fonts/inconsolata/v3/BjAYBlHtW3CJxDcjzrnZCIbN6UDyHWBl620a-IRfuBk.woff") format("woff"); | |
} |
This file contains 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 ijson import common | |
from ijson.backends import YAJLImportError | |
from cffi import FFI | |
ffi = FFI() | |
ffi.cdef(""" | |
typedef void * (*yajl_malloc_func)(void *ctx, size_t sz); | |
typedef void (*yajl_free_func)(void *ctx, void * ptr); | |
typedef void * (*yajl_realloc_func)(void *ctx, void * ptr, size_t sz); |
This file contains 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 tensorflow/tensorflow:1.13.2-py3 | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt update -y && apt upgrade -y && apt install git -y | |
RUN git clone https://github.com/openai/gpt-2 /gpt-2 | |
WORKDIR /gpt-2 | |
RUN python3 -m pip install --upgrade pip && python3 -m pip install -r requirements.txt | |
RUN python3 download_model.py 124M |
OlderNewer