Skip to content

Instantly share code, notes, and snippets.

View morisono's full-sized avatar

morisono

View GitHub Profile
@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

@morisono
morisono / !PayPay Reverse Engineering.md
Created June 6, 2025 08:49 — forked from Nerahikada/!PayPay Reverse Engineering.md
PayPay のリバースエンジニアリングに関するメモたち

PayPay リバースエンジニアリング

PayPay のリバースエンジニアリングに関するメモたち

PayPay の非公式 API ラッパーの一覧

Web ベース

📸小さな道具を組み合わせてWayland環境でスクリーンショット/スクリーンキャストを撮る

長らくX11とi3wmを使っていたが、重い腰を上げてWaylandに入門してみた。

Hyprland、Sway等、wl-toolsベースのWaylandコンポジタを使用している場合、スクリーンショット/スクリーンキャストを撮るには、grimwf-recorder 等のツールを使う。 小さなユーティリティを柔軟に組み合わせて目的を達成するやり方が面白かったのでここにメモする。

各種ユーティリティをインストールする