Skip to content

Instantly share code, notes, and snippets.

View hamaadshah's full-sized avatar
:octocat:

Hamaad Shah hamaadshah

:octocat:
View GitHub Profile
@hamaadshah
hamaadshah / basic_linux.md
Last active April 8, 2018 14:32
Basic linux install commands.
sudo apt-get update
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13-rc2/linux-headers-4.13.0-041300rc2_4.13.0-041300rc2.201707232231_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13-rc2/linux-headers-4.13.0-041300rc2-generic_4.13.0-041300rc2.201707232231_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13-rc2/linux-headers-4.13.0-041300rc2-lowlatency_4.13.0-041300rc2.201707232231_amd64.deb
sudo dpkg -i linux-headers-4.13.0-041300rc2_4.13.0-041300rc2.201707232231_all.deb linux-headers-4.13.0-041300rc2-generic_4.13.0-041300rc2.201707232231_amd64.deb linux-headers-4.13.0-041300rc2-lowlatency_4.13.0-041300rc2.201707232231_amd64.deb
sudo reboot

samson@samson-MacBookPro:~$ sudo efibootmgr 
[sudo] password for samson: 

BootCurrent: 0000

@hamaadshah
hamaadshah / macbookpro_egpu_deep_learning_install.md
Last active October 5, 2022 12:45
Commands for installing CUDA toolkit and CuDNN for using Keras with the TensorFlow GPU backend and PyTorch.

Check your MacBook Pro build

Hamaads-MBP:~ samson$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 10.13.3 (17D102)
      Kernel Version: Darwin 17.4.0

Boot Volume: Macintosh

@hamaadshah
hamaadshah / basic_git.md
Last active March 3, 2018 13:11
Some basic git commands.
git init
git add --all .
git commit -m "First commit."
git remote add origin https://github.com/user.name/project
git remote -v
git remote set-url origin https://github.com/user.name/project
touch .gitignore
echo "" >> .gitignore
echo ".*" >> .gitignore

echo "" >> .gitignore

@hamaadshah
hamaadshah / conda_virtual_env.md
Last active July 30, 2018 15:16
Create virtual environments for Python with conda.
conda update -n base conda
conda create --name autoencoders python=3.6.3 anaconda
source activate autoencoders
conda install --name autoencoders theano
conda uninstall --name autoencoders theano
pip install --upgrade pip
# For Windows
python -m pip install --upgrade pip
pip install ~/Projects/tensorflow_pkg/tensorflow-1.6.0rc0-cp36-cp36m-macosx_10_7_x86_64.whl     

pip install keras --upgrade