The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
This file contains hidden or 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
#!/bin/bash | |
curl -o ~/Downloads/hpdrivers.dmg https://updates.cdn-apple.com/2020/macos/001-41745-20201210-DBC9B46B-88B2-4032-87D9-449AF1D20804/HewlettPackardPrinterDrivers.dmg | |
hdiutil attach ~/Downloads/hpdrivers.dmg | |
pkgutil --expand /Volumes/HP_PrinterSupportManual/HewlettPackardPrinterDrivers.pkg ~/Downloads/hp-expand | |
hdiutil eject /Volumes/HP_PrinterSupportManual |
This unsafe and destructive command deletes all the prigin branches except the ones mentioned as grep -v 'uat'
git branch --remote | grep -v 'dev' | grep -v 'qa' | grep -v 'uat' | grep -v 'master' | cut -b 10- | xargs
git branch --remote | grep -v 'dev' | grep -v 'qa' | grep -v 'uat' | grep -v 'master' | cut -b 10- | xargs git push --delete origin
This file contains hidden or 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
# Delete all firestore composite indexes | |
gcloud firestore indexes composite list --uri | xargs -I{} gcloud firestore indexes composite delete {} --quiet |
- Go to the applications folder and right click
Slack.app
and click show packaged contents - Now go to '/Contents/Resources/app.asar.unpacked/src/static/'
- Open
ssb-interop.js
file in your code editor. - add the code section as mentioned at the bottom to it and save it
- Now restart the slack app
I hereby claim:
- I am puranjayjain on github.
- I am puranjayjain (https://keybase.io/puranjayjain) on keybase.
- I have a public key whose fingerprint is 5AB1 D590 72C7 D954 1423 F807 CCA8 E7F5 8987 4056
To claim this, I am signing this object:
This file contains hidden or 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 React from 'react' | |
import mrEmitter from '../helpers/mrEmitter' | |
export default class EmittingComponent extends React.Component { | |
handleClick = () => { | |
mrEmitter.emit('onSomeEvent', 'foo sends bar') | |
} | |
render() { |