Skip to content

Instantly share code, notes, and snippets.

View notnmeyer's full-sized avatar

Nate Meyer notnmeyer

View GitHub Profile
@notnmeyer
notnmeyer / nixsetup.md
Created July 1, 2024 18:55 — forked from sebnyberg/nixsetup.md
Nix Setup for MacOS + ZScaler

Nix Setup for MacOS + ZScaler

These are my personal notes for estting up Nix with ZScaler.

Export certs as cert bundle

ZScaler eavesdrops on all communication, which is indistinguishable from a MITM attack.

Trust the cert in the KeyChain cert store. Then export the bundle to /etc/ssl/certs/ca-certificates.crt:

@notnmeyer
notnmeyer / flake-template.sh
Last active July 26, 2024 02:52
nix flake template
#/usr/bin/env bash
echo '{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs = {
systems,
@notnmeyer
notnmeyer / macos-tmux-256color.md
Created August 4, 2022 14:11 — forked from bbqtd/macos-tmux-256color.md
Installing tmux-256color for macOS

Installing tmux-256color for macOS

  • macOS 10.15.5
  • tmux 3.1b

macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.

The Fast Blazing Solution

Instead of tmux-256color, use screen-256color which comes with system. Place this command into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later):

  1. sudo "/usr/lib/plexmediaserver/Plex Media Server" --sqlite "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db" "update metadata_items set added_at = created_at where added_at >= date('now');"
  2. rescan library from client
@notnmeyer
notnmeyer / nix-on-macos-catalina.md
Created December 30, 2021 02:55 — forked from chriselsner/nix-on-macos-catalina.md
Nix on macOS Catalina

Nix on macOS Catalina

I'm writing this gist for my own records but it might help someone else too.

Installing Nix

Support for Catalina has improved a lot since the update was first rolled out.

Note: See the NixOS manual for discussion of the --darwin-use-unencrypted-nix-store-volume option.

Compiling Cookbooks...
================================================================================
Recipe Compile Error in /tmp/kitchen/cache/cookbooks/hekad/recipes/default.rb
================================================================================
NoMethodError
-------------
undefined method `general purpose data acquisition and processing engine' for Custom resource systemd_service from cookbook systemd
@notnmeyer
notnmeyer / -
Created September 14, 2016 15:35
test
@notnmeyer
notnmeyer / -
Created September 14, 2016 15:35
test
https://github.com/chef-cookbooks/homebrew/issues/87
https://github.com/kejadlen/sprout-homebrew/commit/f85b2ef275a5ad09eee1d29e6ad1ad2b5311dfa7