https://developer.chrome.com/blog/autoplay//**
* @param {number[]} nums
* @return {number}
*/
var minJumps = function(nums) {
const n = nums.length;
if (n === 1) return 0;
// 1. Build SPF (smallest prime factor) up to max(nums)
const maxVal = Math.max(...nums);
const spf = Array(maxVal + 1).fill(0);
for (let i = 2; i <= maxVal; i++) {
if (spf[i] === 0) {
spf[i] = i;
if (i * i <= maxVal) {
for (let j = i * i; j <= maxVal; j += i) {
if (spf[j] =#Create Backup of Main (optional)
git fetch --all --tags
git checkout main
git pull
git branch main-backup-$(date +%Y%m%d)
git push origin main-backup-$(date +%Y%m%d)
# Reset Main to dev:
git checkout main
git reset --hard origin/dev
git push --force-with-lease origin main我在使用GLM Coding Plan,数小时内完成过去需要数周的开发工作,赠送你1张7天AI Coding体验卡,一起来用吧:https://open.bigmodel.cn/activity/trial-card/6WHV88OFUX
2ced31df52d1411a8ac0a6799620b21b.PyJm3WTaZdlnDV39
53dc0c152c434111808493d898fc9691.pCnWPI9A5FsjbqHO// To execute JavaScript code inside a browser using Playwright, use the page.evaluate() method. This API runs a JavaScript function within the web page's context, allowing you to access browser globals like window and document
const href = await page.evaluate(() => document.location.href);
const status = await page.evaluate(async () => {
const response = await fetch(location.href);
return response.status;
});# using the --headed option --headed
npx playwright test --headed
const interval = setInterval(() => {
const widget = document.querySelector('.es-embed-root');
if (!widget?.shadowRoot) return;
const shadowRoot = widget.shadowRoot;
const posts = shadowRoot.querySelectorAll('.es-list-layout > div');
if (!posts.length) return;
clearInterval(interval);
injectStylesheet(shadowRoot);
}, 300);
function injectStylesheet(shadowRoot) {
if (shadowRoot.querySelector('#social-animation-css')) return;
/**
* @param {number[]} nums
* @return {number[]}
*/
var maxValue = function(nums) {
const n = nums.length;
const pref = Array(n);
const suff = Array(n);
// prefix max
pref[0] = nums[0];
for (let i = 1; i < n; i++) {
pref[i] = Math.max(pref[i-1], nums[i]);
}
// suffix min
suff[n-1] = nums[n-1];
for (let i = n-2; i >= 0; i--) {
suff[i] = Math.min(suff[i+1], nums[i]);
}
const ans = Array(n);
let start = 0;
for (let i = /* Remove extra space above footer */
{% assign medias = Module.FieldValues.MediaArchiveSource.Episodes %}
{% assign mediaSorted = medias | OrderBy: 'DisplayDateTime', 'desc' %}
<div class="pp-home-media">
<div class="bg-wrapper">
<span class="logomark1"></span>
<span class="logomark2"></span>
</div>
<div class="section-copy">{{Module.FieldValues.SectionCopy}}</div>
<div class="recent-medias">
{% for media in mediaSorted limit:1 %}
<div class="first-event">
<a href="/{{Module- Issue Summary
- Key Findings
- Root Cause Analysis
- Recommended Solution# HTTPSサイト公開直後のbotによる大量アクセスの原因と対策
## 1. 状況と発生事象
### 1.1 発生する状況
| 状況 | 発生事象 |
|---|---|
| HTTPS通信用のTLS証明書(慣例的に「SSL証明書」と呼称)を発行する | 証明書情報がCertificate Transparency Log(CT Log)に登録される |
| CT Logに登録される | 第三者が誰でも検索・取得可能な状態になる |
| CT Logを監視する攻撃botがドメインを発見する | 当該ドメインに対してHTTPアクセスを開始する |
### 1.2 攻撃の対象範囲
以下のすべてが対象となる。
- 本番サイト
- ステージング環境
- 内部向けにのみ共有されたページ
- SNS等で外部公開していないサイト
### 1.3 攻撃の発生タイミング
- ドメイン設定および証明書発行の直後
- 公開後も定期的に発生する
### 1.4 攻撃botの具体的動作
特定パスへの決め打ちアクセスを行う。例として以下のパスがある。
- `/.env`
- `/.giti/**
* Definition for singly-linked list.
* function ListNode(val, next) {
* this.val = (val===undefined ? 0 : val)
* this.next = (next===undefined ? null : next)
* }
*/
/**
* @param {ListNode} head
* @param {number} k
* @return {ListNode}
*/
var rotateRight = function(head, k) {
if (!head || !head.next || k === 0) return head;
// 1. Find length and tail
let n = 1;
let tail = head;
while (tail.next) {
tail = tail.next;
n++;
}
// 2. M- https://jakub.kr/writing/details-that-make-interfaces-feel-better{
"mcpServers": {
"firecrawl-mcp": {
"command": "npx",
"args": [
"-y",
"firecrawl-mcp"
],
"env": {
"FIRECRAWL_API_KEY": "fc-0b4d8657290a4ffdacee91bb1614089d"
}
},
"exa": {
"command": "npx",
"args": [
"-y",
"exa-mcp-server"
],
"env": {
"EXA_API_KEY": "e030e9c4-3bbb-47d1-ae23-7f12dce7ed2a"
}
},
"mem0-mcp": {
"url": "https://mcp.mem0.ai/mcp"
},
"playwright"