Skip to content

Instantly share code, notes, and snippets.

View DarthPumpkin's full-sized avatar

Dominik Fay DarthPumpkin

View GitHub Profile
@DarthPumpkin
DarthPumpkin / cupy.Dockerfile
Last active September 25, 2019 22:11
A deep-learning docker image for Colab (use as local runtime) - two flavors
FROM tiangolo/python-machine-learning:cuda9.1-cudnn7-devel-python3.6
# RUN conda install tensorflow-gpu
RUN conda install -y cudatoolkit=9.0
RUN conda install -y jupyter matplotlib pandas pillow seaborn tqdm
RUN pip install h5py wandb
RUN pip install cupy-cuda91==7.0.0b3
RUN pip install jupyter_http_over_ws
RUN jupyter serverextension enable --py jupyter_http_over_ws
@DarthPumpkin
DarthPumpkin / tor.sh
Last active October 25, 2022 18:31
OS X shell script for routing all traffic through tor. Requires tor to be installed (brew install tor). Taken from https://kremalicious.com/simple-tor-setup-on-mac-os-x/, modified from http://leonid.shevtsov.me/en/an-easy-way-to-use-tor-on-os-x To stop using tor just terminate this script with Ctrl C
#!/usr/bin/env bash
# 'Wi-Fi' or 'Ethernet' or 'Display Ethernet'
INTERFACE=Wi-Fi
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &