Skip to content

Instantly share code, notes, and snippets.

View jack06215's full-sized avatar
:octocat:
Learning nushell

Jack Cho jack06215

:octocat:
Learning nushell
View GitHub Profile
@jack06215
jack06215 / config.nu
Created September 26, 2025 10:33
Nushell config v2
#!/usr/bin/env nu
let custom_themes = ([$nu.default-config-dir "themes"] | path join)
# ─[ basic themes ]─────────────────────────────────────────────────────────
# these themes are useable across different terminal color schemes, without
# needing to make any adjustments on the fly.
let dark_theme = {
# color for nushell primitives
@jack06215
jack06215 / whisper-mic
Created September 19, 2025 02:26
Whisper realtime transcribe
#!/usr/bin/env zsh
# shellcheck shell=bash
whisper-stream \
-m ~/tools/llm-models/ggml-large-v3-turbo.bin \
-l ja \
-t 4 \
--step 1000 \
--length 6000 \
--keep 300 \
--vad-thold 0.9 \
@jack06215
jack06215 / transcribe-yt
Created September 19, 2025 02:00
Transcribe YouTube speech
#!/usr/bin/env zsh
# shellcheck shell=bash
if [ -z "$1" ]; then
echo "Usage: $0 <YouTube-URL> [language]"
exit 1
fi
URL="$1"
LANG="${2:-en}" # default to English if no second argument is given
@jack06215
jack06215 / .zshrc
Last active September 4, 2025 11:57
zshrc config
# shellcheck shell=bash
# ==== Private credentials (never commit these) ================================
[ -f $HOME/.zshrc.local ] && source $HOME/.zshrc.local
# Add in zsh plugins
source $HOMEBREW_PREFIX/opt/zinit/zinit.zsh
zinit light zsh-users/zsh-syntax-highlighting
zinit light Aloxaf/fzf-tab
@jack06215
jack06215 / config.nu
Created August 31, 2025 10:21
nushell config
# Nushell Config File
#
# version = "0.95.0"
# For more information on defining custom themes, see
# https://www.nushell.sh/book/coloring_and_theming.html
# And here is the theme collection
# https://github.com/nushell/nu_scripts/tree/main/themes
let dark_theme = {
# color for nushell primitives
@jack06215
jack06215 / starship.toml
Last active August 31, 2025 10:17
Starship config
format = """
$os\
$username\
$hostname\
$kubernetes\
$directory\
$git_branch\
$git_status\
$fill\
$time\
prSections:
- title: My Pull Requests
filters: is:open author:@me
- title: Needs My Review
filters: is:open review-requested:@me
- title: Involved
filters: is:open involves:@me -author:@me
issuesSections:
- title: My Issues
filters: is:open author:@me
@jack06215
jack06215 / surfingkey.js
Last active August 19, 2025 14:21
surfingkey
// -- Utilities --
const unmapKeys = (keys) => keys.forEach((key) => api.unmap(key));
const iunmapKeys = (keys) => keys.forEach((key) => api.iunmap(key));
const escapeMap = {
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
'"': "&quot;",
"'": "&#39;",
"/": "&#x2F;",
@jack06215
jack06215 / README.md
Last active June 22, 2025 06:32
userChrome.css

Firefox setup

手順をメモしておきます。

userChrome.cssの設置

  1. テキストエディタ等で userChrome.css を作成する。

  2. Firefoxのアドレスバーに about:profiles と入力し、現在使用中のプロファイルフォルダを開く

@jack06215
jack06215 / config.yml
Created May 26, 2025 02:37
lazygit config
disableStartupPopups: true
gui:
nerdFontsVersion: "3"
filterMode: "fuzzy"
showRandomTip: false
showCommandLog: false
language: "en"
git: