Skip to content

Instantly share code, notes, and snippets.

kconner / macOS
Last active September 26, 2023 16:15
macOS Internals
View macOS
pudquick /
Last active September 26, 2023 10:20
Lightly "sandboxed" homebrew on macOS

brew is a bad neighbor

This isn't a guide about locking down homebrew so that it can't touch the rest of your system security-wise.

This guide doesn't fix the inherent security issues of a package management system that will literally yell at you if you try to do something about "huh, maybe it's not great my executables are writeable by my account without requiring authorization first".

But it absolutely is a guide about shoving it into its own little corner so that you can take it or leave it as you see fit, instead of just letting the project do what it likes like completely taking over permissions and ownership of a directory that might be in use by other software on your Mac and stomping all over their contents.

By following this guide you will:

  • Never have to run sudo to forcefully change permissions of some directory to be owned by your account
andersevenrud /
Last active September 28, 2023 18:34
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)
alexstolr / gist:f870ca01aac22c49fdeadd5d02d0ef0e
Created June 16, 2019 06:55
Dynamically enable/disable spring scheduled method
View gist:f870ca01aac22c49fdeadd5d02d0ef0e
1) add TaskScheduler spring bean:
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
public class AppConfig {
wavezhang /
Last active September 29, 2023 18:40
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie"
addyosmani / limitLoop.js
Last active September 23, 2023 03:37
Limit the frame-rate being targeted with requestAnimationFrame
View limitLoop.js
limitLoop.js - limit the frame-rate when using requestAnimation frame
Released under an MIT license.
When to use it?
A consistent frame-rate can be better than a janky experience only
occasionally hitting 60fps. Use this trick to target a specific frame-
rate (e.g 30fps, 48fps) until browsers better tackle this problem
sebfisch / gist:2235780
Created March 29, 2012 10:47
Laymans explanation of delimited continuations with examples of using them for exception handling and nondeterministic programming.
View gist:2235780

Delimited Continuations

Delimited continuations manipulate the control flow of programs. Similar to control structures like conditionals or loops they allow to deviate from a sequential flow of control.

We use exception handling as another example for control flow manipulation and later show how to implement it using delimited continuations. Finally, we show that nondeterminism can also be expressed using delimited continuations.

Exception Handling