Skip to content

Instantly share code, notes, and snippets.

View gazzwi86's full-sized avatar

Gareth Williams gazzwi86

View GitHub Profile

TensorFlow

You cannot use the GPU on Mac OSX

sudo mkdir /usr/local/Frameworks
sudo chown $(whoami):admin /usr/local/Frameworks
brew install python3 virtualenv
virtualenv --system-site-packages -p python3 tensorflow
@gazzwi86
gazzwi86 / setup.sh
Created June 4, 2016 03:14
A script to setup a Ubuntu server with uncomplicated firewall, ftp, node, express, pm2 and new relic.
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get -y update && apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get install -y vsftpd ufw htop curl unzip nodejs build-essential && sudo apt-get autoremove
# setup firewall
sudo ufw allow 2020 # ssh
sudo ufw allow ftp # ftp
sudo ufw allow http # http
# create a user
sudo useradd -d /home/web -m web
@gazzwi86
gazzwi86 / macsetup.sh
Last active January 25, 2019 17:40
A script to setup a Mac for web development. Particularly focused around front end web development (JavaScript) using angular, meteor or react. Should be made executable (chmod -x macsetup.sh)
#!/bin/bash
# Inspiration here: https://gist.github.com/t-io/8255711
echo 'Install all AppStore Apps at first!'
echo 'Check the list of useful apps: https://gist.github.com/gazzwi86/75d87afc1fe44a5f5d84'
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo 'setup xcode'