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
sudo dnf install htop 'dnf-command(config-manager)' git curl @development-tools dkms perl wget gcc make libglvnd-egl libglvnd-devel |
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
#include "NeuralData.h" | |
#include "NNE.h" | |
UNeuralData::UNeuralData(): SelectedRuntimeType(ERuntimeType::CPU) | |
{ | |
} | |
bool UNeuralData::InitModel(const FString& ModelPath, const FString& RuntimeType) | |
{ |
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
server { | |
listen 80; | |
server_name {{.Domain}}; | |
root {{.VHOST_ROOT}}; | |
index index.html index.htm; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} |
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
blueprint: | |
name: Sensor-activated Light | |
description: Turn on a light when motion is detected. | |
domain: automation | |
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml | |
input: | |
motion_entity: | |
name: Motion Sensor | |
selector: | |
entity: |
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
# This takes an owner of a repo, the repo name iteself and then looks up latest tag and gets the tarball url downloads the file. | |
# then extracts it to /tmp/$REPO | |
OWNER=iMicknl;REPO=ha-nest-protect; curl -o ${REPO}.tar.gz -L $(curl -s https://api.github.com/repos/${OWNER}/${REPO}/releases/latest | grep "tarball_url" | cut -d : -f 2,3 | tr -d \"|tr -d , | awk '{$1=$1};1') && mkdir -p /tmp/${REPO}; tar -xf ${REPO}.tar.gz --strip-components=1 -C /tmp/${REPO} | |
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
blueprint: | |
name: Motion activated scenes | |
description: Activate a day/night scene when motion is detected. Without motion an off scene is triggered. | |
domain: automation | |
source_url: https://gist.github.com/Nitecon/77b0485080f63550b38d2bd3e91df904 | |
input: | |
motion_entity: | |
name: Motion Sensor | |
selector: | |
entity: |
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
package main | |
func addLevelPool(level int) { | |
if level > 9{ | |
panic("runtime error: index out of range") | |
} | |
} |
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 | |
GOSRC="$GOPATH/src/" | |
CURPATH=`pwd` | |
if [ -z "$GOPATH" ]; then | |
echo "Need to set GOPATH" | |
exit 1 | |
fi | |
if ! [[ $GOPATH == */ ]]; then |