This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The command for this is | |
`git fetch --prune` | |
and then | |
`git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d` | |
original: https://stackoverflow.com/questions/13064613/how-to-prune-local-tracking-branches-that-do-not-exist-on-remote-anymore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/39972335/how-do-i-press-and-hold-a-key-and-have-it-repeat-in-vscode | |
Enable | |
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false | |
Disable | |
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool true | |
Cheers 🎉 |
I hereby claim:
- I am ahmad-reza619 on github.
- I am hungryowl (https://keybase.io/hungryowl) on keybase.
- I have a public key whose fingerprint is B440 596F 8FAA CA65 307A A1A6 54D2 3844 AAA6 A592
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo powermetrics --samplers smc |grep -i "CPU die temperature" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
import { dispatch } from 'store'; | |
/** | |
* Create one instance of Axios HTTP request object | |
* including access token if exists | |
* using interceptor | |
*/ | |
function createInstance() { | |
const defaultConfig = { |