Skip to content

Instantly share code, notes, and snippets.

View vandorjw's full-sized avatar

Joost van Dorp vandorjw

View GitHub Profile
@vsajip
vsajip / pyvenvex.py
Last active June 18, 2024 21:25
A script which demonstrates how to extend Python 3.3's EnvBuilder, by installing setuptools and pip in created venvs. This functionality is not provided as an integral part of Python 3.3 because, while setuptools and pip are very popular, they are third-party packages.The script needs Python 3.3 or later; invoke it using"python pyvenvex.py -h"fo…
#
# Copyright (C) 2013-2020 Vinay Sajip. New BSD License.
#
import os
import os.path
from subprocess import Popen, PIPE
import sys
from threading import Thread
from urllib.parse import urlparse
from urllib.request import urlretrieve
@vandorjw
vandorjw / gist:7032025
Last active December 25, 2015 19:59
Virtual Host Configuration file for Apache-2.4 and mod_wsgi
<VirtualHost *:80>
ServerName notes.vandorjw.me
Redirect permanent / https://notes.vandorjw.me
</VirtualHost>
<Virtualhost *:443>
ServerAdmin postmaster@xxxxxxxxx.xx
ServerName notes.vandorjw.me
# indexes + Directory Root, Mandatory but never used.
<html>
<head>
<meta charset="UTF-8">
<title>Refactored TapeDeck</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>