Skip to content

Instantly share code, notes, and snippets.

import json
from ovos_workshop.skills import OVOSSkill
from ovos_workshop.decorators import intent_handler
import paho.mqtt.client as mqtt
import paho.mqtt
class FeedTheFish(OVOSSkill):
* Descriptions
** neon-tts-plugin-coqui
Plugin to connect to the coqui TTS service
** ovos-audio
The "mouth" of the OVOS assistant!
Handles TTS generation and audio playback
** ovos-backend-client
Python client library for interaction with several supported backends under a single unified interface
** ovos-bus-client
This module is a simple interface for the mycroft messagebus and can be used to connect to ovos, send messages and react to messages sent by the OpenVoiceOS system
#!/usr/bin/python3
import logging
import datetime
from PySide2.QtCore import QObject, Slot
from PySide2.QtCore import QTimer
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
#!/usr/bin/env python3
import asyncio
import evdev
from evdev import ecodes
from evdev.events import KeyEvent
from PySide2.QtCore import QObject
class IR(QObject):
In your config add sections for user-$IDENTITY. Below I use -work and -home
Also add an alias to run a script when you want to change .. I chose "user" ... "become" might be fun...
$ cat ~/.gitconfig
<---------snip---------->
[user]
name = David Greaves
email = david.greaves@jolla.com
[user-home]
name = David Greaves
nemo/devel/hw/android/common
nemo/devel/hw/asus/flo
nemo/devel/hw/brcm/bcm2835
nemo/devel/hw/fairphone/fp2-sibon
nemo/devel/hw/htc/vision
nemo/devel/hw/lge/hammerhead
nemo/devel/hw/lge/mako
nemo/devel/hw/motorola/athene
nemo/devel/hw/motorola/falcon
nemo/devel/hw/motorola/kinzie
Login with ldap:false
Started POST "/users/sign_in" for 127.0.0.1 at 2013-04-01 15:53:12 +0000
Processing by Devise::SessionsController#create as HTML
Parameters: {"utf8"=>"�", "authenticity_token"=>"=", "user"=>{"login"=>"admin@local.host", "password"=>"[FILTERED]", "remember_me"=>"0"}}
Redirected to http://gldev.in.merproject.org/
Completed 302 Found in 140ms (ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2013-04-01 15:53:12 +0000
Processing by DashboardController#show as HTML
Rendered dashboard/_zero_authorized_projects.html.haml (2.0ms)
Provides: libmozalloc.so libnspr4.so libplc4.so libplds4.so libxul.so pkgconfig(libxul) = 22.0a1 pkgconfig(libxul-embedding) = 22.0a1 pkgconfig(mozilla-js) = 22.0a1 pkgconfig(mozilla-nspr) = 4.9.6 pkgconfig(mozilla-nss) = 22.0a1 pkgconfig(mozilla-plugin) = 22.0a1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/sh /usr/bin/pkg-config ld-linux-armhf.so.3 ld-linux-armhf.so.3(GLIBC_2.4) libQtCore.so.4 libQtGui.so.4 libQtNetwork.so.4 libQtOpenGL.so.4 libX11.so.6 libXext.so.6 libXrender.so.1 libasound.so.2 libasound.so.2(ALSA_0.9) libasound.so.2(ALSA_0.9.0rc4) libc.so.6 libc.so.6(GLIBC_2.4) libc.so.6(GLIBC_2.7) libcairo.so.2 libdbus-1.so.3 libdbus-glib-1.so.2 libdl.so.2 libdl.so.2(GLIBC_2.4) libfontconfig.so.1 libfreetype.so.6 libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GCC_3.4) libgcc_s.so.1(GCC_3.5) libgcc_s.so.1(GCC_4.3.0) libglib-2.0.so.0 libgmodule-2.0.so.0 libgobject-2.0.so.0 libgstapp-0.10.so.0 libgstbase-0.10.so.0 libgstreamer-0.10.so.0
#!/bin/bash
TIMEOUT=10
DEV=eth0
cnt=0
echo waiting for IP
while (( $cnt < $TIMEOUT )); do
IP=$(/sbin/ip -4 addr show dev $DEV scope global | grep "inet" | cut -f6 -d' ' | cut -f1 -d'/' )
[[ $IP ]] && break
10.110.0.59: rebooting...
starting worker 179d88baa3f3ee4302461a7af4c3255c build d41d8cd98f00b204e9800998ecf8427e
fetching new buildcode 3570140b895991fa995bd6b9f56d83ab, mine was d41d8cd98f00b204e9800998ecf8427e
got job, run build...
2012-10-13 13:45:00: building 'qt' for project 'Core:i586' repository 'Core_i586' arch 'i586' using helper linux32
fetching sources, dbe289f63cb79da8a4dfcb9bff402dff for Makefile
7b0a51adf261eae52a1da238b487bd76 for assistant.desktop
a2ce1bf6f751fdb5a4977f31edc602c6 for assistant.png
7add31d9c8f9312263a4d5e9e9fae0b2 for designer.desktop
bfa39ba23a96a2455466fa51d8269ddf for designer.png