Skip to content

Instantly share code, notes, and snippets.


Scott Ferguson, PhD ksferguson

View GitHub Profile

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

Ubuntu Cheats

GPU mgmt

lspci | egrep 'VGA|3D'
cat /proc/acpi/bbswitch
sudo tee /proc/acpi/bbswitch <<< ON
lsmod | grep nvidia
modprobe nvidia
ksferguson /
Last active Sep 19, 2018
Git(Hub) Cheats #github #cheats

GitHub Cheats

misc git commands

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

git clone 
ksferguson /
Last active Aug 18, 2018
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 / Ubuntu Post Install Setup.txt
Created Aug 6, 2018 — forked from hemenkapadia/Ubuntu Post Install Setup.txt
[Ubuntu Post Install Setup] Instructions for installing applications post Ubuntu installation #Ubuntu #setup
View Ubuntu Post Install Setup.txt
#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 /
Last active Sep 18, 2018
Dell 7559 w GPU Software Setup
ksferguson /
Last active Nov 21, 2020
Paperspace & MLIB Setup Notes
ksferguson /
Last active Jul 22, 2021
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.