Skip to content

Instantly share code, notes, and snippets.

View wilbeibi's full-sized avatar
🍼
0 */2 * * * changeDiaper

Hongyi Shen wilbeibi

🍼
0 */2 * * * changeDiaper
View GitHub Profile
@wilbeibi
wilbeibi / SKILL.md
Created January 13, 2026 21:58
Dayflow SQLite Claude Code
name description
dayflow-review
Query and analyze Dayflow time tracking database. Generate daily/weekly summaries, productivity insights, time analysis, and export reports to Obsidian. Use when analyzing time usage, reviewing productivity patterns, or creating timeline summaries from the Dayflow app.

Dayflow Review Skill

This skill provides guidance for querying the Dayflow SQLite database to analyze time tracking data, generate reports, and create Obsidian notes.

Database Location

@wilbeibi
wilbeibi / SKILL.md
Created January 1, 2026 01:11
m-cli Claude Code Skill - macOS command line control
name description allowed-tools
m-cli
Swiss Army Knife for macOS - control system functions, manage utilities, and tweak macOS preferences from the command line. Use when user needs to manage macOS settings like dark mode, dock, wifi, battery, display, volume, or any other system preference via CLI.
Bash

m-cli: macOS Command Line Tool

Overview

@wilbeibi
wilbeibi / kimi-cli.fish
Created November 2, 2025 05:23
~/.config/fish/conf.d/kimi-cli.fish
# Kimi CLI integration for fish: toggle a prefix to run commands via `kimi -c`
# Inspired by MoonshotAI/zsh-kimi-cli
set -q __KIMI_CLI_PREFIX_CHAR; or set -g __KIMI_CLI_PREFIX_CHAR '✨'
set -q __KIMI_CLI_PREFIX; or set -g __KIMI_CLI_PREFIX "$__KIMI_CLI_PREFIX_CHAR "
set -g __KIMI_CLI_PREFIX_ACTIVE 0
function __kimi_cli_run --description 'Run the given argv via Kimi CLI'
if not type -q kimi
echo "kimi: command not found" >&2
@wilbeibi
wilbeibi / edge_ua_in_bing.js
Last active February 16, 2023 05:26
Use new Bing in any browsers, written by chatGPT
// ==UserScript==
// @name Change User Agent to Edge for Microsoft websites
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Changes the user agent to Edge when visiting Microsoft websites
// @match https://*.bing.com/*
// @match https://*.microsoft.com/*
// @match https://*.outlook.com/*
// @grant none
// ==/UserScript==
@wilbeibi
wilbeibi / auto-capture.scpt
Created March 22, 2022 20:53 — forked from jonobr1/auto-capture.scpt
A small AppleScript to take a screenshot every 30 seconds for 8 hours. Saves to an Image Sequence in a desktop folder. Great for recording your workday.
set dFolder to "~/Desktop/screencapture/"
do shell script ("mkdir -p " & dFolder)
set i to 0
repeat 960 times
do shell script ("screencapture " & dFolder & "frame-" & i & ".png")
delay 30 -- Wait for 30 seconds.
set i to i + 1
end repeat
@wilbeibi
wilbeibi / init.lua
Last active May 16, 2021 03:10
dropbox ignore hammerspoon config
-- Ignore generated target/ in certain Dropbox folders.
function igonreWater(paths, flags)
for idx, path in pairs(paths) do
if path:sub(-6) == "target" and flags[idx].itemIsDir == true and flags[idx].itemRenamed == true and flags[idx].itemXattrMod ~= true then
print("Ignoring" .. path)
hs.execute(string.format("xattr -w com.dropbox.ignored 1 '%s'", path))
end
end
end
use std::future::Future;
use std::pin::Pin;
use std::task::{Context, Poll};
use std::time::{Duration, Instant};
struct Inspect<F>(F);
impl<F: Future> Future for Inspect<F> {
type Output = F::Output;
@wilbeibi
wilbeibi / show-douban-id-and-gender.js
Created December 9, 2019 08:33 — forked from naoyeye/show-douban-id-and-gender.js
显示豆瓣用户id和性别
// ==UserScript==
// @name 显示豆瓣用户id和性别
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author J.Y Han
// @match https://www.douban.com/people/*
// @grant showDoubanIdAndGender
// ==/UserScript==
@wilbeibi
wilbeibi / ansible.cfg
Created January 23, 2019 06:07 — forked from nazarewk/ansible.cfg
Ansible SSH Agent forwarding with Jump (bastion) host
[defaults]
sudo_flags = SSH_AUTH_SOCK="$SSH_AUTH_SOCK" -H -S -n
[ssh_connection]
ssh_args=-o ForwardAgent=yes
@wilbeibi
wilbeibi / k8s-1.7.5-dashboard.yaml
Created October 9, 2018 21:12
nodeport to 32036
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,