Skip to content

Instantly share code, notes, and snippets.

pulseaudio.exe -D
taskkill /F /IM pulseaudio.exe
const fs = require('fs')
const path = require('path')
const howmDir = '/Users/kambara/Desktop/howm'
const memoDir = '/Users/kambara/Desktop/memo'
function main() {
if (!fs.existsSync(memoDir)) {
fs.mkdirSync(memoDir)
}
@kambara
kambara / settings.json
Last active August 14, 2018 21:56
for VS Code
{
"editor.fontSize": 13,
"editor.minimap.enabled": false,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"files.autoSave": "afterDelay"
}
@kambara
kambara / keybindings.json
Last active August 26, 2018 08:27
for VS Code
[
// Move cursor to top (Shift + <)
{
"key": "shift+cmd+,",
"command": "-editor.action.inPlaceReplace.up",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+,",
"command": "cursorTop",
@kambara
kambara / .tmux.conf
Last active April 4, 2020 07:42
.tmux.conf
### Set prefix key to Ctrl-z
unbind C-b
set-option -g prefix C-t
bind C-t send-prefix
# set-option -g prefix C-b
# bind C-b send-prefix
### Vi style key binding
set-window-option -g mode-keys vi
#InstallKeybdHook
#UseHook
LWin::Send, {vk1D} ; Left Win -> Muhenkan
RWin::Send, {vk1C} ; Right Win -> Henkan
vkEB Up::Send, {vk1D} ; Eisuu -> Muhenkan
vkFF Up::Send, {vk1C} ; Kana -> Henkan
@kambara
kambara / mac-like.ahk
Last active September 20, 2021 11:58
#InstallKeybdHook
#UseHook
GroupAdd, Ignore, ahk_class UnrealWindow
GroupAdd, Ignore, ahk_exe blender.exe
GroupAdd, Ignore, ahk_exe Resolve.exe
#IfWinNotActive ahk_group Ignore
SetKeyDelay 0
@kambara
kambara / platex2pdf.sh
Created December 24, 2010 03:21
LaTexコンパイルスクリプト日本語用
#!/bin/sh
NAME=`basename $1 .tex`
platex $NAME
jbibtex $NAME
platex $NAME
platex $NAME
dvipdfmx $NAME