To install tensorflow, you can either install it with pip
(or pip3
) or with Docker.
Install using pip
# Install using pip (for python3)
pip3 install --user tensorflow-gpu
" vim-bootstrap | |
"***************************************************************************** | |
"" Vim-PLug core | |
"***************************************************************************** | |
let vimplug_exists=expand('~/.vim/autoload/plug.vim') | |
let g:vim_bootstrap_langs = "c,elixir,elm,erlang,go,haskell,html,javascript,lisp,lua,ocaml,perl,php,python,rust,scala,typescript" | |
let g:vim_bootstrap_editor = "vim" " nvim or vim |
$ sudo docker run --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" gui-app |
#!/bin/bash | |
# Requires: notify-send and screen | |
# Change `wlp3s0` to your internet gateway interface name | |
screen -d -m bash -c 'ping -I wlp3s0 8.8.8.8 | grep -o -m 1 "bytes from" | xargs -I {} notify-send "Internet is back"' |
/* Providers */ | |
provider "aws" { | |
region = "us-west-2" | |
} | |
/* Variables */ | |
variable "name" { | |
default = "XXXXX" |
#!/bin/bash | |
sudo apt purge nvidia* | |
sudo apt autoremove | |
sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.105-418.39_1.0-1_amd64.deb | |
sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub # replace <version> with the correct one | |
sudo apt update | |
sudo apt install cuda | |
sudo apt install nvidia-cuda-toolkit |
#!/bin/bash | |
function get_active_window() { | |
printf "0x%08x" $(xdotool getactivewindow) | |
} | |
function get_current_opacity() { | |
window="$1" | |
opacity=$(xprop -id $window | grep _NET_WM_WINDOW_OPACITY | awk '{print $3}') | |
if [ -z $opacity ]; then |