ni
- use the right package manager
Original: https://github.com/antfu/ni
rg "https://s3.amazonaws.com/github/ribbons/" --files-with-matches -0 | xargs -0 sed -i '' 's/https:\/\/s3.amazonaws.com\/github\/ribbons\//https:\/\/github.blog\/wp-content\/uploads\/2008\/12\//g' |
ni
- use the right package manager
Original: https://github.com/antfu/ni
function gh-issue-checkout(){ | |
INITIAL_QUERY="$1" | |
GH_ISSUE_LIST="gh issue list -S" | |
FZF_DEFAULT_COMMAND="$GH_ISSUE_LIST '$INITIAL_QUERY'" \ | |
gh issue list | \ | |
fzf --layout=reverse \ | |
--bind "change:reload:$GH_ISSUE_LIST {q} || true,ctrl-o:execute(echo {} | xargs gh issue view --web)+abort"\ | |
--preview "gh issue view {1} | bat --color=always --style=grid --file-name O.md" \ | |
--header 'Press Ctrl+O to open issue' \ | |
| awk '{print $1}' | xargs -IXXX gh issue develop XXX --name "feature/XXX" --checkout |
# https://github.com/ajeetdsouza/zoxide | |
export _ZO_FZF_OPTS=' | |
--no-sort --height 75% --reverse --margin=0,1 --exit-0 --select-1 | |
--bind ctrl-f:page-down,ctrl-b:page-up | |
--bind pgdn:preview-page-down,pgup:preview-page-up | |
--prompt="❯ " | |
--color bg+:#262626,fg+:#dadada,hl:#f09479,hl+:#f09479 | |
--color border:#303030,info:#cfcfb0,header:#80a0ff,spinner:#36c692 | |
--color prompt:#87afff,pointer:#ff5189,marker:#f09479 | |
--preview "([[ -e '{2..}/README.md' ]] && bat --color=always --style=numbers --line-range=:50 '{2..}/README.md') || exa --color=always --group-directories-first --oneline {2..}" |
// ==UserScript== | |
// @name GitHub Issue: Open VSCode | |
// @namespace info.efcl.open-vscode- | |
// @match https://github.com/*/*/issues/* | |
// @match https://github.com/*/*/pull/* | |
// @grant GM_download | |
// @grant GM_openInTab | |
// @grant GM_registerMenuCommand | |
// @version 1.0 | |
// @author azu |
It is a script to convert a TypeScript library project to a Node.js Dual CommonJS/ES module packages.
This script aim to convert following project:
import fetch from "node-fetch"; // Node.js 18 just remove line | |
const CIRCLECI_TOKEN = process.env.CIRCLECI_TOKEN | |
const ORG_NAME = process.env.ORG_NAME | |
const fetchProjectList = (orgName = ORG_NAME) => { | |
return fetch(`https://circleci.com/api/v2/insights/gh/${orgName}/summary`, { | |
headers: { "Circle-Token": `${CIRCLECI_TOKEN}` } | |
}).then(res => res.json()).then(json => json.all_projects); | |
}; | |
const fetchProjectEnv = (orgName, project) => { |
// MIT LICENSE ©️ azu | |
// Usage: | |
// 1. Create `MERGE_REPLY_LABEL` | |
// 2. Upload GAS | |
// 3. Update CONFIG | |
// 4. Execute `createTimeTrigger` function on GAS | |
// === CONFIG ==== | |
// Interval hours | |
const FETCH_INTERVAL_HOURS = 12; | |
const YOUR_MAIL_ADDRESS = "{yourmail}@gmail.com" |
import { Client } from "@notionhq/client" | |
import dayjs from "dayjs" | |
const notion = new Client({ | |
auth: process.env.NOTION_API_TOKEN, | |
}); | |
/** | |
* | |
* @param {title} title |
*://ranking.goo.ne.jp/* | |
*://my-best.com/* | |
*://sakidori.co/* | |
*://wowma.jp/* | |
*://osusume.mynavi.jp/* | |
*://pc.moppy.jp/* | |
*://heim.jp/* | |
*://www.esquire.com/* | |
*://epark.jp/* | |
*://iecolle.com/* |