Skip to content

Instantly share code, notes, and snippets.

@nogajun
nogajun / JYS-NS138.md
Last active October 28, 2024 07:16
JYS-NS138 Controler Instruction Sheet

Operating Instructions:

1.Mode and connection instructions

The Mode Switch:

Press Y + Home 2 seconds to enter the Bluetooth search mode, led1-led4 running horse flashes, and the LED channel corresponding to the successful connection remains on (Switching the assignment of the host organization); Synchronous state, or being paired with host connection: led1-led4 flashing horse;

Note: when the handle enters synchronization mode, it will automatically go to sleep if no synchronization is reached within 2.5 minutes.

---
- hosts: all
become: yes
vars:
user: "{{ ansible_ssh_user }}"
home_dir: "/home/{{ user }}"
fontconfig: "{{ home_dir }}/.config/fontconfig"
gtk3: "{{ home_dir }}/.config/gtk-3.0"
tasks:
- name: ロケール関係インストール
@nogajun
nogajun / dummy-largefile.sh
Created September 19, 2019 03:32
320x419164のcsvファイルを作るワンライナー
t=$(echo -n "1"; for i in {2..320}; do echo -n ",$i"; done;); for i in {1..419164}; do echo $t ;done > dummy-largefile.csv
@nogajun
nogajun / shutter.yml
Created December 7, 2018 09:37
スクリーンショットツールShutterをAppImage化するレシピ
app: shutter
binpatch: true
ingredients:
dist: stretch
packages:
- libxml-sax-expat-perl
- libimage-exiftool-perl
- libnet-dbus-glib-perl
- libgoo-canvas-perl
@nogajun
nogajun / wine-japanese.reg
Last active May 20, 2025 18:36
LinuxのWine環境で日本語周りをいい感じに設定するレジストリデータ。Windowsで使われるフォント名置換とビットマップフォント無効、InputStyleをrootにします
Windows Registry Editor Version 5.00
' 文字コードをUTF-16リトルエンディアン、改行をCR+LFで保存してください
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"Meiryo UI"="Noto Sans CJK JP"
"Meiryo"="Noto Sans CJK JP"
"MS Gothic"="Ume Gothic"
"MS Mincho"="Ume Mincho"
"MS PGothic"="Ume P Gothic"
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<include ignore_missing="yes" prefix="xdg">fontconfig/msfonts.conf</include>
<match target="font">
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
<edit name="hinting" mode="assign">
<bool>false</bool>
@nogajun
nogajun / fonts.conf
Created August 21, 2016 02:23
fontconfig
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<include ignore_missing="yes" prefix="xdg">fontconfig/msfonts.conf</include>
<match target="font">
<edit mode="assign" name="rgba"><const>rgb</const></edit>
<edit mode="assign" name="hinting"><bool>false</bool></edit>
<edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
<edit mode="assign" name="antialias"><bool>true</bool></edit>
#!/bin/bash
#
# Convert HUE/360 Palette to LibreOffice Color Palette.
# Usage: hue3602soc.sh [ HUE360_palette.txt ]
#
# input file structure
# color name: #(color code)
#
# input file example:
# white: #ffffff
#!/bin/bash
#
# Convert GIMP Palette to LibreOffice Color Palette.
# Usage: hue3602soc.sh [ GIMP_palette.gpl ]
#
# Copyright: Jun NOGATA <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
uedamac:MEMO ueda$ echo "わたしは aho です。4 さいです。" |
sed 's/\([^a-zA-Z0-9]\) \([a-zA-Z0-9]\)/\1\2/g' |
sed 's/\([a-zA-Z0-9]\) \([^a-zA-Z0-9]\)/\1\2/g'
わたしはahoです。4さいです。