Skip to content

Instantly share code, notes, and snippets.

View Bigjaked's full-sized avatar

Jake Bigjaked

  • iMuto Software Solutions
  • USA
View GitHub Profile
@Bigjaked
Bigjaked / sanic-run.py
Created June 14, 2018 16:27 — forked from wonderbeyond/sanic-run.py
A sanic entry-script for development (supports auo-reload, shell-mode)
import argparse
from app import app
def main():
parser = argparse.ArgumentParser(
description='Sanic test server',
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)
@Bigjaked
Bigjaked / gist:170dca237488fc2cdf1d4e2aea31e43b
Created November 17, 2016 04:53 — forked from aaronshaf/bookmarklet-expanded.js
Copy text from Amazon's Cloud Reader
// Useful for students in need of block quotes for their paper, etc.
// Execute the line in your JavaScript console
new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML;
javascript:new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML;
@Bigjaked
Bigjaked / openvpn_gen.py
Created September 22, 2016 05:11 — forked from Justasic/openvpn_gen.py
This is a python script to generate client OpenVPN configuration files. This is based mostly on the easyrsa script and is much simpler to understand.
import os
import socket
from OpenSSL import crypto, SSL
# OpenVPN is fairly simple since it works on OpenSSL. The OpenVPN server contains
# a root certificate authority that can sign sub-certificates. The certificates
# have very little or no information on who they belong to besides a filename
# and any required information. Everything else is omitted or blank.
# The client certificate and private key are inserted into the .ovpn file
# which contains some settins as well and the entire thing is then ready for