Skip to content

Instantly share code, notes, and snippets.

View lecafard's full-sized avatar

tom lecafard

View GitHub Profile
#!/usr/bin/python3
import socket
import ssl
import sys
import asyncio
BASE_HOSTNAME = '{}.ctf-challenges.example.com'
DEFAULT_CLIENT_PORT = 7000
REMOTE_PORT = 7000
BUF_SIZE = 1024
@lecafard
lecafard / model.py
Last active March 27, 2020 00:51
python odm
from lib.db import conn
import psycopg2.extras
from datetime import datetime, date
import logging
from typing import List, Tuple
logger = logging.getLogger(__name__)
class Model(object):
_table = ''
@lecafard
lecafard / designer.html
Last active August 29, 2015 14:15
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<polymer-element name="my-element">
<template>
<style>