Skip to content

Instantly share code, notes, and snippets.

View kingbuzzman's full-sized avatar

Javier Buzzi kingbuzzman

View GitHub Profile
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Stolen from: https://mlvin.xyz/django-single-file-project.html
import datetime
import inspect
import os
import sys
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Stolen from: https://mlvin.xyz/django-single-file-project.html
import datetime
import inspect
import os
import sys

Installation steps...

All information was inspired by: https://www.darold.net/projects/ldap_pg/HOWTO/index.html

Install all the deps (assuming docker)

apt-get update; sed -i "s/^exit 101$/exit 0/" /usr/sbin/policy-rc.d; apt-get install -y postgresql-client slapd ldap-utils iodbc odbc-postgresql vim unixodbc

Files needed

#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Stolen from: https://mlvin.xyz/django-single-file-project.html
import datetime
import inspect
import os
import sys
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Stolen from: https://mlvin.xyz/django-single-file-project.html
import datetime
import inspect
import os
import sys
@kingbuzzman
kingbuzzman / testquery.py
Last active May 13, 2020 13:13
Potential bug found in queryset when using Q() -- doubles up the counts by doing an extra join
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Stolen from: https://mlvin.xyz/django-single-file-project.html
import datetime
import inspect
import os
import sys
SSL read error: The TLS connection was non-properly terminated.; reconnecting.
Requesting SOCKS proxy connection to vpn.domain.com:443
SSL negotiation with vpn.domain.com
Connected to HTTPS on vpn.domain.com
Got CONNECT response: HTTP/1.1 200 OK
CSTP connected. DPD 30, Keepalive 20
SSL read error: The TLS connection was non-properly terminated.; reconnecting.
Requesting SOCKS proxy connection to vpn.domain.com:443
SSL negotiation with vpn.domain.com
Connected to HTTPS on vpn.domain.com
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Stolen from: https://mlvin.xyz/django-single-file-project.html
import datetime
import inspect
import os
import sys
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Stolen from: https://mlvin.xyz/django-single-file-project.html
import datetime
import inspect
import os
import sys
#!/usr/bin/env python
"""Simple script to download, filter socks5 proxies.
Download proxies, find the GEO location for the proxy, test the speed on the proxy, and finally show them.
"""
import argparse
import functools
import json