Real-world server response (Time to First Byte) latencies, as experienced by real-world users navigating the web. Leaderboard: March 2024 Sort by Host Client Websites Fast (p75 < 800ms) Average Slow (p75 >= 1800ms) See a missing hosting provider? Please help us identify how to surface them here. How do you measure real-world Time to First Byte? This report is powered by Chrome User Experience Repo
Gemfile での Ruby バージョンの指定を、値の直書きではなく .ruby-version からの読み込みに変更する設定です。 https://github.com/rubygems/rubygems/pull/6876 例えば、Rails アプリケーションなんかで Gemfile に .ruby-version と同じ 3.3.0 を指定しているようであれば、以下のように記述できます。 -ruby '3.3.0' +ruby file: '.ruby-version' asdf に類するものを使っているようであれば、ruby file: '.tool-versions' と記します。 https://github.com/rubygems/rubygems/pull/6898 この設定によって Ruby のアップデート時のバージョンの更新ポイントを減らすことができます。 なお、古
この件に関して言及している日本語記事が意外と無さそうだったのでメモしておきます。 (追記) よく見たらあった... この記事の3日目前に書かれた記事だったので普通に気づかなかったです😇 GitHub Actions は、Pull Request に対するレビューや自動コミットだけでなく、以下のように Cron Job に使うことができます。 例: しかしながら、リポジトリ自体に影響の無い処理を GitHub Actions で続けていると、最後にリポジトリに活動を行った60日後に処理が停止します。 以下のような文面のメールも届きます。 なので、もし完全に自動化したい場合は、おそらく 2ヶ月(以内)に1回何かしらの無駄なコミットをする ことで、Cron Job の自動停止も回避できるのではないかと思います(まだ自分は試していませんが...)。自動コミット用の GitHub Actions
HTTP通信など時間消費の大きい処理でユーザー体験を損なわないよう、そしてジョブキューを使う方法より簡素な方法がないか調べたところ、Githubでも採用されているrack.after_replyを知ることができました。 Performance at GitHub: deferring stats with rack.after_reply レスポンスを返した後に実行してくれるようで、バックグラウンド処理としてはSidekiqあたりが有名ですが、今回はそれらのgemを用いずこの方法を試してみました。 ミドルウェアとして用いるパターンGithubのブログで紹介されているコードに近いですが、ミドルウェアとして最小で実装するのは以下のような形になりました # app/middleware/after_response_middleware.rb class AfterResponseMiddlew
Ruby is a beautifully expressive language that not only tolerates many different dialects, but celebrates their diversity. It was never meant as a language to be written exclusively in a single style across all libraries, frameworks, or applications. If you or your team has developed a particular house style that brings you joy, you should cherish that. This collection of Rubocop styles is for tho
require 'rupkl' pkl = <<~'PKL' // From: // https://pkl-lang.org/main/current/language-tutorial/01_basic_config.html name = "Pkl: Configure your Systems in New Ways" attendants = 100 isInteractive = true amountLearned = 13.37 PKL RuPkl.load(pkl) # => # {:name=>"Pkl:Configure your Systems in New Ways", # :attendants=>100, # :isInteractive=>true, # :amountLearned=>13.37} File.open('sample.pkl', 'w')
ドットインストールのレッスンでも使っている、GitHub Codespacesの使い方についてまとめておきます。利用する前にざっと目を通しておくと良いでしょう。 GitHub Codespacesとは?GitHubが提供しているクラウド上の開発環境です。Codespaceを使えば、ブラウザだけで開発することも、手元のVS Codeからその環境に接続して開発していくこともできます。 これを使うことで、Dockerなどの仮想環境を導入しなくても、サーバー上での開発をすぐにはじめることができて便利ですね。公式サイトは以下からご覧ください。 利用料金はかかるの?月ごとに無料枠が設定されていて、それを超過すると有料となります。ただし、利用上限(デフォルトでは0ドル)の設定をしない限り、課金されることはありません。また、個人が利用する範囲ぐらいなら、超過することはほぼないと思います。 なお、現在の利用
SecurityKeeping secrets out of public repositoriesWith push protection now enabled by default, GitHub helps open source developers safeguard their secrets, and their reputations. Accidental leaks of API keys, tokens, and other secrets risk security breaches, reputation damage, and legal liability at a mind-boggling scale. In just the first eight weeks of 2024, GitHub has detected over 1 million le
Classroom(講義・演習)でGitHubを使うためのGitHub Classroomがある。 GitHub Classroomの紹介ビデオ 使い方の手順の参考URL Classroom guide GitHub Classroom Guide for Teachers GitHub Classroom Guide for Students 教員がする準備 方針 継続的にClassroomを管理するMaster Organizationと,年度ごとのClassroom管理をするOrganizationを設置する 年度ごとのClassroom Organizationに,各年度のTAや学生チームを登録する 設定手順 Master Organizationの準備 Organizationから登録 Master Organizationの名称例) “machine-learning-mast
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く