Skip to content

Instantly share code, notes, and snippets.

View apatrushev's full-sized avatar

Anton Patrushev apatrushev

View GitHub Profile
#!/bin/bash
cat <<EOF >/etc/systemd/system/docker-tcp.socket
[Unit]
Description=Docker Socket for the API
[Socket]
ListenStream=2375
BindIPv6Only=both
Service=docker.service
print(1)
import os
import logging
import gevent
from gevent import socket
from gflows import (
SocketSource,
SocketWrapper,
Partitioner,
Transparent,
@apatrushev
apatrushev / setup.py
Created July 14, 2017 15:32
Environment markers in extras_require
from setuptools import setup
install_requires = [
'wheel',
'PyQt5==5.7.1',
'appdirs==1.4.0',
'lxml==3.6.4',
'pip-wrapper>=0.2.3,<0.3',
# 'bad-python-version ; python_full_version!="3.5.3"',
import os
import logging
import gevent
from gevent import socket
from gflows import (
SocketSource,
SocketWrapper,
Partitioner,
Transparent,
https://github.com/pyinstaller/pyinstaller/tarball/abfc806618b16ea2037d1d5a6b7272976b34562e
import sys
from PyQt5.QtWidgets import (
QApplication,
QMainWindow,
QPlainTextEdit,
QVBoxLayout,
QWidget
)
import atexit
import os
import sys
from PyQt5.QtCore import QTimer, pyqtSignal, QProcess, QUrl
from PyQt5.QtGui import QTextCursor, QDesktopServices
from PyQt5.QtWidgets import (
QApplication,
QHBoxLayout,
QMainWindow,
from __future__ import print_function
from contextlib import closing, contextmanager
import os
import re
import sys
import tarfile
import tempfile
import shutil
import ssl
try:
@apatrushev
apatrushev / test.sql
Last active September 11, 2017 12:22
CREATE TABLE t(x INTEGER PRIMARY KEY ASC, y, z);
insert into t values (1, 2, 3);
insert into t values (2, 2, 3);
insert into t values (3, 2, 3);
insert into t values (4, 2, 3);
insert into t values (5, 2, 3);
insert into t values (6, 2, 3);
insert into t values (7, 2, 3);
insert into t values (8, 2, 3);
insert into t values (9, 2, 3);