Skip to content

Instantly share code, notes, and snippets.

@jvns
jvns / interview-questions.md
Last active January 14, 2026 10:57
A list of questions you could ask while interviewing

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

@wolever
wolever / jquery.toggleClassPrefix.js
Created January 13, 2014 04:51
jQuery plugin to toggle an element's classes based on a prefix.
/**
* Toggles the CSS classes of an element based on a prefix::
* > elems = $(".status")
* > elems
* [<div class="status status-active">, <div class="status status-pending">]
* > elems.toggleClassPrefix("status-", "status-pending")
* > elems
* [<div class="status status-pending">, <div class="status status-pending">]
*/
$.fn.toggleClassPrefix = function(prefix, toAdd) {
@ThomasLeister
ThomasLeister / mastodon-tootctl-media-purge.txt
Created February 21, 2019 19:07
How to automatically remove cached media files older that 7 days from your Mastodon instance
This is how to automatically delete cached image previews from your Mastodon instance if they are older than 7 days.
Log in as your "mastodon" User or log in as root and then change to the "mastodon" user, who runs Mastodon:
# su - mastodon
Open crontab:
$ crontab -e
... and add these lines to your crontab: