Skip to content

Instantly share code, notes, and snippets.

View andrelince's full-sized avatar
🤙
Coding

André Faria andrelince

🤙
Coding
  • Portugal
View GitHub Profile
@andrelince
andrelince / Latex table generator from python
Created March 9, 2018 17:34
Generate classic latex table from python list
import itertools
def escape(string):
return string.translate(str.maketrans(
{"#": r"\#",
"@": r"\@",}
))
if __name__ == '__main__':
hline = True
@andrelince
andrelince / tor.py
Created December 21, 2017 23:07
Tor Browser proxy for Python 2/3
from selenium import webdriver
import time, subprocess, socket, socks
class TorProxy():
def __init__(self):
self.browser_path = raw_input("Type the path for Tor browser executable:\n")
self.phantom_path = raw_input("Enter the path to PhantomJS:\n")
self.driver = None
self.proc = None