Skip to content

Instantly share code, notes, and snippets.

@snize
snize / hid-remapper-config.json
Created February 14, 2024 08:48
HID Remapper
{
"version": 11,
"unmapped_passthrough_layers": [
0,
1,
2
],
"partial_scroll_timeout": 1000000,
"tap_hold_threshold": 200000,
"gpio_debounce_time_ms": 5,
@snize
snize / keymap.rb
Created October 12, 2023 14:54
英字の自作キーボードでprk_firmwareを利用している場合の英数/かな切り替えの時差式単押しキー
# https://github.com/picoruby/prk_firmware/wiki/Layers-and-mode-key_ja
# key1 key2 key3 key4
kbd.add_layer :default, %i(SPC_LAYER1 KC_A KC_B CTR_ENT_LAYER2) # :default レイヤーは最初に追加する必要がある
kbd.add_layer :layer1, %i(SPC_LAYER1 KC_1 KC_2 CTR_ENT_LAYER2)
kbd.add_layer :layer2, %i(SPC_LAYER1 KC_F1 KC_F2 CTR_ENT_LAYER2)
kbd.define_mode_key :SPC_LAYER1, [ :KC_SPACE, :layer1, 200, 200 ]
kbd.define_mode_key :CTR_ENT_LAYER2,[ %i(KC_RCTL KC_ENTER), :layer2, 300, 150 ]
# ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^ ^^^
# (1) (2) (3) (4)
@snize
snize / composer.lock.diff
Created October 22, 2019 07:43
workaround for issue with `behat/mink-selenium2-driver 1.3.x-dev removed`
$ git diff
diff --git a/composer.lock b/composer.lock
index eda703a..3b6b60d 100644
--- a/composer.lock
+++ b/composer.lock
@@ -709,16 +709,16 @@
},
{
"name": "behat/mink-selenium2-driver",
- "version": "dev-master",
@snize
snize / gist:2dfb75b5443f50ad5cfca7bfcb79daa9
Created April 17, 2019 03:49
UMAMI翻訳のISSUEテンプレート
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
We need to translate this recipe to Japanese so we can demonstrate Drupal's multilingual capabilities.
This issue is to produce and agree on a translation, not to actually incorporate it in Umami's installation process. That will be achieved in a follow-on issue.
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
Translate this recipe to Japanese so we can demonstrate Drupal's multilingual capabilities according to our Japanese language guidelines: [#3047810]
Japanese title:
Japanese path:
Japanese image alt text:
@snize
snize / core-cron.sh
Created March 30, 2018 10:06
Scheduled Jobs for drush 9 on Acquia Cloud
drush9 -dv --root=/var/www/html/${AH_SITE_GROUP}.${AH_SITE_ENVIRONMENT}/docroot core-cron &>> /var/log/sites/${AH_SITE_NAME}/logs/$(hostname -s)/drush-cron.log
@snize
snize / drush core-cron
Created December 7, 2017 02:04
Scheduled jobs command `drush core-cron` for Acquia Cloud
drush @${AH_SITE_GROUP}.${AH_SITE_ENVIRONMENT} -dv core-cron &>> /var/log/sites/${AH_SITE_NAME}/logs/$(hostname -s)/drush-cron.log
@snize
snize / composer.lock
Created September 12, 2017 03:02
contenta_jsonapi #181
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "64b70bf417f227fe7e8bd1fe4cdfdbf9",
"packages": [
{
"name": "asm89/stack-cors",
@snize
snize / toggle-modules.sh
Created February 14, 2017 00:24
blt toggle-modules task for acquia cloud post-db-copy hook
#!/bin/sh
#
# Cloud Hook: post-db-copy
#
# The post-db-copy hook is run whenever you use the Workflow page to copy a
# database from one environment to another. See ../README.md for
# details.
#
# Usage: post-db-copy site target-env db-name source-env
@snize
snize / 一般的な構造
Last active August 29, 2015 13:57
Chaplin.jsのファイル構造
.
├── application.coffee
├── assets
│   ├── images
│   └── index.html
├── controllers
│   ├── base
│   │   └── controller.coffee
│   └── home-controller.coffee
├── domainModels
---
vagrantfile-local:
vm:
box: precise64
box_url: 'http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210.box'
hostname: null
network:
private_network: 192.168.56.101
forwarded_port:
Jw3OItwS0Sz0: