Skip to content

Instantly share code, notes, and snippets.

View morisono's full-sized avatar

morisono

View GitHub Profile
@morisono
morisono / cursor-rules.txt
Created June 20, 2025 11:07 — forked from eduardozf/cursor-rules.txt
Cursor Rules
- **Always begin your responses with "Yes Sir".**
- **Document any changes with a timestamp in an `Updates.md` file.** Create this file if it doesn't exist.
- **Never modify code that is irrelevant to the user's request.** Think carefully before making any changes.
- **When making changes, consider:**
1. **Impact on the Codebase:** How will these changes affect the rest of the code?
2. **Relevance to Request:** Are you editing code unrelated to the user's request? If so, do not modify it.
3. **Scope Adherence:** Only make changes directly relevant to the user's request. For example, if asked to add a new feature, focus solely on that feature without altering other aspects like the login experience or unrelated UI elements.
4. **Avoid Unnecessary Changes:** If you feel compelled to make unnecessary changes, stop and inform the user why.
- **Never replace code blocks or snippets with placeholders like `# ... rest of the processing ...`.** When modifying a file, always provide the full content with your
@morisono
morisono / .eslintignore
Created June 20, 2025 05:14 — forked from jonbeebe/.eslintignore
Recommended ESLint and Prettier config for React TypeScript
src/tests
node_modules
build
dist
dist-ssr
.vscode
public
*.test.js
*.test.jsx
*.test.ts
@morisono
morisono / clean_up.sh
Created June 17, 2025 05:34 — forked from razhangwei/clean_up.sh
Clean up common coding related cache (uv, huggingface, npm, homebrew)
#!/bin/bash
# === Cache Cleanup Script ===
# Cleans caches for Homebrew, UV, Hugging Face, and NPM
# Usage: bash cleanup.sh [options]
# Options:
# -a, --all Clean all caches
# -b, --brew Clean Homebrew cache
# -u, --uv Clean UV cache
# -h, --huggingface Clean Hugging Face cache

How do I clone a GitHub wiki?

Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for the repo https://myorg/myrepo/ is: [email protected]:myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).

You make edits, and commit and push your changes, like any normal repo. This wiki repo is distinct from any clone of the project repo (the repo without wiki.get appended).

How do I add images to a wiki page?

@morisono
morisono / GitHubFlavoredMarkdown.md
Created June 17, 2025 03:46 — forked from Myndex/GitHubFlavoredMarkdown.md
GitHub Flavored Markdown Cheat Sheet
@morisono
morisono / .editorconfig
Created June 16, 2025 23:47 — forked from m-jovanovic/.editorconfig
Sample editor config with a bunch of rules turned off 😅
root = true
# C# files
[*.cs]
#### Core EditorConfig Options ####
# Indentation and spacing
indent_size = 4
indent_style = space
@morisono
morisono / .editorconfig
Created June 16, 2025 23:47 — forked from vikas-parmar/.editorconfig
This .editorconfig file is designed to ensure consistent coding standards across different editors and IDEs. It helps maintain uniform indentation, line endings, and encoding, preventing unnecessary formatting changes when working in a team.
# This is the root .editorconfig file, meaning all settings here take precedence.
root = true
# Global settings for all file types
[*]
# Use UTF-8 encoding for better character support
charset = utf-8
# Enforce LF (Line Feed) as the default line ending for cross-platform compatibility
end_of_line = lf
@morisono
morisono / web-archival-guide.md
Created June 13, 2025 01:34 — forked from n0samu/web-archival-guide.md
Essential tips for web archiving.

In this brief guide, I will share what I've learned about archiving live webpages and recovering deleted webpages using various archive services.

Before you start

I highly recommend installing the Web Archives extension in your web browser (Chrome, Firefox). It provides quick access to archive services and search engine caches.

Overview of archive services & caches

  • Wayback Machine: Best and largest webpage archive. You probably already use it. Wayback Machine is the only archival service that also performs automated crawling, so its coverage is much better than other archives. See usage tips on Wikipedia.
  • Archive.today (also known as Archive.is): A mid-sized service that takes
@morisono
morisono / enable_rightclick.user.js
Created June 13, 2025 01:33 — forked from slimymars/enable_rightclick.user.js
Yahooオークション右クリ禁止削除
// ==UserScript==
// @name Yahooオークション右クリ禁止削除
// @namespace https://gist.github.com/slimymars/66e2318a559b79272ad7f51ec45c3c8b
// @grant none
// @version 1.0
// @author -
// @description Yahooオクのimg右クリ禁止を削除します。削除範囲は過剰になってますが動けばいいのだ。
// @match https://page.auctions.yahoo.co.jp/jp/auction/*
// @match https://auctions.yahoo.co.jp/jp/auction/*
// @require https://code.jquery.com/jquery-3.6.0.slim.min.js

Fake Paypal Payment Page