Skip to content

Instantly share code, notes, and snippets.

Build tensorflow on OSX with NVIDIA CUDA support (GPU acceleration)

These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.

Requirements

OS X 10.10 (Yosemite) or newer

@AfroThundr3007730
AfroThundr3007730 / add-dod-certs.sh
Last active November 18, 2024 16:14
Import DoD root certificates into linux CA store
#!/bin/bash
# Import DoD root certificates into linux CA store
# Version 0.3.0 updated 20240304
# SPDX-License-Identifier: GPL-3.0-or-later
add_dod_certs() {
local bundle cert certdir file form tmpdir url update
# Location of bundle from DISA site
url='https://public.cyber.mil/pki-pke/pkipke-document-library/'
bundle=$(curl -s $url | awk -F '"' 'tolower($2) ~ /dod.zip/ {print $2}')
@jonniedie
jonniedie / mtk_optimal_control.jl
Last active March 15, 2021 16:23
Optimal Control
using DifferentialEquations
using ModelingToolkit
# Time and time derivative
@parameters t
D = Differential(t)
# Forced Duffing oscillator
function Duffing(; name)
@parameters α β