Skip to content

Instantly share code, notes, and snippets.

@jftuga
jftuga / Getting Shift+Enter to Work in Claude Code with iTerm2 and tmux.md
Last active February 3, 2026 00:01
Getting Shift+Enter to Work in Claude Code with iTerm2 and tmux

Getting Shift+Enter to Work in Claude Code with iTerm2 and tmux

Shift+Enter in Claude Code inserts a newline without submitting your prompt—essential for writing multi-line code or complex queries. However, getting this key combination to work reliably through a terminal stack involving iTerm2 and tmux requires configuration at multiple layers.

This guide explains both the fix and the reasoning behind it.

Quick Start

If you just want it working, here's what you need:

@jftuga
jftuga / GitHub_Absolute_Date_Bookmarklet.md
Last active January 21, 2026 15:40
GitHub Absolute Date Bookmarklet

GitHub Absolute Date Bookmarklet

This bookmarklet displays absolute dates on GitHub by finding all <time-ago> and <relative-time> elements and inserting a selectable <span> containing the full timestamp before each one. Instead of seeing only relative timestamps like 3 days ago, you'll also see the exact date and time in a smaller font above the relative text. You can also select and copy it.

@jftuga
jftuga / Mikrotik_Network_Config.md
Created December 28, 2025 13:11
Mikrotik Network Config

Mikrotik Network Config

Port Configs

  • 1 WAN
  • 2 Mgmt - 192.168.88.1
  • 3 - Multi WAN 1
  • 4 - Multi WAN 2
  • 5-8 Bridge with POE enabled
@jftuga
jftuga / ghostty_config
Last active December 25, 2025 13:35
ghostty config for MacOS
background = #000000
clipboard-trim-trailing-spaces = true
clipboard-paste-protection = false
copy-on-select = clipboard
cursor-click-to-move = true
cursor-style = block
cursor-style-blink = false
font-family = "SF Mono"
font-size = 18
font-thicken = true
@jftuga
jftuga / Markdown_Note_How_To.md
Last active January 30, 2026 19:00
Markdown Note How To

Outside of Note

Note

This is an inlined note. It has automatic line wrapping. It has automatic line wrapping. It has automatic line wrapping. It has automatic line wrapping.

Outside of Note

Note

This inlined note has >

@jftuga
jftuga / npm_npx_cheat_sheet.md
Last active August 19, 2025 15:45
npm + npx Cheat Sheet

📦 npm + npx Cheat Sheet

A quick reference for common npm and npx commands.


🔍 Checking Versions

npm -v          # Show npm version
node -v # Show Node.js version
@jftuga
jftuga / chomp.c
Created June 2, 2025 21:34
chomp
/*
* A C implementation that mimics Perl's 'chomp' functionality.
* Reads from standard input and outputs all characters except the trailing newline.
* Preserves internal newlines but removes only the final newline if present.
* Compile with: gcc -O2 -o chomp chomp.c
*/
#include <stdio.h>
int main(void) {
@jftuga
jftuga / README.md
Last active January 23, 2026 08:42
whisper.cpp on MacOS
@jftuga
jftuga / https-server.sh
Last active April 30, 2025 22:20
https server
#!/bin/bash
# https-server
# 2025-04-30
#
# This script starts a one-off HTTPS server using OpenSSL.
# It generates a temporary self-signed SSL certificate and private key,
# then uses OpenSSL's s_server command to serve files from the current directory
# over an encrypted HTTPS connection on port 4443.
#
# The script also handles cleanup:
@jftuga
jftuga / python-logging.py
Created February 22, 2025 19:46
Python Logging
# python logging for AWS Lambda function
import logging
# boto3 internally uses DEBUG and INFO; therefore start with WARNING level
logging.basicConfig(level=logging.WARNING)
def lambda_handler(event, context):
logging.warning(f"{event=}")