Skip to content

Instantly share code, notes, and snippets.

View 844196's full-sized avatar

Masaya Takeda 844196

  • ใปใ‚“ใซใ‚ƒใ‚‰็”ฃๆฅญ
  • Sapporo, Japan
  • 02:27 (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