This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update the Raspberry Pi | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get dist-upgrade -y | |
# Install initial build dependencies | |
# Provides | |
# Enables pip3.6 to access pypi | |
sudo apt-get install libbz2-dev libssl-dev -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rasa_nlu.featurizers import Featurizer | |
import tensorflow_hub as hub | |
import tensorflow as tf | |
import logging | |
logger = logging.getLogger(__name__) | |
class UniversalSentenceEncoderFeaturizer(Featurizer): | |
"""Appends a universal sentence encoding to the message's text_features.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
UPDATE_SCRIPT="do_update.sh" | |
ENV="${RASA_HOME}/.env" | |
TMP_PLAYBOOK="/tmp/playbook.yml" | |
TMP_COMPOSE="/tmp/compose.yml" | |
rm ${TMP_PLAYBOOK} | |
rm ${TMP_COMPOSE} | |
wget -qO ${TMP_PLAYBOOK} https://storage.googleapis.com/rasa-x-releases/stable/rasa_x_playbook.yml | |
wget -O ${TMP_COMPOSE} https://storage.googleapis.com/rasa-x-releases/stable/docker-compose.ce.yml | |
echo \#\!/bin/bash > ${UPDATE_SCRIPT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global Module */ | |
/* Magic Mirror | |
* Module: Calendar | |
* | |
* By Michael Teeuw http://michaelteeuw.nl | |
* MIT Licensed. | |
*/ | |
Module.register("calendar", { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
* Licensed under the Apache License, Version 2.0 (the "License"). | |
* You may not use this file except in compliance with the License. | |
* A copy of the License is located at | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* or in the "license" file accompanying this file. This file is distributed | |
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | |
* express or implied. See the License for the specific language governing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
* Licensed under the Apache License, Version 2.0 (the "License"). | |
* You may not use this file except in compliance with the License. | |
* A copy of the License is located at | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* or in the "license" file accompanying this file. This file is distributed | |
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | |
* express or implied. See the License for the specific language governing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
* Licensed under the Apache License, Version 2.0 (the "License"). | |
* You may not use this file except in compliance with the License. | |
* A copy of the License is located at | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* or in the "license" file accompanying this file. This file is distributed | |
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | |
* express or implied. See the License for the specific language governing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
sudo cp /usr/share/zoneinfo/US/Pacific /etc/localtime | |
sudo apt-get remove -y wolfram-engine sonic-pi nodejs-legacy nodejs nodered | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get install -y emacs git htop dnsutils | |
git clone https://github.com/sdesalas/node-pi-zero.git | |
cd node-pi-zero | |
chmod +x install-node-v4.4.1.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Whiptail examples - http://xmodulo.com/create-dialog-boxes-interactive-shell-script.html | |
oldhostname=$(hostname) | |
newhostname=$(whiptail --title "Hostname" --inputbox "Change hostname?" 10 60 $oldhostname 3>&1 1>&2 2>&3) | |
export exitstatus=$? | |
if [ $exitstatus != 0 ]; then | |
exit $exitstatus | |
fi | |
toemail=$(whiptail --title "gmail" --inputbox "Enter gmail (w/o @gmail.com) address to notify when script is done" 10 60 3>&1 1>&2 2>&3) | |
export exitstatus=$? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://stackoverflow.com/questions/19665863/how-do-i-use-a-self-signed-certificate-for-a-https-node-js-server | |
FQDN=$1 | |
KEYDIR=keys | |
# make directories to work from | |
#mkdir -p server/ client/ all/ | |
mkdir -p $KEYDIR | |
# Create your very own Root Certificate Authority |