Skip to content

Instantly share code, notes, and snippets.

View azu's full-sized avatar

azu azu

View GitHub Profile
@azu
azu / Medium: remove location hash.user.js
Created December 2, 2015 15:05
Medium: remove location hash
// ==UserScript==
// @name Medium: remove location hash
// @namespace http://efcl.info/
// @description Remove location hash from medium
// @include https://medium.com/*#*
// @version 1
// @grant none
// ==/UserScript==
function removeLocationHash(){
@azu
azu / README.md
Last active November 25, 2025 23:52
Claude Desktop IME Fix for Karabiner-Elements - 日本語IME変換時の誤送信を防ぐ設定

Claude Desktop IME Fix for Karabiner-Elements

Claude DesktopのOption+Space(クイックエントリー)を使用する際、日本語IMEの変換確定のEnterキーで誤ってメッセージが送信されてしまう問題を解決するKarabiner-Elementsの設定です。

Karabiner-Elements設定

{
  "title": "Claude Desktop IME Fix for Japanese Input",
  "rules": [
@azu
azu / ARCHITECTURE.md
Created October 19, 2025 14:33
Design Doc for RSS Reaeders based on Cloudflare Workers

Ruri Reader - System Architecture

1. システム概要

Ruri Readerは、Cloudflare Workers上で動作する高効率RSSリーダーです。エッジコンピューティングの利点を活用し、CPU時間を最小化しながら高速なフィード配信を実現します。

主要な設計方針

  • オンデマンドパース戦略: クロール時は軽量なメタデータ抽出のみ、クライアント要求時にフルパース
  • 階層型ストレージ: KV(キャッシュ)、D1(メタデータ)、R2(生XML)の適材適所配置
@azu
azu / README.md
Last active September 21, 2025 01:16
npm/GitHubパッケージのセキュリティ設定のリスクアセスメント
@azu
azu / README.md
Last active September 11, 2025 02:53
スタートアップ/企業の調べ方
@azu
azu / setup-release-pr-with-oidc.ts
Created September 7, 2025 04:33
setup script GitHub and Npm Trusted Publish
#!/usr/bin/env node --experimental-strip-types
import { promises as fs, readFileSync } from 'node:fs';
import { join } from 'node:path';
import { execSync } from 'node:child_process';
import { existsSync } from 'node:fs';
// 1Password account configuration
const OP_ACCOUNT = '**********YOUR********.1password.com';
// Check if 1Password CLI is available
@azu
azu / javascript-protocol-XSS.md
Last active August 25, 2025 21:15
<a href=javascript:alert(1) traget=_blank>XSS</a> behavior in modern browser.

Almost browsers prevent to XSS that is using javascript: protocol.

<a href=javascript:alert(location.origin) traget=_blank>XSS</a>

Demo: https://nuvjcp.csb.app/

Summary

@azu
azu / Bluesky: auto refresh.user.js
Last active August 21, 2025 12:01
Bluesky: auto refresh
// ==UserScript==
// @name Bluesky: auto refresh
// @namespace https://efcl.info
// @match https://bsky.app/*
// @grant none
// @version 1.0
// @author azu
// @description Auto Refresh when notifications is shown
// ==/UserScript==
const origSetInterval = window.setInterval;
@azu
azu / tsgolint-fork.md
Last active August 17, 2025 14:53
tsgolint fork

Fork Context

  1. tsgolintをforkしている
  2. typescript-goをforkしている
  3. ルールをforkしている
@azu
azu / README.md
Last active July 31, 2025 19:44
GitHub Package Registry and Npm Registry for same scoped does not work @ 2020-01-10

📝 I submit the same text to GitHub Support.


I want to use same scope for npm package and GitHub Package Registry.

For example, @org scope exist in npm and GitHub.

  • @org/foo-public package is public on npm registry
  • @org/bar-private package is private on GitHub Package Registry