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
import csv | |
import requests | |
def get_videos(channel_id, api_key): | |
# Construct the API request | |
# url = f"https://www.youtube.com/t/videos?part=snippet&q={channel_url}&type=video" | |
url = f"https://www.googleapis.com/youtube/v3/search?key={api_key}&channelId={channel_id}&part=snippet,id&order=date&maxResults=50" | |
# Send the API request and get the response | |
response = requests.get(url) |
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 | |
cd $1 | |
# CONFIG VARIABLES | |
ignoreChars=',.?!' | |
for filename in ./*.txt; do | |
outputFile=$(basename $filename .txt)'_'"$(date '+%Y-%m-%d-%H:%M:%S')"'.txt' | |
touch $outputFile | |
echo '****************************' >> $outputFile |
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 alpine as qemu | |
RUN if [ -n "aarch64" ]; then \ | |
wget -O /qemu-aarch64-static https://github.com/multiarch/qemu-user-static/releases/download/v5.1.0-5/qemu-aarch64-static; \ | |
else \ | |
echo '#!/bin/sh\n\ntrue' > /qemu-aarch64-static; \ | |
fi; \ | |
chmod a+x /qemu-aarch64-static | |
FROM arm64v8/ubuntu:20.04 as builder |
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
# General prerequisites: | |
sudo apt-get install -y debhelper build-essential fakeroot | |
# Clone package | |
git clone https://github.com/mycroft-packaging/mycroft-gui-mark-2 -b focal | |
cd mycroft-gui-mark-2 | |
# Clone source | |
git clone https://github.com/mycroftai/mycroft-gui-mark-2 | |
cp -r debian mycroft-gui-mark-2 |
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 | |
DIR_FROM=$1 | |
DIR_TO=$2 | |
PERCENTAGE=$3 | |
COUNTER=0 | |
for file in $DIR_FROM*; do | |
val=$RANDOM | |
# Max possible value is 32760 |
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 | |
sudo apt-get install git | |
git clone https://github.com/MycroftAI/mycroft-core.git | |
cd mycroft-core | |
bash dev_setup.sh -sm | |
./start-mycroft.sh debug |
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
{ | |
"max_allowed_core_version": 19.2, | |
"listener": { | |
"device_name": "HDA Creative: CA0110-IBG Analog" | |
} | |
} |
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
{ | |
"max_allowed_core_version": 19.2, | |
"listener": { | |
"device_name": "HDA Intel PCH: ALC887-VD Analog" | |
} | |
} |
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
{ | |
"name": "Telegram Skill", | |
"skillMetadata": { | |
"sections": [ | |
{ | |
"name": "Telegram Bot", | |
"fields": [ | |
{ | |
"type": "label", | |
"value": "", |
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
import csv | |
import sre_yield | |
from os.path import join | |
skill_path = '/opt/mycroft/skills/skill-date-time.ndato' | |
output_file = './tests_to_create.csv' | |
intent_handler = 'handle_query_current_time_adapt' | |
expected_dialog = "time.future" | |
offset = 8 | |
location = 'London' |
NewerOlder