Skip to content

Instantly share code, notes, and snippets.

Mike Sarahan msarahan

Block or report user

Report or block msarahan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sd_data.diff
diff --git a/conda/core/ b/conda/core/
index ec4a60958..cde9b5b75 100644
--- a/conda/core/
+++ b/conda/core/
@@ -7,6 +7,7 @@ import bz2
from collections import defaultdict
from contextlib import closing
from errno import EACCES, ENODEV, EPERM, EROFS
+from functools import partial
from genericpath import getmtime, isfile
msarahan / ext.pyx
Last active Jul 25, 2019
validation of MKL 2018.0.3 openmp initialization fixes
View ext.pyx
cimport numpy as np
import numpy as np
import cython
from cython.parallel import prange
def p_arange(int n):
msarahan / example output
Created Jul 8, 2019
conda 4.7.5 install/update/remove with free channel
View example output
(base) msarahan@ubuntu:~$ CONDA_RESTORE_FREE_CHANNEL=1 conda create -n old_python python=3.5.1
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/msarahan/miniconda3/envs/old_python
added / updated specs:
msarahan / DependencyGraphs.ipynb
Last active Jun 10, 2019
graphs from conda repodata.json
View DependencyGraphs.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
msarahan / gdal-activate.bat
Last active Feb 25, 2019
post-link scripts for Fonnesbeck env
View gdal-activate.bat
@REM Store existing GDAL env vars and set to this conda env
@REM so other GDAL installs don't pollute the environment
@if defined GDAL_DATA (
@set "GDAL_DATA=%CONDA_PREFIX%\Library\share\gdal"
@if defined GDAL_DRIVER_PATH (
msarahan /
Created Jan 30, 2019
Migrate an MRO-based conda environment to an Anaconda-R-based environment
from argparse import ArgumentParser
import os
import subprocess
import tempfile
from fnmatch import fnmatch
from six import string_types
import yaml
msarahan /
Last active Aug 22, 2018
Metadata mistakes & how to address them

pin_compatible on numpy's numpy-base dependency

Comes from:

# metapackage for things that don't use numpy's C interface, or things
- name: numpy
      # for runtime alignment
      - {{ compiler('c') }}
From 9147d00f50fafd45d6df6c4dbb7ec0dcd6b3dfe0 Mon Sep 17 00:00:00 2001
From: Michael Sarahan <>
Date: Fri, 29 Jun 2018 12:30:19 +0100
Subject: [PATCH] incorporate up to c858523
tensorflow/tools/pip_package/BUILD | 8 +-
tensorflow/tools/pip_package/ | 2 +-
tensorflow/workspace.bzl | 14 ++
msarahan / gerrymandr_env.txt
Last active Jun 3, 2018
Conda env spec for gerrymandr school 2018
View gerrymandr_env.txt
python >=3.6
msarahan / AdminDeployment.xml
Created Apr 2, 2016
admin deployment for a C++ install of VS 2015 community from Chocolatey
View AdminDeployment.xml
<?xml version="1.0" encoding="utf-8"?>
<AdminDeploymentCustomizations xmlns:xsi="" xmlns:xsd="" xmlns="">
<BundleCustomizations TargetDir="C:\Program Files (x86)\Microsoft Visual Studio 14.0" NoCacheOnlyMode="default" NoWeb="default" NoRefresh="default" SuppressRefreshPrompt="default" Feed="default" />
<SelectableItemCustomization Id="TypeScriptV6" Selected="no" FriendlyName="TypeScript for Visual Studio 2015 Update 1" />
<SelectableItemCustomization Id="VSUV1" Hidden="no" Selected="yes" FriendlyName="Visual Studio 2015 Update 1" />
<SelectableItemCustomization Id="VSUV1PreReqV1" Selected="yes" FriendlyName="Visual Studio 2015 Update 1 Prerequisite" />
<SelectableItemCustomization Id="MicroUpdateV1.2" Selected="yes" FriendlyName="Update for Microsoft Visual Studio 2015 (KB3110221)" />
<SelectableItemCustomization Id="WebToo
You can’t perform that action at this time.