Skip to content

Instantly share code, notes, and snippets.

View grazor's full-sized avatar
🐧
_

Sergey Porivaev grazor

🐧
_
View GitHub Profile
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "redox_w",
"keymap": "redox_w_layout_mine",
"layout": "LAYOUT",
"layers": [
[
"LT(2,KC_GRV)",
@grazor
grazor / README.md
Last active March 8, 2023 07:17
Obsidian Templater insert Jira issue to the note

Insert jira issue into obsidian document

This is an Templater userscript to store jira ticket data as Obsidian note. Discussion is here.

This template requires go-jira tool to be installed and configured and provides three ways to load jira issues:

  • Inserting ticket contents for prompted issue id
  • Inserting ticket contents extracting issue id from note title
  • Inserting current active sprint overview note and populating its tasks as separate documents

Configuration (Linux, Mac)

@grazor
grazor / decoder.go
Last active June 4, 2021 12:11
Golang kafkacat -J decoder (aka yajl binary representation unmarshaller)
// Package kafkacat extracts messages from kafkacat -J output
package kafkacat
import (
"context"
"encoding/json"
"errors"
"io"
"time"
)
@grazor
grazor / redis.nix
Created October 18, 2020 19:06
Nixos redis-sentinel config
{ config, pkgs, ... }:
let
cfg = config.services.redis;
sentinelConfig = pkgs.writeText "sentinel.conf" ''
port 26379
sentinel monitor mymaster 127.0.0.1 6379 1
'';
in {
systemd.services.redis-sentinel = {