Skip to content

Instantly share code, notes, and snippets.

@mjkillough
mjkillough / CMakeLists.txt
Last active March 17, 2024 09:09
Generating and using a virtualenv from CMake
cmake_minimum_required(VERSION 3.6)
project(CmakeVirtualenv)
enable_testing()
# Find Python and Virtualenv. We don't actually use the output of the
# find_package, but it'll give nicer errors.
find_package(PythonInterp 2.7 REQUIRED)
find_program(VIRTUALENV virtualenv)
@mkelley82
mkelley82 / web.config
Last active January 11, 2024 08:16
Web.config for vue-router to handle history mode / deep links on IIS (w/ custom 404 and 500 error pages)
<?xml version="1.0"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Handle History Mode and custom 404/500" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />