Skip to content

Instantly share code, notes, and snippets.

View ksferguson's full-sized avatar

Scott Ferguson, PhD ksferguson

View GitHub Profile
@ksferguson
ksferguson / AWS-setup.md
Last active September 18, 2018 02:21
AWS Setup

AWS Setup for Remote Streamlit/Python

  1. Setup AMI Box for Ubuntu 16.04
  2. ssh into remote box
  3. Install Streamlit on remote AWS server
pip install streamlit
  1. Find AWS external IP
@ksferguson
ksferguson / ububtu_cheats.md
Last active August 18, 2018 14:55
Ubuntu Cheats

Ubuntu Cheats

GPU mgmt

lspci | egrep 'VGA|3D'
cat /proc/acpi/bbswitch
sudo tee /proc/acpi/bbswitch <<< ON
lsmod | grep nvidia
modprobe nvidia
nvidiaismi 
@ksferguson
ksferguson / git_cheats.md
Last active September 19, 2018 01:04
Git(Hub) Cheats #github #cheats

GitHub Cheats

misc git commands

cd ~/github
mkdir <repo_dir>
cd <repo_dir>
git init

git clone 
@ksferguson
ksferguson / conda_cheats.md
Last active August 18, 2018 14:59
Conda Cheats #anaconda #conda #cheats

Conda Config for easy Notebook Kernel selection

#allows selection of specific environment in Jupyter notebook
conda install ipykernel
python -m ipykernel install --user --name=<your_env_name> --display-name "Your Env Name"
conda install nb_conda

#example - setup spaCy environment, creating a kernelspec
@ksferguson
ksferguson / Ubuntu Post Install Setup.txt
Created August 6, 2018 02:23 — forked from hemenkapadia/Ubuntu Post Install Setup.txt
[Ubuntu Post Install Setup] Instructions for installing applications post Ubuntu installation #Ubuntu #setup
#TODO - convert this into an installation script to help quickly setup the machine post installation
0. Time in Windows gets corrupted when dual boot with Ubuntu. (Note needed on 18.04 LTS)
First adjust hardware time in BIOS to UTC time
Windows will automatically recognise it and will display appropriate local time
For Ubuntu, update /etc/default/rcS and change line with UTC=no to UTC=yes, indicating that BOIS time is UTC.
Reboot - and check both systems.
0. Open Disks, and edit mount options for C and D drives. Remove check box for Mount at Startup and Show in user interface. Also disable Automatic mount.
0. To speed up ubuntu Updates select the best Server.
@ksferguson
ksferguson / Ubuntu-generic-setup.md
Last active September 18, 2018 23:55
Dell 7559 w GPU Software Setup
@ksferguson
ksferguson / Paperspace-fast-ai-plus-setup.md
Last active November 21, 2020 22:51
Paperspace fast.ai & MLIB Setup Notes
@ksferguson
ksferguson / Dell-7559-GTX960M-Ubuntu-Setup.md
Last active July 22, 2021 00:59
Dell 7559 GTX960M Ubuntu 16.04 Setup with Nvidia cuda/cuDNN for Tensorflow #dell #7559 #nvidia #ubuntu

Ubuntu Setup Notes for Dell 7559 with GTX 960M

scott@ksf16u:~$ lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Skylake Integrated Graphics (rev 06)
scott@ksf16u:~$ lspci | grep -i 3D
02:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)

Objective is to allow NVidia GTX 960M to work as accelerated GPU with Tensorflow 1.8 (current as of 6/10/18). This supports Eager execution for dynamic graphs.