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"
@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
# 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'
},
{
@Joe-oss9527
Joe-oss9527 / editor.css
Created January 21, 2019 01:48 — forked from Hendrixer/editor.css
VS code custom CSS for theme
.composite-title, .composite-title, .vs-dark .monaco-workbench>.activitybar>.content {
background-color: rgba(40, 44, 52, 1) !important;
}
.tabs-container, .tab, .tab.active, .title-actions, .tablist, .tabs-container, .tabs, .composite.title {
background-color: rgba(40, 44, 52, 1) !important;
}
.tab.active, .tab {
border-right: 0px !important;
@Joe-oss9527
Joe-oss9527 / 1-easy.js
Created June 5, 2018 12:59 — forked from nybblr/1-easy.js
3 examples of using Async Generators and Async Iteration in JavaScript!
// Create a Promise that resolves after ms time
var timer = function(ms) {
return new Promise(resolve => {
setTimeout(resolve, ms);
});
};
// Repeatedly generate a number starting
// from 0 after a random amount of time
var source = async function*() {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.js"></script>
</head>
<body>