Skip to content

Instantly share code, notes, and snippets.

Serial premission denied error

If you have error in klippy log like: [Errno 13] could not open port /dev/serial0: [Errno 13] Permission denied: '/dev/serial0'

Follow the raspi-config -> Inerface Options -> Serial Port and disable a Login Shell

Then disable a getty service:

@NikolayMurha
NikolayMurha / project-save-error.fuxap
Created February 5, 2021 18:33
FUXA error examploe
{
"devices": {},
"hmi": {
"views": [
{
"id": "v_27b64b812-b113a",
"name": "View_1",
"profile": {
"width": 640,
"height": 480,
#include <GyverMotor.h>
#include <PS2X_lib.h>
#include "GyverTimer.h"
// Контроллер
#define PS2_DAT 12
#define PS2_CMD 13
#define PS2_ATT 6
#define PS2_CLK 7
int error = 0;
@NikolayMurha
NikolayMurha / configuration.yaml
Last active October 23, 2020 19:25
Zigbee2MQTT ERROR LOG
# Home Assistant integration (MQTT discovery)
homeassistant: false
# allow new devices to join
permit_join: true
# MQTT settings
mqtt:
# MQTT base topic for zigbee2mqtt MQTT messages
base_topic: zigbee2mqtt
http_port ${SQUID_PORT}
cache deny all
hierarchy_stoplist cgi-bin ?
client_persistent_connections on
persistent_request_timeout 2 minutes
access_log none
cache_store_log none
cache_log /dev/null
@NikolayMurha
NikolayMurha / shrine_test_.ruby-version
Created November 13, 2019 18:05
Sample script of shrine mongoid error
2.6.5
@NikolayMurha
NikolayMurha / docker_config.py
Created May 22, 2018 09:00
Manage docker configs in ansible
#!/usr/bin/python
#
# Copyright 2016 Red Hat | Ansible
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
@NikolayMurha
NikolayMurha / docker_swarm_service.py
Last active May 29, 2018 13:16
Ansible module https://github.com/ansible/ansible/pull/19229 with my changes. Secrets and configs are supported
#!/usr/bin/python
#
# (c) 2017, Dario Zanzico (git@dariozanzico.com)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'status': ['preview'],
@NikolayMurha
NikolayMurha / bitbucket2pivotal.php
Created March 24, 2017 13:15
Web hook for integrate
<?php
/**
* Bitbucket to pivotal webhook
* Deploy this hook to your server and add webhook http://yourdomain.com/bitbucket2pivotal.php?token=<PivotalToken>
*/
$token = !empty($_GET['token']) ? $_GET['token'] : getenv('PIVOTAL_TOKEN');
if (!$token) {
print 'Token should be defined!';
die;