Skip to content

Instantly share code, notes, and snippets.

View damienpontifex's full-sized avatar

Damien Pontifex damienpontifex

View GitHub Profile
# Kudos to http://www.lieben.nu/liebensraum/2017/07/transferring-a-domain-to-azure-dns-and-billing/
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.DomainRegistration
$rgName = "NAME OF YOUR RESOURCE GROUP"
$ResourceLocation = "Global"
$ResourceName = "MYDOMAINNAME.NL"
$PropertiesObject = @{
'Consent' = @{
'AgreementKeys' = @("DNPA","DNTA");
'AgreedBy' = '122.13.11.20'; #ip address you're running this script from
# Run interactive python tensorflow container
docker run --rm -it --name py-tf --entrypoint python tensorflow/tensorflow:1.3.0-py3
# Run jupyter notebook container
docker run --rm -dit -p 8888:8888 -p 6006:6006 -v "${PWD}":/notebooks --name notebook tensorflow/tensorflow:1.3.0-py3
# Run on ubuntu server with GPU and have it run on startup
nvidia-docker run -dit \
-p 8888:8888 -p 6006:6006 \
-v /home/nbs:/notebooks \
pip3 install -U jupyter
# Thememes
# jt -t grade3 -cellw 90% # light theme
# jt -t oceans16 -cellw 90% # dark theme
pip3 install -U jupyterthemes
# Extensions - enable collapsible headings under Nbextensions tab when viewing home of jupyter
pip3 install -U jupyter-contrib-nbextensions