Skip to content

Instantly share code, notes, and snippets.

@Ninroot
Ninroot / ninroot-magic.zsh-theme
Last active July 2, 2019 07:42
zsh prompt theme
# Modified version of af-magic.zsh-theme
# Original Repo: https://github.com/andyfleming/oh-my-zsh
# Original Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
# primary prompt
PROMPT='$FG[032]%~\
$(git_prompt_info) \
@Ninroot
Ninroot / alias.sh
Last active March 19, 2020 03:50
alias
alias reload="source ~/.zshrc"
alias zshconfig="vim ~/.zshrc"
# Example: `Wed. 12.06.2019`
alias today="date +'%a. %d.%m.%Y'"
alias addtoday='/usr/local/opt/gnu-sed/libexec/gnubin/sed -i "1s/^/## $(today)\n\n /" $1'
@Ninroot
Ninroot / ASS.md
Created January 16, 2020 14:22 — forked from klaaspieter/ASS.md
Acronyms Seriously Suck - Elon Musk

From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:

There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.

That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.