Archive Tags About Subscribe

sacre

author biography

  • Jan 30
    sitemap.xmlをダンプする

    あるサイト配下のページを全部一覧したいときはsitemap.xmlを参照することになるが、sitemapがツリー構造になってたり、マイナーな

  • Jan 27
    [gcloud] module 'importlib' has no attribute 'util'

    gcloudでこんなエラーがでる $ gcloud components update Traceback (most recent call last): File "/Users/mossan/google-cloud-sdk/lib/gcloud.py", line 104, in <module> main() File "/Users/mossan/google-cloud-sdk/lib/gcloud.py", line 62, in main from googlecloudsdk.core.util import encoding File "/Users/mossan/google-cloud-sdk/lib/googlecloudsdk/__init__.py", line 23, in <module> from googlecloudsdk.core.util import importing File "/Users/mossan/google-cloud-sdk/lib/googlecloudsdk/core/util/importing.py", line 23, in <module> import imp File "/usr/local/Cellar/python@3.9/3.9.1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/imp.py", line 23, in <module> from importlib import util

  • Jan 27
    gitconfig alias の '!' の意味

    aliasを設定する時の ! は「以下をシェルコマンドとして扱って」という意味。 例 パイプもできる $ git config --global alias.ack '! git ls-files --others --cached --exclude-standard | ack -x' この例はgit管理さ

  • Jan 26
    athena(presto)のテーブル定義に出てくるSerdeとは?

    athena(hive)のテーブル定義で出てくる。JsonSerDeみたいなもの。 ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe' WITH SERDEPROPERTIES ( 'serialization.format' = '1' ) LOCATION 's3://bucketistyu/data/' 調べたらシリアライザ(SERia

  • Jan 26
    DiskへのWriteが重そうな処理を特定する

    やたら処理が遅い場合の調査で、writeが頻繁に走ってないかを確認する。 まず疑わしい処理が本当にwriteが多いことを確認する $ dstat --top-io -d 5 をた

  • Jan 24
    curlでURLが200以外を返した場合にシェルの終了コードを1以上にする

    --fail をつければよい こんなコマンドでURLが200を返すかどうか確認するだけのコマンドになる $ curl --silent --fail --output /dev/null --head {{ URL }} 参考 stdout - Can I make cURL fail with an exitCode different than 0 if

  • Jan 22
    tailwindでハンバーガーメニューをつくる

    途中までやったところのメモ 初めてでもわかるTailwindcss入門(2)ナビゲーションバー | アールエフェクト const Nav = () => ( <header className="container mx-auto text-black"> <nav className="flex justify-between items-center"> <div

  • Jan 18
    ChromeでURLバーからdeepl翻訳をする

    deeplのサイトはURLに翻訳文言を埋め込める chromeのタブに翻訳したい文章をいれるとdeeplの検索結果ページにいけるように設定でき

  • Jan 18
    lsofでプロセスが開いてるfdを一覧する

    ほとんどコンテナとかFaasでの作業になるとこういうのはどんどん忘れていく。 たとえば iTerm のプロセスが触ってるファイルディスクリプタを見たい場合

  • Jan 18
    jqで正規表現を使ってフィルタする

    select と test をつかってフィルタする 例 こんなjsonがあったとして。 $ cat /tmp/_ { "monitors": [ { "id": "mysql", "name": "mysql-freeable_memory" }, { "id": "redis10", "name": "redis10-freeable_memory" }, { "id": "redis11", "name": "redis11-freeable_memory" } ] } たとえば monitorsオブ

← Newer Posts Older Posts →

© Copyright 2022 site_author

Powered by Hugo Theme By nodejh