Skip to content

Instantly share code, notes, and snippets.

View fatihbaltaci's full-sized avatar

Fatih Baltaci fatihbaltaci

View GitHub Profile
@fatihbaltaci
fatihbaltaci / kubernetes.md
Last active February 25, 2021 13:38
Kubernetes

Nginx Service and Deployment

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-ui
spec:
  selector:
@fatihbaltaci
fatihbaltaci / latex.md
Last active November 17, 2019 19:18
Latex Cheet Sheet

Symbols

  • Division - Fraction: \frac{}{}
  • Greater or equal: \geq
  • Smaller or equal: \leq

Comment on Algorithm algorithm2e package

\usepackage[ruled, linesnumbered]{algorithm2e}
@fatihbaltaci
fatihbaltaci / iterm2.md
Created September 9, 2019 10:54 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@fatihbaltaci
fatihbaltaci / settings.md
Last active October 9, 2021 11:34
vscode Visual Studio Code Settings
  • For MAC:

After installation, launch VS Code. Now open the Command Palette (F1 or ⇧+⌘+P on Mac) and type shell command to find the Shell Command: Install 'code' command in PATH command.

  • F1 -> Open Settings (JSON)
{
    "python.linting.pylintArgs": ["--extension-pkg-whitelist=cv2"]
import scipy.io
mat = scipy.io.loadmat('file.mat')
# First install CUDA https://gist.github.com/fatihbaltaci/e9ac5dde14e17c8b59c3ce4e90bcac0a
# Download (cuDNN Library for Linux) from https://developer.nvidia.com/rdp/cudnn-download
tar -xzvf cudnn-9.0-linux-x64-v7.5.0.56.tgz
#Default /usr/local/cuda
CUDA_HOME=<CUDA_PATH>
sudo cp cuda/include/cudnn.h $CUDA_HOME/include
wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9.0.176_384.81_linux-run
chmod +x cuda_9.0.176_384.81_linux-run
./cuda_9.0.176_384.81_linux-run --extract=`pwd`
./cuda-linux.9.0.176-22781540.run
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
#(Optional)
conda install pytorch=0.4.1 cuda90 -c pytorch