Error converting content: marked is not a function
title:: Tech/FAQs
- Git push to github failing with "your push would publish a private email address"
collapsed:: true
- Source: [so](https://stackoverflow.com/questions/43863522/error-your-push-would-publish-a-private-email-address)
- When enabling the “Block command line pushes that expose my email” feature, you’ll also want to configure Git to use your no-reply email address. Don’t worry—this won’t affect your contribution graph. All commits will still be associated with your account.
- Open Terminal.
- Change the current working directory to the local repository where you want to configure the email address that you associate with your Git commits.
- Find your GitHub noreply address in your GitHub's [Personal Settings → Emails](https://github.com/settings/emails). It's mentioned in the description of the *Keep my email address private* checkbox. Usually, it starts with a unique identifier, plus your username.
- Set an email address in Git. Use your GitHub-provided no-reply email address.
- Setting your email address for *every* repository on your computer
```
git config --global user.email "{ID}+{username}@users.noreply.github.com"
```
- Setting your email address for a *single* repository
```
git config user.email "{ID}+{username}@users.noreply.github.com"
```
- Reset the author information on your last commit:
```
git commit --amend --reset-author
```
If you have multiple commits with your private e-mail address, see [this answer](https://stackoverflow.com/a/25815116/146622).
- Now you can push the commit with the noreply e-mail address, and future commits will have the noreply e-mail address as well.
```
git push
```
Once you configure Git, commits will use your alternate “noreply” email address, and any pushes that don’t will be rejected.
- - Installing and managing python versions
collapsed:: true
- Install `pyenv` with `brew` to manage different Python versions: `brew install pyenv`
- List all installable versions with `pyenv install --list`
- Install Python 2.7.18 with `pyenv install 2.7.18`
- List installed versions with `pyenv versions`
- Set global python version with `pyenv global 2.7.18`
- Add `eval "$(pyenv init --path)"` to `~/.zprofile` (or `~/.bash_profile` or `~/.zshrc` , whichever you need)
- Relaunch the shell and check that Python works, or run `$ source ~/.zprofile` (Thanks masoud soroush!)
- How do I install rust
- use rustup
- https://www.rust-lang.org/learn/get-started
- How do I generate .gitignore from command line
- ```
> npm install --global generate generate-gitignore
> gen gitignore
```
- How do I grep with negative prompt?
- `grep -v $negative_string`
- How do I find directory named birthday?
id:: 653929d8-b8b3-4150-8912-28bf2d7f698e
- `find . -type d -maxdepth 3 -name "*birthday*"`
- What's the best CLI tool to see CPU and GPU usage?
- `htop`
- How do I check what's using a post on mac?
id:: 6583036a-48e6-47f7-9b91-b2a2a7e4266e
- ```bash
> sudo lsof -i :8080
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Python 12345 sid 3u IPv4 0x3e3ebc141e2a8a3b 0t0 TCP *:http-alt (LISTEN)
```
- How do I freeze only packages used in the Python project?
id:: 658c3d11-d5ad-4096-8c50-e78aeb0e26e8
- `pigar generate` See [pigar](https://github.com/damnever/pigar)