Skip to content

Instantly share code, notes, and snippets.

@noromanba
noromanba / pip-backup.sh
Last active June 6, 2026 17:20
backup pip packages and version
#!/usr/bin/env bash
# backup pip packages and version
# @version 2026.6.5.0
# @license CC0 Univ PD https://creativecommons.org/publicdomain/zero/1.0/
# @author noromanba https://noromanba.github.io
# require uv
requirements="$HOME"/requirements.txt
# avoid `uv pip freeze`
# c.f.
@noromanba
noromanba / pip-autoremove.sh
Created June 5, 2026 18:45
pseudo `pip-autoremove`
#!/usr/bin/env bash
# pseudo `pip-autoremove`
# @version 2026.05.29.0
# @license CC0 Univ PD https://creativecommons.org/publicdomain/zero/1.0/
# @author noromanba https://noromanba.github.io
set -eCx
# pseudo pip-autoremove
# require uv
@noromanba
noromanba / upd.sh
Last active August 2, 2022 15:43
bulk upgrade whole package managers
#!/usr/bin/env bash
# bulk upgrade whole package managers
# @version 2022.8.2.1
# @license CC0 Univ PD https://creativecommons.org/publicdomain/zero/1.0/
# @author noromanba https://noromanba.github.com
set -eCx
apt update && apt upgrade "$@"
# pseudo pip-upgrade; c.f.
@noromanba
noromanba / pip-upgrade.sh
Last active June 6, 2026 21:38
pseudo `pip-upgrade`
#!/usr/bin/env bash
# pseudo `pip upgrade`
# @version 2026.6.5.2
# @license CC0 Univ PD https://creativecommons.org/publicdomain/zero/1.0/
# @author noromanba https://noromanba.github.io
set -eCx
# require uv
# [1] avoid `uv pip freeze`
@noromanba
noromanba / haiku_downloader.user.js
Last active March 25, 2019 22:20 — forked from Akkiesoft/haiku_downloader.user.js
backup Hatena Haiku to json for UserScript
// ==UserScript==
// @name Haiku Downloader
// @namespace https://kokuda.org/
// @version 0.1
// @description 無茶しやがって
// @author Akkiesoft
// @match http://h.hatena.ne.jp/*
// @require https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js
// @grant none
// ==/UserScript==
@noromanba
noromanba / pubrasche.user.js
Last active August 9, 2018 14:12
complement title on reader of publus.jp for UserScript
// ==UserScript==
// @name Pubrasche
// @namespace https://noromanba.github.com
// @description complement title on reader of publus.jp for UserScript
// @include *://jumpbookstore.com/client_info/SHUEISHA/html/player/viewer.html*
// @grant none
// @noframes
// @run-at document-end
// @version 2018.8.8.1
// @homepage https://gist.github.com/noromanba/c2f24e19ae24ac5b6a1e6f578ca98191
@noromanba
noromanba / hatenahaiku-spam-filter.user.js
Last active September 21, 2018 17:25
Hatena Haiku spam filter for UserScript
// ==UserScript==
// @name Hatena Haiku spam filter
// @namespace https://noromanba.github.com
// @description Hatena Haiku spam filter for UserScript
// @include *://h.hatena.ne.jp/*
// @exclude *://h.hatena.ne.jp/setting/*
// @exclude *://h.hatena.ne.jp/guide
// @exclude *://h.hatena.ne.jp/help/*
// @grant none
// @noframes
@noromanba
noromanba / ig-denoiser.user.js
Last active June 18, 2021 20:25
hidden user comments on instagram.com for UserScript
// ==UserScript==
// @name IG denoiser
// @namespace https://noromanba.github.com
// @description hidden user comments on instagram.com for UserScript
// @include https://www.instagram.com/*
// @grant none
// @noframes
// @run-at document-start
// @version 2019.5.28.1
// @homepage https://gist.github.com/noromanba/1f369b316c1b43bdf0e337c6c5af1c80
@noromanba
noromanba / hatenalet-indicator-reviver.user.js
Last active July 1, 2024 11:54
revive "[saving...]" indicator on Hatena::Let for UserScript
// ==UserScript==
// @name Hatena::Let indicator reviver
// @namespace https://noromanba.github.com
// @description revive "[saving...]" indicator on Hatena::Let for UserScript
// @include *://let.hatelabo.jp/l
// @grant none
// @noframes
// @run-at document-end
// @version 2018.5.14.1
// @homepage https://gist.github.com/noromanba/ceaf1067aea7c3855ce7b57fe5ae1887
@noromanba
noromanba / fetch-with-timeout.md
Created May 11, 2018 05:24
fetch w/ request timeout by AbortController

fetch w/ timeout sample

fetch w/ request timeout by AbortController

code

// @description fetch w/ request timeout by AbortController
// @license     CC0 Univ PD https://creativecommons.org/publicdomain/zero/1.0/
// @author      noromanba   https://noromanba.github.com
// @version 2018.5.11.0