Skip to content

Instantly share code, notes, and snippets.

View josh-works's full-sized avatar

Josh Thompson josh-works

View GitHub Profile
@josh-works
josh-works / josh_dev_notes_mastodon_test_profile_fix.md
Last active April 18, 2024 22:13
notes for profiling/benchmarking/improving the Mastodon rails app

I always keep a text file in the repo I'm working in, containing all my notes, and I'll periodically copy that document over to here. I'll link between the notes, the PR that i'll make soon, and more. This is spiritually similar to me speeding up the OpenStreetMap website test harness by 70% (sorta working in public/teaching/explaining/creating collateral)


josh's ongoing dev notes

Public version of this file

Thursday, April 18, 2024

@josh-works
josh-works / dev_notes_for_open_streetmap_test_harness.md
Last active April 18, 2024 17:43
dev notes for OpenStreetMap test harness fix. 8 minutes -> 5 minutes

Utter this to anyone I've ever worked with:

Josh sometimes writes a lot/too much even. True or false?

They'll laugh. This is a normal amount of written output for my style. Anyway, here's my 'dev notes' for openstreetmap-website/pull/4708: Reduce test run time

Turn off logging durring testing, a few days ago

estimate 5% reduction in test run time

@josh-works
josh-works / both-affordable-and-profitable.md
Last active April 11, 2023 20:02
Affordable (to buy/rent) and profitable (to build): uncovering unicorns in housing/development policy in the USA today.

Thesis: Housing can be affordable to the purchaser and profitable to the developer. For example, a finished studio apartment could be available at $700/mo, or a three-bed at $1300/mo, and the developer who builds it will consider the ROI on the project/investment to be exceptional.

The need to do something tends to trump the need to understand what needs to be done. And without data, anyone who does anything is free to claim success.

  • Angus Deaton, The Great Escape

Housing, broadly, is often considered a political issue, to be fixed by politicians.

I'll be quoating broadly from a recent seminal book by Urban Economist Alain Bertaud, specifically from Chapter 6: Affordability (p 219).

@josh-works
josh-works / mod_1_bee_drills_setup.md
Last active July 19, 2022 05:21
mythical creatures, prework, ruby exercises, turing, ruby

Make mod 1 easier than it otherwise would be: a guide

This guide will make Turing's mod 1 much easier than it otherwise would be.

note: please see the updated version of this guide; if you continue reading, you'll have a far inferior experience than if you head over here: https://josh.works/turing-backend-prep-01-intro

We'll do this by working on, (and completing) a few dozen small Ruby exercises.

You might be thinking:

Josh. This already sounds like a lot of work. I just finished my prework, and I know Turing's gonna be brutal. Why should I do all of this optional work, instead of enjoying my last few days of freedom?

@josh-works
josh-works / process-over-everything.md
Last active April 14, 2022 01:35
Process & Workflow for solving programming challenges, Turing

"Process" is greater than everything

Having a good process is how you go about doing anything that takes a long time and is hard. A good process can be a faithful tool to help you learn dozens of things, now, and five years from now. It's flexible and it's powerful.

One of the biggest pieces of "having a good process" is "taking plentiful notes, easily and quickly"


I won't try to convince you. Here's Arique, currently in Mod 1, on how she's made use of this general process:

@josh-works
josh-works / flow-school-notes.md
Last active May 21, 2021 18:14
Ongoing course notes for Idahosa's Flow School

I often write detailed walk-throughs of difficult learning projects I take on.

This document serves as the same, a bit of an active scratch pad, and a way to quickly ask detailed questions of my team, and perhaps provide detailed answers for my team.

Useful links

1. I am not on a leaderboard, but I want to be

@josh-works
josh-works / cannot-get-4k-and-and-60hz-at-same-time.md
Last active March 8, 2021 06:35
I'm making a plea for help from others for resolving my display problems. This is basically what I would write in StackOverflow, if I knew which StackOverflow topic to use. Any help is much appreciated!

currently trying: USB-C->DisplayPort cord with SwitchResX to "force" the display up to a reasonable level

My home office setup has suffered some problems of late that are driving me insane.

The most annoying is my wired mouse. I use a wired Redragon Mammoth hooked up to my USB-C hub, and it started giving me problems when dragging anything. Like... a file, a screenshot, a window, it would rapidly (dozens of times a second) "drop" what I was dragging and then pick it up again.

This had extremely unpredictable effects, and was highly disruptive to my workflow.

I don't think my mouse is failing (my bluetooth mouse works fine, and for a variety of reasons I think the problem is my monitor is running at 30hz, not 60. more on that later.)

@josh-works
josh-works / exceptional_values.rb
Last active February 10, 2021 18:07
test, and the code that makes the test pass, to understand whole values and exceptional values, from Avdi Grim's https://avdi.codes/courses/moom/, based on https://josh.works/primative-obsession-and-exceptional-values
class Object
def exceptional?
false
end
end
Course = Struct.new(:name, :duration) do
def duration=(new_duration)
self[:duration] = Duration(new_duration)
end
@josh-works
josh-works / better_terminal.md
Last active July 6, 2019 21:01
Make the terminal more usable, common commands

Make your terminal more usable

You're going to spend all day looking at your terminal. Make it be kind to you.

Part 1

Here's a video walk-through of part 1 of this guide:

[![Play the video][image0]][hyperlink0]