Skip to content

Instantly share code, notes, and snippets.

View 844196's full-sized avatar

Masaya Takeda 844196

  • 株式会社ヴァジラ・アヌッタラ ヒタ アビヴッディ精密機器工業
  • Sapporo, Japan
  • 09:26 (UTC +09:00)
  • X @efumaxay
View GitHub Profile
@844196
844196 / awesome-wsl.md
Last active February 2, 2024 03:45
WSL最高!!

WSL 動かない なぜ 令和最新版

スワップをなるべく使わないようにする

先にWSL2でsystemdが使えることを確認しておくこと

  1. WSL2で /etc/sysctl.conf を開いて、末尾に設定を追加して保存する
@844196
844196 / default.json
Created March 31, 2023 09:18
%LOCALAPPDATA%\Microsoft\PowerToys\Keyboard Manager\default.json
{
"remapKeys": {
"inProcess": []
},
"remapShortcuts": {
"global": [],
"appSpecific": [
{
"originalKeys": "163;65",
"newRemapKeys": "36",
#!/bin/zsh
readonly local format=(
'%(if)%(HEAD)%(then)1%(else)0%(end)' # is current (0|1)
'0' # is topic branch (0|1)
'0' # is gone (0|1)
'%(refname:short)' # branch name
'%(color:bold black)%(subject)%(color:reset)' # commit message
'%(color:bold black)%(upstream:track)%(color:reset)' # upstream status (e.g. [ahead 1], [behind 40], [gone])
)
  • 常用閉塞
    • 非自動閉塞
      • スタフ閉塞
      • 票券閉塞
      • タブレット閉塞
    • 自動閉塞
      • 自動閉塞(特殊)
      • 特殊自動閉塞
        • 軌道回路検知式
  • 電子符号照査式
#cloud-config
write_files:
- path: /etc/sysctl.d/local.conf
owner: root
permission: 0644
content: |
fs.inotify.max_user_watches = 524288
- path: /etc/docker/daemon.json
owner: root
@844196
844196 / xavier.md
Last active July 23, 2017 10:34
ザビエルを思いついたら書くシートです

xavier.md

  • カートピアザビエル
  • ザビエル ザ・バーゲン in アクセスサッポロ
  • ホンダ ザビエル
  • ザビエルランド北海道
  • カスケードガレージの日江ザビエル
<?php
require $argv[1];
$propertyNames = array_map(
function ($property) { return $property->getName(); },
(new \ReflectionClass(Operation::class))->getProperties()
);
echo json_encode($propertyNames) . PHP_EOL;
# vim:set filetype=sh:
Setup::Pacman.group 'package' <<end
package.catalog_sync
package.upgrade
end
Setup::Pacman.group 'toolkit' <<end
toolkit.package_install vim
toolkit.package_install git