Skip to content

Instantly share code, notes, and snippets.

View gokalper's full-sized avatar
💭
Immersing myself into Golang Developement

Gokalp Ercilasun gokalper

💭
Immersing myself into Golang Developement
View GitHub Profile
@gokalper
gokalper / walk.go
Created June 12, 2020 18:55 — forked from tdegrunt/walk.go
Replace some text in a bunch of files with golang
package main
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
)
@gokalper
gokalper / install_nvidia_cuda_10_ubuntu18.sh
Created November 3, 2019 21:04 — forked from ksopyla/install_nvidia_cuda_ubuntu18.sh
NVidia Cuda 10 installation for Ubuntu 18.04
#!/bin/bash
## This gist contains step by step instructions to install cuda v10.0 and cudnn 7.5 in Ubuntu 18.04
## Clean install
### If you have previous installation remove it first.
sudo apt-get purge nvidia*
sudo apt remove nvidia-*
sudo rm /etc/apt/sources.list.d/cuda*
sudo apt-get autoremove && sudo apt-get autoclean
@gokalper
gokalper / vagrant-cheat-sheet.md
Created September 1, 2019 04:38 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)