Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
# pip install "requests[socks]"
import requests
proxies = {
"http": "socks5://localhost:9150",
"https": "socks5://localhost:9150"
}
" IDE module for vim
@gawel
gawel / backup.py
Last active November 24, 2018 14:13
from chut import * # noqa
@console_script(fmt='msg')
def backup(args):
"""
Usage: %prog [options] sync [<server>...]
%prog add <target>
%prog list
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Use mycli (http://mycli.net/) through ssh
Usage:
$ mycli-ssh yourhost [extra args passed to mycli]
"""
import irc3
from irc3.plugins.command import Commands
class Custom:
def __init__(self, context):
self.context = context
self.command = context.get_plugin(Commands)
@gawel
gawel / clientx.py
Last active February 11, 2024 18:02
Locust http2 client
import re
import time
from locust import User
from locust.exception import LocustError
import httpx
from httpx import Request, Response
from requests.auth import HTTPBasicAuth
from httpx import InvalidURL, RequestError