Skip to content

Instantly share code, notes, and snippets.

GPT Codex Sound Notification

hooks/notify.sh

#!/usr/bin/env bash
payload="${1:-$(cat)}"

DEFAULT_CODEX_SOUND="<your_sound_here.wav>"
# Set CODEX_CUSTOM_SOUND in your shell config (e.g. ~/.zshrc;~/.bashrc;...) to override the alert path.
CODEX_CUSTOM_SOUND="${CODEX_CUSTOM_SOUND:-$DEFAULT_CODEX_SOUND}"
@Joe-oss9527
Joe-oss9527 / statusline-command.sh
Created August 10, 2025 09:45 — forked from dhkts1/statusline-command.sh
statusline command for Claude Code
#!/bin/bash
# Make sure this file is executable: chmod +x ~/.claude/statusline-command.sh
# Claude Code statusline script - optimized with colors and emojis
# Reads JSON input from stdin and outputs a formatted status line to stdout
# Add to your ~/.claude/settings.json
#
# "statusLine": {
# "type": "command",
# "command": "bash ~/.claude/statusline-command.sh"
networks:
rustdesk-net:
external: false
services:
hbbs:
container_name: hbbs
ports:
- 21115:21115
@Joe-oss9527
Joe-oss9527 / download_fusion.sh
Created October 16, 2024 11:17 — forked from jetfir3/download_fusion.sh
Download VMware Fusion Pro Without a Broadcom Account
#!/usr/bin/env bash
# Download VMware Fusion Pro without Bcom account
#
# By default, the latest verson will be downloaded, extracted and prepped for install
# Use '-k' to keep download file compressed, exiting after download
# Use '-v VERSION' to specify desired version (13.0.0 or higher required)
KEEP_COMPRESSED=false
USER_VERSION=""
@Joe-oss9527
Joe-oss9527 / npm.taobao.sh
Created January 18, 2024 12:30 — forked from long-woo/npm.taobao.sh
npm 淘宝镜像配置
npm set registry https://registry.npmmirror.com # 注册模块镜像
npm set disturl https://npmmirror.com/mirrors/node/ # node-gyp 编译依赖的 node 源码镜像
## 以下选择添加
npm set sass_binary_site https://npmmirror.com/mirrors/node-sass/ # node-sass 二进制包镜像
npm set electron_mirror https://npmmirror.com/mirrors/electron/ # electron 二进制包镜像
npm set puppeteer_download_host https://npmmirror.com/mirrors # puppeteer 二进制包镜像
npm set chromedriver_cdnurl https://npmmirror.com/mirrors/chromedriver/ # chromedriver 二进制包镜像
npm set operadriver_cdnurl https://npmmirror.com/mirrors/operadriver/ # operadriver 二进制包镜像
npm set phantomjs_cdnurl https://npmmirror.com/mirrors/phantomjs/ # phantomjs 二进制包镜像
@Joe-oss9527
Joe-oss9527 / README.md
Created July 8, 2021 14:21 — forked from vitorbal/ README.md
jscodeshift transform to add metadata to all ESLint rules

jscodeshift transform to add metadata to all ESLint rules

This transform was created to programmatically add metadata to all ESLint rules (#5417).

here's a live example for the no-trailing-spaces rule.

Please note:

  • The rule mappings were initially created by scraping eslint.org/docs/rules using jsdom.
  • The scraping assumes all fixable rules are of fixable type whitespace. This is not true for 4 rules, which were fixed manually afterwards:
    • semi
  • no-extra-semi
@Joe-oss9527
Joe-oss9527 / index.html
Created March 18, 2020 03:44
Understanding Event Emitters
<div class="Wrapper">
<div id="create_root"></div>
<button>Fetch New Repo</button>
</div>
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@Joe-oss9527
Joe-oss9527 / .cz-config.js
Created April 8, 2019 08:18 — forked from leohxj/.cz-config.js
cz-customizable with emoji
'use strict';
module.exports = {
types: [
{
value: 'WIP',
name : '💪 WIP: Work in progress'
},
{
# Use root/example as user/password credentials
version: '3.1'
services:
db:
image: mariadb
restart: always
# 请加ports, 否则客户端无法连接
ports: