Skip to content

Instantly share code, notes, and snippets.

View ahmad-reza619's full-sized avatar
🚀
probably working

Ahmad Reza ahmad-reza619

🚀
probably working
View GitHub Profile
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 = {
sudo powermetrics --samplers smc |grep -i "CPU die temperature"
@ahmad-reza619
ahmad-reza619 / keybase.md
Last active January 5, 2021 03:08
keybase.md

Keybase proof

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:

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 🎉
We couldn’t find that file to show.
@ahmad-reza619
ahmad-reza619 / delete-local-branch
Created March 5, 2020 07:25
Delete local branch that is not exist on remote
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