Skip to content

Instantly share code, notes, and snippets.

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
@bmhatfield
bmhatfield / .zshrc
Last active March 7, 2024 23:11
OSX Keychain Environment Variables
# If you use bash, this technique isn't really zsh specific. Adapt as needed.
source ~/keychain-environment-variables.sh
# AWS configuration example, after doing:
# $ set-keychain-environment-variable AWS_ACCESS_KEY_ID
# provide: "AKIAYOURACCESSKEY"
# $ set-keychain-environment-variable AWS_SECRET_ACCESS_KEY
# provide: "j1/yoursupersecret/password"
export AWS_ACCESS_KEY_ID=$(keychain-environment-variable AWS_ACCESS_KEY_ID);
export AWS_SECRET_ACCESS_KEY=$(keychain-environment-variable AWS_SECRET_ACCESS_KEY);
package main
import (
"fmt"
"io"
"log"
"os"
)
var target_path string
@cheeseplus
cheeseplus / gist:11a665c622f60463ce3e
Created February 17, 2015 19:29
Helpful background on Chef Patterns and Anti-Patterns
http://dougireton.com/blog/2013/02/16/chef-cookbook-anti-patterns/
http://misheska.com/blog/2013/06/16/getting-started-writing-chef-cookbooks-the-berkshelf-way/
http://blog.vialstudios.com/the-environment-cookbook-pattern/
@Gargron
Gargron / INSTALL.md
Last active September 15, 2023 17:49 — forked from namuol/INSTALL.md
"Fuck you" alias to kill processes

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.