Skip to content

Instantly share code, notes, and snippets.

View toddy86's full-sized avatar

Todd de Quincey toddy86

  • Franceland
View GitHub Profile
@toddy86
toddy86 / setup.sh
Last active November 14, 2020 12:32 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@toddy86
toddy86 / numpy-openblas-macos-pip.sh
Created January 5, 2021 13:36 — forked from yatsu/numpy-openblas-macos-pip.sh
Install numpy with enabling openblas using pip on macOS
# Setup HomeBrew: https://brew.sh/
brew install openblas
pip download --no-binary :all: --no-deps numpy
unzip numpy-1.18.2.zip # (you may have newer version)
cd numpy-1.18.2
cat > site.cfg <<EOF
[openblas]
libraries = openblas
library_dirs = $(brew --prefix openblas)/lib
@toddy86
toddy86 / pyenv-python38-macos.sh
Created January 5, 2021 13:36 — forked from yatsu/pyenv-python38-macos.sh
Install Python 3.8.6 with pyenv on macOS Big Sur (11)
#!/bin/sh
# 1) Install Xcode 12
# 2) Install command line tools: `xcode-select --install`
# 3) Install Homebrew
# 4) brew install zlib bzip2 xz
CFLAGS="-I$(brew --prefix zlib)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix xz)/include" \
LDFLAGS="-L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib -L$(brew --prefix xz)/lib" \
pyenv install 3.8.6