macOS + zsh で peco の設定をカスタマイズする
先日、macOS へ peco をインストールする というメモを書きました。 zsh のプラグインを追加し、peco をカスタマイズする手順をメモしておきます。
先日、macOS へ peco をインストールする というメモを書きました。 zsh のプラグインを追加し、peco をカスタマイズする手順をメモしておきます。
GitLab では「他の Git サーバ」や「別の GitLab」からデータをインポートすることが出来ます。 Import and migrate groups and projects には以下の記載があります。 SaaS 版の GitLab ではインポート機能がデフォルトで有効化されているようですが、Self-Managed 版の場合は「デフォルトで無効」と書かれています。
The import sources that are available to you by default depend on which GitLab you use:
- GitLab.com: all available import sources are enabled by default.
- GitLab Self-Managed: no import sources are enabled by default and must be enabled.
GitLab can import projects from these supported import sources.
Import source Description Bitbucket Cloud Using Bitbucket.org as an OmniAuth provider, import Bitbucket repositories. Bitbucket Server Import repositories from Bitbucket Server (also known as Stash). FogBugz Import FogBugz projects. Gitea Import Gitea projects. GitHub Import from either GitHub.com or GitHub Enterprise. GitLab export Migrate projects one by one by using a GitLab export file. Manifest file Upload a manifest file. Repository by URL Provide a Git repository URL to create a new project from.
今回は Self-Managed 版で「インポート機能を有効化する」手順をメモします。
先日、Ubuntu 24.04LTS へ peco をインストールする というメモを書きました。 今回は macOS + zsh 環境へ peco をインストールする手順をメモしておきます。
peco は Python で書かれた percol をベースに、同じコンセプトを Go 言語で実装したもの、だそうです。 percol も peco もかなり歴史があり、開発されてから 10 年程度経過しているようです。 peco の GitHub には以下のように書かれています。
peco
(pronounced peh-koh) is based on a python tool, percol.percol
was darn useful, but I wanted a tool that was a single binary, and forget about python.peco
is written in Go, and therefore you can just grab the binary releases and drop it in your $PATH.
peco
can be a great tool to filter stuff like logs, process stats, find files, because unlike grep, you can type as you think and look through the current results.For basic usage, continue down below. For more cool elaborate usage samples, please see the wiki, and if you have any other tricks you want to share, please add to it!
今回は peco を Ubuntu 24.04LTS へインストールする手順をメモしておきます。
シェル上で「単語単位の移動」を行うショートカットキーは Esc+F や Esc+B です。 ですが、連続して移動する場合は都度、Esc を押し直す必要があり、不便です。 その為、iTerm2 で別のショートカットキーを割り当てます。
macOS でコンテナ環境を利用するには Docker Desktop を利用する方法があります。 Docker Desktop の Personal 版 は無料ですが、以下の制限があります。
従業員数 250 人以上、または年間収益が10 00万ドルを超える企業でDocker Desktopを商用利用するには、有料サブスクリプション(Pro、Team、Business)が必要です。
代替手段として SUSE が開発している Rancher Desktop が挙げられます。 今回は macOS へ Rancher Desktop をインストールする手順をメモしておきます。
以前に以下のメモを書きました。
今回は Nginx では無く、Apache 2.4 で特定ディレクトリへアクセスがあった場合のみリバースプロキシ動作をさせ、デーモン化した Streamlit アプリケーションで応答する設定例をメモしておきます。 尚、mise と uv は事前にインストールされている前提とします。
mod_auth_mellon というモジュールを利用すると Apache でも SAML 認証による SSO を実施出来るようになります。 mod_auth_mellon を利用すると「Web サーバ上のコンテンツやアプリケーションに手を加えずに SSO 化出来る」為、便利です。 今回は Amazon Linux 2023 上で mod_auth_mellon を利用して Entra と SAML 認証し、SSO 出来るようにする手順をメモしておきます。
Streamlit ではプログラムからクエリパラメータを取得することも出来ます。 今回は以下を使って「クエリパラメータが指定された場合はボタンの名前を変更する」サンプルをメモしておきます。
Cisco CML には Tools Menu の中に Sample Labs
という機能があります。 予め所定のディレクトリにワークスペースの構成ファイル (YAML) を配置しておくことで Sample Labs
の一覧画面に表示され、それを Import
するだけですぐにワークスペースを用意出来ます。 また、CML 自体に「サンプルラボをロードする」という API は実装されています。
CML の操作を自動化するには cmlutils や virl2-client を利用することが出来ます。 ですが、Sample Labs
の機能は cmlutils や virl2-client には実装されていないようです。 その為、今回は直接、Python から Sample Labs
機能を利用する REST API を呼び出すサンプルスクリプトをメモしておきます。