Skip to content

Instantly share code, notes, and snippets.

View Extrodox's full-sized avatar

Hemen Ashodia Extrodox

View GitHub Profile
@Extrodox
Extrodox / How can I ssh to google colaboratory VM.ipynb
Last active August 27, 2019 08:40
How can I ssh to google colaboratory VM?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#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 / Laravel 5.6 Angular 5 VagrantFile
Created May 25, 2018 15:22
Laravel 5.6 Angular 5 VagrantFile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@Extrodox
Extrodox / Set up laravel 5.6 with angular 4 or angular 5 with php 7.2.x, mysql-server.sh
Last active September 18, 2018 20:25
Set up laravel 5.6 with angular 4 or angular 5 with php 7.2.x, mysql-server
#Install PHP
sudo apt-get -y update < "/dev/null";
sudo apt-get install -y python-software-properties < "/dev/null";
sudo yes | sudo add-apt-repository ppa:ondrej/php < "/dev/null";
sudo apt-get -y update < "/dev/null";
sudo apt-get install -y php7.2 < "/dev/null";
sudo apt-get install -y php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml < "/dev/null";
#Install Mysql
sudo apt-get install -y mysql-server < "/dev/null";
@Extrodox
Extrodox / gist:5367382db611559d2b8320452e045587
Created May 2, 2018 17:37
Set up laravel 5.6 with php 5.2.3, mysql-server and apache2
sudo -s;
apt-get -y update;
apt-get install python-software-properties;
yes | add-apt-repository ppa:ondrej/php;
apt-get -y update;
@Extrodox
Extrodox / gist:a545c68a4b7f63d1e93f3283100e5542
Created May 2, 2018 17:37
Set up laravel 5.6 with php 5.2.3, mysql-server and apache2
sudo -s;
apt-get -y update;
apt-get install python-software-properties;
yes | add-apt-repository ppa:ondrej/php;
apt-get -y update;
@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