Skip to content

Dan Q

    • Articles
    • Everything
    • Notes
    • Reposts (shares)
    • Checkins (geo*)
    • Videos
    • Reviews
    • Comics
    • Tags
    • Stats
    • Subscribe
    • Blogroll
  • About
    • Semi-standard "slash pages" you might like to explore:
    • /about
    • /blank
    • /blogroll
    • /colophon
    • /contact
    • /cv
    • /events
    • /license
    • /pfp
    • /postcards
    • /privacy
    • /salary
    • /shh
    • /slashes
    • /stats
    • /subscribe
    • /where
    • Hide posts of type:
    • Choose how Dan's dressed:
    • Hair
    • T-Shirt
  • Contact
  • Podcast

Tag: bash

  • Copilot review of some code on GitHub, in which it's telling me that I should have included an .agent-logs/... file in which my AI agent describes how it helped, but I'm responding to say that 'shockingly' I wrote it without the help of AI, and telling Copilot to shut up.

    Subverting AI Agent Logging with a Git Post-Commit Hook

    I keep hearing from developer friends who are 'expected' by their employer to demonstrate that they're using AI, even for tasks at which the AI is demonstrably a suboptimal choice. So - as a joke - I came up with a git post-commit hook that makes it look like they're doing so, even when they're not.

    Read more - about 4 minutes (761 words)

    • Article
    • 1 comment
    • posted 3 March, 2026
  • Note to future self: when you want git to tell you all the files you've modified, but not those you've deleted (e.g. to pipe through xargs and feed to your linter for bulk-linting), the command you're looking for is -

    git diff --name-only --diff-filter=M

    • Note
    • posted 14 June, 2025
  • Image representing post: Bash+Batch In One File

    Bash+Batch In One File

    A single file that can be executed in Bash, Zsh, Windows Command Prompt, and MS-DOS? Yup, and it's disgusting.

    Read more (343 words)

    • Article
    • 7 comments
    • posted 13 June, 2022
  • **

    Despite the fact that it's existed for 11 years, TIL about globstar in Bash. Set shopt -s globstar and ** globs become fully recursive, making that bulk transcode operation much simpler. ๐Ÿคฏ

    Read more (29 words)

    • Note
    • posted 10 December, 2020

Get in Touch

I'd love to hear from you! Why not...

  • email me on blog@danq.me?
    (my spam filter is aggressive, so use a good subject line, i.e. not just "hello"; encrypt your email if you like)
  • say hi on Mastodon, where I'm @dan@danq.me?
  • send a letter or postcard to
    Dan Q, Unit 159610, PO Box 7169, Poole, BH15 9EL, UK
  • reach out some other way?
  • ยฉ Dan Q 1998-2026
  • Creative CommonsAttributionNon-Commercial except where stated (how to use)
  • powered by BloqClassicPressHTML5CSS3
  • privacy
  • Read articles, checkins, notes, reposts, and more...
  • @dan@danq.me
  • contact
  • subscribe
  • Dan Q
  • Creative Commons Attribution Non-Commercial license
  • ClassicPress
  • CSS is awesome
  • Created by a human, not by AI
  • LGBTQ+ pride flag (2018 progress variant)
  • Polyamory flag
  • Say no to Web3
  • Mastodon (it's like email... no, come back!)
  • Tested on Firefox
  • Best viewed on the Internet
  • PHP
  • Ruby
  • Debian
  • Caddy (webserver)
  • Find me on Melonland
  • Check out my GitHub
  • Three Rings - by volunteers, for volunteers, since 2002
  • I'm a fucking webmaster
  • Looks best at: any resolution!