Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unorganized Memos #958

Open
mimikun opened this issue Nov 11, 2024 · 64 comments
Open

unorganized Memos #958

mimikun opened this issue Nov 11, 2024 · 64 comments
Assignees

Comments

@mimikun
Copy link
Owner

mimikun commented Nov 11, 2024

一番下にジャンプ

@mimikun mimikun self-assigned this Nov 11, 2024
@mimikun mimikun pinned this issue Nov 11, 2024
@mimikun

This comment was marked as spam.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as duplicate.

@mimikun

This comment was marked as duplicate.

@mimikun

This comment was marked as duplicate.

@mimikun

This comment was marked as duplicate.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as duplicate.

@mimikun

This comment was marked as duplicate.

@mimikun

This comment was marked as duplicate.

@mimikun

This comment was marked as duplicate.

@mimikun

This comment was marked as outdated.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as duplicate.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun mimikun unpinned this issue Dec 3, 2024
@mimikun mimikun moved this to Issue in Pinned issues Dec 3, 2024
@mimikun mimikun closed this as completed by moving to Issue in Pinned issues Dec 3, 2024
@mimikun mimikun reopened this Dec 3, 2024
@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun
Copy link
Owner Author

mimikun commented Dec 12, 2024

chezmoiで変なエラーが出たのを直した

結論: 組み込みのgitleaksの問題

```txt
no gitleaks config found in path .gitleaks.toml, using default gitleaks config

finding = highlights
path = lua/plugins/configs/todo-comments-nvim/opts.lua
rule-id = generic-api-key

finding = possible_values.only_left
path = lua/config/neovide.lua
rule-id = generic-api-key
```

@mimikun
Copy link
Owner Author

mimikun commented Dec 12, 2024

Linuxで、各言語のツールをビルドする時、リソース制限をかけたい

### 背景
OSがWSL2(Ubuntu)で、メモリ2GB、スワップがHDDのハードディスクに10GBという、リソースに極端な制限があるデバイスを使用しています
rustやgoのコンパイルではWindows側でメモリが100%張り付いて、使用率が20%超えることがあります。
WSL2(Ubuntu)側でrustやgoのコンパイルプロセスに
CPUとメモリの使用率に制限をかけて、動作の不安定化を防ぎたいです。
以下のワードでMicrosoft CopilotやGoogle検索でそれぞれ調べてみました。

```txt
how to set cpu and memory limit to cargo build in linux
how to set cpu and memory limit to rust compile in linux
how to set cpu and memory limit to golang compile in linux
```

#### 解決策1

cgroupで制限をかける


ちなみに極端な制限の解決についてはより良いところ(自分の金をプラスアルファして仕事用PCのスペックを盛れる等)への転あるいは起によってしか解決できないので難しいです。

@mimikun
Copy link
Owner Author

mimikun commented Dec 12, 2024

@mimikun

This comment was marked as resolved.

@mimikun
Copy link
Owner Author

mimikun commented Dec 13, 2024

llaのイシュー

llaを実行すると `~` (チルダ) というディレクトリが生成されます。
これは仕様ですか?

私の場合、`lla` はすでに別のコマンドのabbrで使っているため、 `\lla` と実行しています。

`alias ls eza`
`abbr -a -- lla 'ls -l -a --git-ignore'`

@mimikun
Copy link
Owner Author

mimikun commented Dec 13, 2024

Nerd Fonts をアップデートする

scoopでインストールしてしまったほうが楽。
https://github.com/matthewjberger/scoop-nerd-fonts

あるいはpowershellスクリプトで自動化する。
https://github.com/jpawlowski/nerd-fonts-installer-PS

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment has been minimized.

@mimikun

This comment was marked as resolved.

@mimikun
Copy link
Owner Author

mimikun commented Dec 19, 2024

@mimikun
Copy link
Owner Author

mimikun commented Dec 19, 2024

@mimikun

This comment was marked as resolved.

@mimikun
Copy link
Owner Author

mimikun commented Dec 26, 2024

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun

This comment was marked as resolved.

@mimikun
Copy link
Owner Author

mimikun commented Jan 15, 2025

@mimikun
Copy link
Owner Author

mimikun commented Jan 20, 2025

@mimikun
Copy link
Owner Author

mimikun commented Jan 22, 2025

@mimikun
Copy link
Owner Author

mimikun commented Jan 23, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Issue
Development

No branches or pull requests

1 participant