Skip to content

Instantly share code, notes, and snippets.

@jhorology
jhorology / install-and-update-mozc.md
Last active October 2, 2023 11:29
Install and update script for mozc on macos

install and update script for mozc.

added usefull features:

  • support UT Dictionary
  • build mozc_emacs_helper

Prerequisites

brew install bazel pyenv
pyenv install 3.9.x
@jhorology
jhorology / ikki68-iceland-custome-keycodes.md
Last active February 5, 2024 00:23
Unofficial custom keycode list for IKKI 68 Iceland

This is an experience-based list of custom functions that are currently work in progress.

CLI flash command

Long press [Reset] key to enter DFU mode.

# list DFU devices
% dfu-util -l
Found DFU: [2e3c:df11] ver=0200, devnum=13, cfg=1, intf=0, path="20-3", alt=1, name="@Option Byte   /0x1FFFF800/02*016 e", serial="AT32"
Found DFU: [2e3c:df11] ver=0200, devnum=13, cfg=1, intf=0, path="20-3", alt=0, name="@Internal Flash  /0x08000000/ 128*2Kg", serial="AT32"
@jhorology
jhorology / lk67-fix.md
Created November 8, 2021 22:04
Workaround for issue that GAMAKAY software can't detect my LK67

This is a workaround for issue that software can't detect my LK67 (prebuild version). It seems Banggood's supplier of LK67 uses wrong firmware, or maybe uses recycled MCU?

Prerequisites

  • GamaKay Driver v1.1.13
  • node.js

Prettify Javascript code

cd "C:\Users\<user name>\AppData\Local\Programs\GAMAKAY Driver\resources\app\dist"
@jhorology
jhorology / keychron-k7.json
Created September 18, 2021 07:17
karabiner-elements complex modifications for Keychron K7
{
"title": "Keychron K7 Mac mode",
"rules": [
{
"description": "K7 Fn2 + ESC: Toggle swapping ESC/backtick(default).",
"manipulators": [
{
"description": "Enable swapping ESC/backtick",
"type": "basic",
"from": {
@jhorology
jhorology / my atom66 setting.pro
Created May 11, 2018 11:41
HHKB style layout for NiZ Atom 66
<?xml version="1.0" encoding="UTF-8"?>
<66EC(XRGB)Ble>
<PredefinedCombo>
<List SizeOfView="6" ViewStartAt="0" CursorPos="0" Cycles="1" IsAutoInterval="0" Delay="30" PlayMode="0"/>
</PredefinedCombo>
<PredefinedMacro>
<List SizeOfView="9" ViewStartAt="0" CursorPos="0" Cycles="1" IsAutoInterval="0" Delay="30" PlayMode="0"/>
</PredefinedMacro>
<PredefinedEmu>
<List SizeOfView="9" ViewStartAt="0" CursorPos="0" Cycles="1" IsAutoInterval="0" Delay="30" PlayMode="0"/>
@jhorology
jhorology / gist:f05a0f00cfeb12c3751dfcd9f047c72c
Created September 15, 2016 00:24
Compiling Ableton/link with Qt on OSX
brew install qt5
brew linkapp qt5
brew link --force qt5
ln -s /usr/local/opt/qt5/mkspecs /usr/local/mkspecs
ln -s /usr/local/opt/qt5/plugins /usr/local/plugins
git clone https://github.com/Ableton/link.git
cd link
git submodule update --init --recursive
mkdir build
cd build
@jhorology
jhorology / garage-band.js
Last active March 22, 2024 19:56
Fake Garage Band for NIHostIntegrationAgent
var midi = require('midi');
var mdns = require('mdns');
var osc = require('node-osc');
var KK_OSC_SERVICE_NAME = 'KOMPLETE KONTROL S-Series';
var LISTEN_PORT = 7001;
var txtRecord = {
AppleLogic: 'GarageBand10'
};
@jhorology
jhorology / gist:7d661d7cadd6043080a7a30ed762f365
Created April 4, 2016 17:28
how to start bitwig studio in offline on linux
#!/bin/sh
if [ "$1" = "wrap" ]; then
gksudo ip link set dev lo up
LANG=ja_JP.UTF-8 /opt/bitwig-studio/bitwig-studio
else
unshare -n "$0" wrap
fi
@jhorology
jhorology / gist:11c57f245de6cf4e7364
Last active August 29, 2015 14:17
Bitwig Controller script for my Yamaha P-120
loadAPI(1);
host.defineController("Yamaha", "P-120", "1.0", "E1F63546-558B-4744-825F-3D197386C344");
host.defineMidiPorts(1, 1);
host.addDeviceNameBasedDiscoveryPair(["Scarlett 6i6 USB"], ["Scarlett 6i6 USB"]);
function init() {
// using only note on/off & dumper pedal
var midiIn = host.getMidiInPort(0),
noteInput = midiIn.createNoteInput("Yamaha P-120", "8?????", "9?????", "B?40??");
noteInput.setShouldConsumeEvents(true);
// midiIn.setMidiCallback(onMidi);
@jhorology
jhorology / gist:9307adbaa4a57ceaa423
Created December 31, 2014 03:06
Bulk decomplie Ableton Live MIDI remote script.
#!/bin/sh
# Decompile Ableton Live MIDI Remote Script.
# https://github.com/Mysterie/uncompyle2
#
IFS=$'\n'
MIDI_REMOTE_SCRIPTS='/Applications/Ableton Live 9 Suite.app/Contents/App-Resources/MIDI Remote Scripts'
cd `dirname $0`
for file in $(find ${MIDI_REMOTE_SCRIPTS} -type f)