Skip to content

Instantly share code, notes, and snippets.

@squarism
squarism / reaper_settings.md
Created June 21, 2021 21:44
The REAPER Blog's Fresh Start: REAPER 6 Settings

The REAPER Blog's Fresh Start: REAPER 6 Settings

https://www.youtube.com/watch?v=u5GU3mwJf2E

All these settings are opinions and preferences but captured here verbatim. Watch the video for more context.

Operating System Paths

  1. Create two directories on any drive you want for Backups and ReaPeaks. You will use these later.
@squarism
squarism / acquisition_change_promises.md
Last active September 8, 2022 21:58
Acquisition Change Promises

We Promise We Won't Change Anything

This whole post is probably overly negative but I keep noticing when companies make billion dollar investments/purchases and then promise not to change anything. And then we forget the PR promise as years go by. Talk is cheap, money is not cheap. What company would not want to exert influence or rake in returns? How would you even justify this to your shareholders (or boss) as a passive appendage? No, it's much more tempting to exert will and screw things up with your (maybe) larger or different culture that was not involved in the original success.

This is really, really, really not about the individual companies or data points. Rather, business mechanics.

@squarism
squarism / leading_questions.md
Last active June 10, 2021 21:52
Leading Questions About Immovables

I think the following questions are mostly about legacy but also fundamentals

  1. Why aren't there any spelling bees in Spanish?
  2. Why doesn't Chrome have a reading view? (this one not as much)
  3. Why does Windows have to install to C:? Why not Z:, 1:, A:, \c or /windows?
  4. Why wasn't there a Windows 9?
  5. Why is node_modules so large?

This is not the same kind of question:

@squarism
squarism / project_time.txt
Last active June 2, 2021 20:15
Project Time
"You have time you can control and time you can't,
you can't devote all of the time you can control to
new features otherwise the that time shrinks to 0."
-- reconbot
┌─────────
│ ┌────
│ │
│ │ ▲
@squarism
squarism / aws_secret_gen.go
Last active March 30, 2024 20:09
AWS Secret Generator - Useful with Minio or self hosted services when you need an AWS style secret pair
package main
import (
"crypto/hmac"
"crypto/sha256"
"encoding/base64"
"flag"
"fmt"
"math/rand"
"os"
Equivalents and Recommendations from "What's the Deal with Behringer?"
Recommendations:
- Chromatic Tuner TU300 (whatever)
- CL9 Compressor / Limiter
- UV300 Ultra Vibrato
- UM300 Ultra Metal (soft recommended)
- HM300 Heavy Metal (nearly the same)
- UC200 Ultra Chorus - "dead on"
- TO800 Vintage Tube Overdrive (sounds the same to me, JHS didn't say)
@squarism
squarism / python_generators.py
Created October 5, 2018 22:41
Python Generator Cheatsheet
# A personal cheatsheet for the confusing (to me) python feature: generators
# Done in ipython
[n*2 for n in [1,2,3]]
# Out[8]: [2, 4, 6]
{n*2 for n in [1,2,3] if n > 1}
# Out[9]: {4, 6}
for n in (x for x in [1,2,3] if x > 1):
@squarism
squarism / multiline.exs
Last active March 25, 2024 15:27
Multiline Anonymous Functions in Elixir
# Examples of Different Styles and Syntax
# legal / positive case / you can do these stuffs
# ---------------------------------------------------------------------------
# single line, nothing special
Enum.map(0...2, fn i -> IO.puts i end)
"""
0
1
@squarism
squarism / system_replacements.md
Last active October 11, 2025 12:49
Modern system utility replacements (Go / Rust or even just something new)

Interesting and Modern CLI Tools

The absolute requirement is that these must be binaries that could go into /usr/bin one day. No python, ruby or js stuff. Not that dynamic languages are bad/evil, but I think system utilities should be binaries. I also think it's interesting that people are writing replacements in Go/Rust/Other that rethink some unix legacy. Replacement doesn't mean better in all cases. I just think it's an interesting time but also a good measure of what these compiled languages can handle/tackle/address. Will we see larger and more impressive CLIs? Or will the feature sets be about the same but the quality/stability/safety be better?

It's going to be reductive to explain some of these tools in one line.

  • exa - ls replacement
  • caddy - HTTP server (better than python -m SimpleHTTPServer)
@squarism
squarism / java_upgrades_homebrew_jenv.md
Last active February 21, 2023 14:53
Automating Java Upgrades with Homebrew and Jenv

Goals:

  • never upgrade Java with the GUI pkg installer again.
  • never try to remember that /Library/Java is where JDKs go.
  • Just keep JDK8 and JDK9 up-to-date. Java is so stable, maybe these two major versions is all we need?

Note the assumptions in these goals. Making this a bit more generic would be nice.

I'm on a mac and I use the fish shell which I know is squarely in the edge case camp but I hope this is inspiring or useful to someone else because there's not much shell specific stuff here. I found jenv which is going to help.

First, upgrading java with homebrew is pretty easy. The assumption is that java8 is stable and java (9) is still emerging. This assumption would likely change so it'd be nice to have this scripted out of this assumption. For now, I'm just trying to avoid graphical Oracle installers.