Skip to content

Instantly share code, notes, and snippets.

View chroju's full-sized avatar

jutaro chroju

View GitHub Profile
@chroju
chroju / config.json
Last active July 3, 2021 11:38
BLE Micro Pro config for Quick7
{"config":
{
"version":2,
"device_info":{"vid":"0xFEED","pid":"0x0000",
"name":"Quick7","manufacture":"yushakobo","description":"9 keys macropad"},
"matrix":{"rows":1,"cols":9,"device_rows":1, "device_cols":9,
"debounce":1,"is_left_hand":1,"diode_direction":0,
"row_pins":[13],
"col_pins":[10, 11, 14, 9, 16, 15, 2, 7, 20],
"layout":[1, 2, 3, 4, 5, 6, 7, 8, 9]},
@chroju
chroju / Dockerfile.dev
Last active December 11, 2022 05:17
modeline test
# syntax=docker/dockerfile:1.2
FROM base
RUN apt-get update
@chroju
chroju / template.sh
Created August 16, 2022 00:30
K3s UserData template
#!/bin/bash
# Install k3s
curl -Ls https://github.com/k3s-io/k3s/releases/download/${k3s_version}/k3s -o /usr/local/bin/k3s
chmod +x /usr/local/bin/k3s
ln -s /usr/local/bin/k3s /usr/local/bin/kubectl
cat > /etc/systemd/system/k3s.service <<EOF
[Unit]
Description=Lightweight Kubernetes
@chroju
chroju / shortkeys.json
Last active August 22, 2022 09:23
Vimium and Shortkeys
[
{
"action": "javascript",
"code": "var asin = document.body.querySelector(\"input[name^='ASIN']\").value;\nlocation.href = 'https://booklog.jp/item/1/' + asin;",
"key": ", k",
"sites": "",
"sitesArray": [
""
]
},
/* ==UserStyle==
@name Workflowy Nord
@namespace github.com/chroju
@version 1.2.3
@author chroju
@updateURL https://gist.githubusercontent.com/chroju/a849d558979a42f7b89e812d2a32f9a9/raw/workflowy-nord.user.css
==/UserStyle== */
@-moz-document url("https://workflowy.com/"), url-prefix("https://workflowy.com/#") {
html {
@chroju
chroju / workflowy-journal.user.js
Last active March 13, 2024 00:22
UserScripts
// ==UserScript==
// @name Workflowy Journal
// @namespace https://github.com/chroju
// @version 0.0.3
// @description Quickly create/select a daily journal item
// @author chroju
// @match https://workflowy.com/*
// @match https://beta.workflowy.com/*
// @grant none
// @run-at document-end