Skip to content

Instantly share code, notes, and snippets.

@ecormaksin
ecormaksin / Dockerfile
Created August 23, 2021 00:06
MySQL 5.7 Docker Debian イメージを日本語化する
FROM mysql:5.7
# Set debian default locale to ja_JP.UTF-8
RUN apt-get update && \
apt-get install -y locales && \
rm -rf /var/lib/apt/lists/* && \
echo "ja_JP.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen ja_JP.UTF-8
ENV LC_ALL ja_JP.UTF-8
@ecormaksin
ecormaksin / VersionControll.flt
Created August 18, 2021 04:17
WinMerge Version Controll Filter
## This is a directory/file filter template for WinMerge
name: VersionControl
desc: VersionControl
## Select if filter is inclusive or exclusive
## Inclusive (loose) filter lets through all items not matching rules
## Exclusive filter lets through only items that match to rule
## include or exclude
def: include
# https://techcommunity.microsoft.com/t5/windows-dev-appconsult/running-wsl-gui-apps-on-windows-10/ba-p/1493242
# https://yoshimemo.com/post-723/
echo xfce4-session > ~/.xsession
sudo apt -y install xfce4 xfce4-goodies xrdp language-pack-ja-base language-pack-ja ibus-mozc
sudo -E apt install $(check-language-support)
# ~/.bashrc へ以下を追加
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export DISPLAY="`grep -E \"nameserver ([0-9]{1,3}\.){3}[0-9]{1,3}\" /etc/resolv.conf | sed 's/nameserver //'`:0"
@ecormaksin
ecormaksin / e-tax_login.js
Last active February 11, 2022 13:43
受付システム・e-Taxログイン自動入力
setValue('#maskat_widget_dojo_43', '利用者識別番号1ブロック目');
setValue('#maskat_widget_dojo_44', '利用者識別番号2ブロック目');
setValue('#maskat_widget_dojo_45', '利用者識別番号3ブロック目');
setValue('#maskat_widget_dojo_46', '利用者識別番号4ブロック目');
setValue('#maskat_widget_dojo_55', 'パスワード');
function setValue(selector, value) {
var element = document.querySelector(selector);
element.value = value;
- ~/.ssh/config
```text
Host *
ServerAliveInterval 60
ServerAliveCountMax 5
Include */config
```
- ~/.ssh/oci/config
@ecormaksin
ecormaksin / add_path_golang_pkg
Created June 26, 2021 16:29
add_path_golang_pkg
GOLANG_PKG_PATH=$HOME/go/bin
echo $PATH | grep $GOLANG_PKG_PATH >/dev/null
if [ $? -ne 0 ]; then
export PATH=$GOLANG_PKG_PATH:$PATH
fi
@ecormaksin
ecormaksin / gist:8a324536e97241a040437c1f58498f09
Created June 26, 2021 06:14
Windows TerminalにCmderを追加する設定
// profiles - list 内に追加。Cmderをデフォルトにする場合は、guidをdefaultProfileに設定する
{
"guid": "{<PowerShellで`[guid]::NewGuid()`を実行した戻り値>}",
"name": "Cmder",
"commandline": "cmd.exe /k %CMDER_ROOT%\\vendor\\init.bat",
"startingDirectory": "%USERPROFILE%",
"icon": "%CMDER_ROOT%\\icons\\cmder.ico"
},
@ecormaksin
ecormaksin / gist:fc2289c8f6409c137e2bcbb4907f847c
Created June 26, 2021 06:09
Windows Terminalのデフォルト外観設定
// profiles - defaults内の設定
"fontFace": "Consolas",
"fontSize": 14,
"background": "#000",
"padding": "8",
"useAcrylic": true,
"acrylicOpacity": 0.5
GOLANG_BIN_PATH=/usr/local/go/bin
echo $PATH | grep $GOLANG_BIN_PATH >/dev/null
if [ $? -ne 0 ]; then
export PATH=$GOLANG_BIN_PATH:$PATH
fi