Skip to content

Instantly share code, notes, and snippets.

View spbnick's full-sized avatar
🏠
Working from home

Nikolai Kondrashov spbnick

🏠
Working from home
View GitHub Profile
#!/usr/bin/env python3
import knob
graph = knob.Graph()
e = graph.entities
n = e[""]
r = graph.relations
s = e.ll_state
t = r.ll_state_transition
diff --git a/env.yaml b/env.yaml
index 4d25ae9..8a585ee 100644
--- a/env.yaml
+++ b/env.yaml
@@ -8,7 +8,7 @@ KCIDB_LOAD_QUEUE_OBJ_MAX: '8192'
KCIDB_LOAD_QUEUE_SUBSCRIPTION: kcidb_new_load
KCIDB_LOAD_QUEUE_TIMEOUT_SEC: '30'
KCIDB_LOAD_QUEUE_TOPIC: kcidb_new
-KCIDB_LOG_LEVEL: INFO
+KCIDB_LOG_LEVEL: DEBUG
class Cache:
def __init__(self, bucket, max_store_size):
"""
Initialize a cache client.
Args:
bucket: The name of the S3 bucket containing the cache.
max_store_size: Maximum size the file can have to be stored.
"""
# Create the GCS client here
diff --git a/plugin.json b/plugin.json
index 6fa6cba..5c8dd80 100644
--- a/plugin.json
+++ b/plugin.json
@@ -10,7 +10,7 @@
"url": "https://redhat.com"
},
"keywords": ["singlestat", "link", "panel"],
- "version": "1.0.0",
+ "version": "2.0.0",
{
"revisions": [
{
"id": "9ece50d8a470ca7235ffd6ac0f9c5f0f201fe2c8+bf3c6a7247ae590c0d2965622961b74b6c99a92fec70d07fa4025cb6fcb944a9",
"origin": "gkernelci",
"git_repository_url": "git://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git",
"git_repository_branch": "5.8",
"contacts": [
"Mike Pagano <mpagano@gentoo.org>"
],
@spbnick
spbnick / syzbot_submission_mockup.md
Last active July 17, 2020 08:10
Syzbot Submisson mockup
{
    /* Test comment */
    "revisions": [
        {
            "id": "7ae77150d94d3b535c7b85e6b3647113095e79bf",
            "origin": "syzbot",
            "discovery_time": "2020-06-25T03:21:48+00:00",
            "git_repository_url": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",
            "git_repository_commit_hash": "7ae77150d94d3b535c7b85e6b3647113095e79bf",
-- If LuaRocks is installed, make sure that packages installed through it are
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
pcall(require, "luarocks.loader")
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
#!/usr/bin/env python3
import math
import unittest
import pprint
def is_child_of(types, child, parent):
if child == parent:
return True
for child_parent in types[child]:
diff --git a/hid-uclogic.c b/hid-uclogic.c
index 86bf880..bc3090c 100644
--- a/hid-uclogic.c
+++ b/hid-uclogic.c
@@ -744,7 +744,7 @@ static int uclogic_input_mapping(struct hid_device *hdev, struct hid_input *hi,
return 0;
}
-static void uclogic_input_configured(struct hid_device *hdev,
+static int uclogic_input_configured(struct hid_device *hdev,