There are several approaches
- Mount Google Drive in local Colab VM
- Upload and download via browser
- Use colab_util.py in python script
from collections import namedtuple | |
import json | |
import psutil | |
import requests | |
import re | |
import subprocess | |
class ngrok_tboard_manager: | |
def __init__(self, port=None): |
#!/srv/apps/anaconda3/bin/python | |
import os | |
import time | |
HOME = os.environ.get('HOME') | |
# edit bashrc | |
with open(HOME + '/.bashrc', 'w') as f: | |
ngrok_key1 = input('Enter the first ngrok authtoken > ') | |
ngrok_key2 = input('Enter the second ngrok authtoken > ') |
#!/srv/apps/anaconda3/bin/python | |
import os | |
import time | |
HOME = os.environ.get('HOME') | |
# edit bashrc | |
if 'Added by remote_setup.sh' not in open(HOME + '/.bashrc', 'r').read(): | |
with open(HOME + '/.bashrc', 'a') as f: | |
ngrok_key1 = input('Enter the first ngrok authtoken > ') |
There are several approaches
This re-styles your sublime text sidebar to be dark, it fits default Monokai theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on:
# Remove anything linked to nvidia | |
sudo apt-get remove --purge nvidia* | |
sudo apt-get autoremove | |
# Search for your driver | |
apt search nvidia | |
# Select one driver (the last one is a decent choice) | |
sudo apt install nvidia-370 |
from tkinter import * | |
from string import Template | |
import clipboard | |
root = Tk() | |
# Make the window transparent, bring it to topmost | |
root.wait_visibility(root) | |
root.attributes('-alpha', 0.5) | |
# Note sometimes this causes other windows to hide, still figuring what happened | |
root.attributes('-topmost', True) |