Skip to content

Instantly share code, notes, and snippets.

@emptypage
emptypage / activate.csh
Last active August 29, 2015 14:17
Modify activate.csh to enable the OS X framework library under the virtualenv environment. It is also required that you make symlink of /usr/bin/python to venv/bin/python instead of the original which virtualenv copied.
# This file must be used with "source bin/activate.csh" *from csh*.
# You cannot run it directly.
# Created by Davide Di Blasi <davidedb@gmail.com>.
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; test $?_OLD_PYTHONHOME != 0 && setenv PYTHONHOME "$_OLD_PYTHONHOME" && unset _OLD_PYTHONHOME;unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
# Unset irrelevant variables.
deactivate nondestructive
setenv VIRTUAL_ENV "/path/to/your/venv"
@emptypage
emptypage / Makefile
Last active August 29, 2015 14:22
Makefile to build FreeType 2 DLLs / static libs for MS Windows.
# Makefile to build FreeType 2 DLLs / static libs for MS Windows.
VER_NAME = freetype-2.5.5
GIT_TAG = VER-2-5-5
PLATFORMTOOLSET = v$(VISUALSTUDIOVERSION:.=)
SRC_DIR = freetype2
CD_SRC_DIR = cd $(SRC_DIR)
DIST_BASE = $(VER_NAME)-win32-$(PLATFORMTOOLSET)
@emptypage
emptypage / Makefile
Last active April 6, 2022 03:53
Makefile to build OpenSSL DLLs / static libs for MS Windows.
# Makefile to build OpenSSL DLLs / static libs for MS Windows.
!IFDEF OPENSSL
INSTALL_DIR = $(OPENSSL)
!ELSE IFNDEF INSTALL_DIR
INSTALL_DIR = C:\OpenSSL
!ENDIF
!IFNDEF SRC_DIR
SRC_DIR = openssl
@emptypage
emptypage / Makefile
Last active August 29, 2015 14:22
Makefile to build wxWidgets for MS Windows.
# Makefile to build wxWidgets for MS Windows.
!IFDEF WX
INSTALL_DIR = $(WX)
!ELSE IFNDEF INSTALL_DIR
INSTALL_DIR = C:\wxWidgets
!ENDIF
!IFNDEF SRC_DIR
SRC_DIR = wxWidgets