Per @samali0996 's comment below: https://gist.github.com/pjobson/6b9fb926c59f58aa73d4efa10fe13654?permalink_comment_id=4487157#gistcomment-4487157
The new WSL Win10/11 should support this natevly. Thanks for posting the update!
Per @samali0996 's comment below: https://gist.github.com/pjobson/6b9fb926c59f58aa73d4efa10fe13654?permalink_comment_id=4487157#gistcomment-4487157
The new WSL Win10/11 should support this natevly. Thanks for posting the update!
| # You need to put index.html.j2 & conf.json into a directory called, e.g., mytmpl/. | |
| # Typical usage: The --no-prompt is important (layout is all messed up otherwise). | |
| jupyter nbconvert MySuperNotebook.ipynb --to html --no-prompt --template mytmpl/ | |
| # By default, all cells are hidden. You can override this behavior for some cells by giving them a 'code_shown' tag. |
| from keras.applications.inception_v3 import InceptionV3 | |
| from keras.models import Model, load_model | |
| import keras.backend as K | |
| import model as tcav_model | |
| import tcav as tcav | |
| import utils as utils | |
| import activation_generator as act_gen | |
| import tensorflow as tf | |
| import utils_plot as utils_plot |
| from keras import backend | |
| from keras.backend import numpy_backend | |
| import numpy as np | |
| import tensorflow as tf | |
| class NPTF(object): | |
| def __getattr__(self, name): | |
| if name in dir(numpy_backend) and name in dir(backend): |
| import json | |
| from keras.models import model_from_json | |
| def convert_to_inference_model(original_model): | |
| original_model_json = original_model.to_json() | |
| inference_model_dict = json.loads(original_model_json) | |
| layers = inference_model_dict['config'] | |
| for layer in layers: | |
| if 'stateful' in layer['config']: |
| #!/usr/bin/env bash | |
| # https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
| # https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
| # http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
| # http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
| # http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
| # http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
| # Versions | |
| CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` |
GitLab uses Fog to communicate with various object storage services
when running backups. Fog works with S3 as well as S3-compatible services like Spaces.
The key difference is that you need to explictly set the endpoint for non-S3 services.
If you are using the "ominbus" GitLab packages, you would need to add the following
to /etc/gitlab/gitlab.rb:
gitlab_rails['backup_upload_connection'] = {| #!/bin/sh | |
| # Script to start a ssh tunnel via an AWS EC2 instance. | |
| # Copyright (C) 2017 Lindo St. Angel. | |
| # Must be called after the instance is setup by ssh-tunnel.sh | |
| # Include global variables: | |
| # EC2_MACH - EC2 machine type | |
| # EC2_TYPE - EC2 instance type |