Skip to content

Instantly share code, notes, and snippets.

View ZCube's full-sized avatar
🏠
Slow

ZCube ZCube

🏠
Slow
  • Seoul, Republic of Korea
  • 13:41 (UTC +09:00)
  • X @zcube
View GitHub Profile
@ZCube
ZCube / Ajazz_Stream_Deck_Protocol.md
Last active May 18, 2024 06:43
Notes on the Ajazz Stream Deck HID protocol

Ajazz Stream Deck Protocol

How to interface with a Ajazz Stream Deck device.

Synopsis

The device uses the HID protocol to communicate with its software.

Configuration

The number of keys can be determined from the HID device descriptors. There is currently no known provision to determine their layout or size. The buttons on the current version of the device (AKP153)

@ZCube
ZCube / oh-my-posh.json
Created January 14, 2024 13:39
my oh-my-posh theme (atomic custom)
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#0077c2",
"foreground": "#ffffff",
"leading_diamond": "\u256d\u2500\ue0b6",
FROM golang:1.19-bullseye AS golang-builder
RUN mkdir -p /opt/bitnami
ADD packages.sh /packages.sh
RUN chmod +x /packages.sh && \
/packages.sh
FROM bitnami/apache:2.4.54 AS apache
FROM golang:1.19-bullseye AS golang-builder
RUN mkdir -p /opt/bitnami
ADD packages.sh /packages.sh
RUN chmod +x /packages.sh && \
/packages.sh
FROM mikefarah/yq:4.30.5 AS yq
FROM golang:1.19-bullseye AS golang-builder
RUN mkdir -p /opt/bitnami
ADD packages.sh /packages.sh
RUN chmod +x /packages.sh && \
/packages.sh
FROM docker.io/bitnami/minideb:bullseye
FROM golang:1.19-bullseye AS golang-builder
RUN mkdir -p /opt/bitnami
ADD packages.sh /packages.sh
RUN chmod +x /packages.sh && \
/packages.sh
FROM consul:1.14.3 AS consul
FROM golang:1.19-bullseye AS golang-builder
RUN mkdir -p /opt/bitnami
ADD packages.sh /packages.sh
RUN chmod +x /packages.sh && \
/packages.sh
FROM docker.io/mysql:8.0.31-oracle
@ZCube
ZCube / Dockerfile.arm64
Last active December 24, 2022 11:43
Some examples for bitnami-compat (original Dockerfile from https://github.com/bitnami/containers)
FROM golang:1.19-bullseye AS golang-builder
RUN mkdir -p /opt/bitnami
ADD packages.sh /packages.sh
RUN chmod +x /packages.sh && \
/packages.sh
FROM mikefarah/yq:4.30.5 AS yq
@ZCube
ZCube / docker-compose.yaml
Last active December 6, 2022 23:35
Basic Github Workflow for testing charts
# reference : https://medium.com/codex/setup-multiple-node-groups-for-local-k3s-clusters-with-docker-compose-d9f1a49c1774
# reference : https://gist.github.com/rockcyj/86c54d866ab5a1b38e6aaf4315d3149a#file-k3s-nodegroup-taint-yaml
version: '3'
services:
server:
image: "rancher/k3s:${K3S_VERSION:-latest}"
command:
- server
tmpfs:
@ZCube
ZCube / example_p2p.cpp
Created June 25, 2020 15:41
example_p2p.cpp draft for Valve GameNetworkSockets
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <algorithm>
#include <string>
#include <random>
#include <chrono>
#include <thread>