Skip to content

Instantly share code, notes, and snippets.

View koron's full-sized avatar
🐱
meow

MURAOKA Taro koron

🐱
meow
View GitHub Profile
@koron
koron / delete-all-artifacts.sh
Created August 21, 2020 02:05
Shell script to delete all artifacts from GitHub Actions
#!/bin/bash
#
# Delete all artifacts
#
# USAGE: ./delete-all-artifacts.sh {YOUR_PERSONAL_ACCESS_TOKEN} {OWNER_REPO}
#
# Where `{YOUR_PERSONAL_ACCESS_TOKEN}` should have `workflow` and `repo` scopes
# to work this script. `public_repo` can be used instead of `repo`, when you
# want delete artifacts from public repositories only.
#
@koron
koron / vims-failed-tests-i-fixed.md
Created July 24, 2020 01:49
Vim's failed tests and its reasons, i fixed

Vim's failed tests and its reasons, i fixed

最近直したVimの失敗していたテストとその原因

  • Menu was shown in Japanese

    メニューが日本語表示されてた。

    • Test_menu
  • Test_add_remove_menu

@koron
koron / README.md
Last active July 6, 2020 03:08
Vimでgo.modを考慮した module & package 名の補完をする実験作

Getting started

  1. copy gocomplete.vim to your autoload folder. (ex: ~/.vim/autoload)

  2. setup completion for your command

    example for :Godoc command

    command! -nargs=* -range -complete=customlist,gocomplete#packages Godoc call s:Godoc(<f-args>)
set background=light
highlight clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "monochromenote"
" Normal group at first
highlight Normal ctermfg=DarkGrey ctermbg=LightGrey guifg=grey25 guibg=grey70
@koron
koron / 古いディスク
Last active June 2, 2020 11:35
ある日の bcd
Windows ブート マネージャー
--------------------------------
identifier {bootmgr}
device partition=\Device\HarddiskVolume1
description Windows Boot Manager
locale ja-JP
inherit {globalsettings}
default {current}
resumeobject {52f214a7-3405-11e9-a309-addbb0e74611}
@koron
koron / memerr.go
Created March 12, 2020 06:02
a program to check minimum VSZ limitation to start
package main
import (
"crypto/rand"
"fmt"
"io"
"os"
"runtime"
"time"
@koron
koron / Changes of profiles of Windows Terminal.md
Last active November 13, 2020 01:59
Windows Terminal の設定ファイルの差分

schema.json とか defaults.json がなんなのかは説明しない。
JSON Schema はソラで読めることが前提。
今後の更新にキャッチアップするかは不明。

1.4.2652.0-preview → 1.5.3142.0-preview

1.5 プレビュー版の変更です。

デフォルトブランチ名の変更

@koron
koron / wrap-limit-v
Last active January 18, 2020 14:42
apply cgroup memory limitation as `ulimit -v` virtual memory limitation
#!/bin/sh
set -eu
cgroup_rsslimit="/sys/fs/cgroup/memory/memory.limit_in_bytes"
if [ -r "$cgroup_rsslimit" ] ; then
rsslimit=`cat "$cgroup_rsslimit"`
vszlimit=`expr $rsslimit / 1024`
ulimit -v $vszlimit
@koron
koron / README.md
Last active August 16, 2020 04:31
How to custimize Windows Terminal

Where: %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

cd .config.\WindowsTerminal
mklink settings.json %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

for preview version: %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\LocalState\settings.json

何も終わっちゃいない! 何も終わっちゃいないんだ!
あたいにとって戦争は続いたままなんだ!
自分の金で買った好きな洋服をディスられている!
SNS上では、クソダサいだのみんな好き放題言いやがる!
あいつら何なんだ! 何も知らないくせに!
悪かった? 私の時代はいつ来るんだ!?
少なくともファッション誌には載ってた服だぞ!