Skip to content

Instantly share code, notes, and snippets.

📖
Reading; Donald Knuth, of course.

Emil Kreutzman ekreutz

📖
Reading; Donald Knuth, of course.
Block or report user

Report or block ekreutz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ekreutz
ekreutz / tmux_conda_fix.md
Last active Jul 3, 2019
Fix tmux messing with conda path
View tmux_conda_fix.md

Fix tmux messing with conda

Problem: When running a conda environment and opening tmux on macOS, a utility called path_helper is run again. Essentially, the shell is initialized twice which messes up the ${PATH} so that the wrong Python version shows up within tmux.

Solution

If using bash, edit /etc/profile and add one line. (For zsh, edit /etc/zprofile)

...
@ekreutz
ekreutz / ansible_variable_precedence.md
Created Dec 22, 2017
Ansible variable precedence (order, hierarchy)
View ansible_variable_precedence.md
@ekreutz
ekreutz / resetXcode.sh
Last active Feb 28, 2018 — forked from maciekish/resetXcode.sh
Reset Xcode. Clean, clear module cache, Derived Data and Xcode Caches
View resetXcode.sh
#!/bin/bash
#
# curl -O https://gist.githubusercontent.com/ekreutz/b245da335cc10b0d270136b35eb22d1f/raw/43c6d07b0b3d3165af9c10cef18e8709a07ce680/resetXcode.sh && bash ./resetXcode.sh ; rm ./resetXcode.sh
#
if [[ $(whoami) != jenkins ]]; then
echo "Run as jenkins"
exit 1
fi
You can’t perform that action at this time.