Skip to content

Instantly share code, notes, and snippets.

View Extrodox's full-sized avatar

Hemen Ashodia Extrodox

View GitHub Profile
#Generate root password
import random, string
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20))
#Download ngrok
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
! unzip -qq -n ngrok-stable-linux-amd64.zip
#Setup sshd
! apt-get install -qq -o=Dpkg::Use-Pty=0 openssh-server pwgen > /dev/null
#Set root password
@Extrodox
Extrodox / Tensorflow GPU 1.4 Mac OS High Sierra 10.13 Support.md
Last active December 17, 2017 05:11 — forked from smitshilu/Tensorflow_Build_GPU.md
Tensorflow GPU 1.4 Mac OS High Sierra 10.13 Support

Tensorflow

This is fully functional version of Tensorflow with GPU on macOS 10.13 it also works on 10.13.1 I hope it helps.

System information

  • OS - High Sierra 10.13
  • Tensorflow - 1.4
  • Xcode command line tools - 8.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v)
  • Cmake - 3.7

Build tensorflow on OSX with NVIDIA CUDA support (GPU acceleration)

These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.

Requirements

OS X 10.10 (Yosemite) or newer

@Extrodox
Extrodox / ns-inet.sh
Last active April 23, 2019 18:30 — forked from dpino/ns-inet.sh
Ubuntu Xenial 16.04 Setup a network namespace with Internet access for
#!/usr/bin/env bash
if [[ $EUID -ne 0 ]]; then
echo "You must be root to run this script"
exit 1
fi
set -x